[android-developers] TextView getting cut in some resolutions

2017-02-01 Thread Amitai Rosenberg
I have a RecyclerView which consists of CardViews that have a TextView and an ImageView, among some other layouts. The problem is, in some screen resolutions the TextView gets cut off or shoved to the next line, which I don't want. In other resolutions, the TextView has plenty of room. Small

[android-developers] Android Spinner in Toolbar Arrow

2016-08-20 Thread Amitai Rosenberg
I want to have a Spinner in my Toolbar. However, the Spinner doesn't have any dropdown arrow, as the default Android Spinner does. How do I make it have an arrow? This is my code: Fragment where I show the spinner: var spinner =

[android-developers] Android Time Preference Dialog with Support Library

2016-08-11 Thread Amitai Rosenberg
I'm confused about using Android Preferences with the Support v7 or v14 library. It seems like every couple of months Google changes the API. I'm trying to create a Time Preference Dialog. However, my current one doesn't work with the Support Library. public class TimePickerPreference :

[android-developers] Re: Android Expandable RecyclerView different Card height

2016-07-23 Thread Amitai Rosenberg
Anyone? On Friday, July 22, 2016 at 4:19:48 PM UTC+3, Amitai Rosenberg wrote: > > I have a RecyclerView that contains a list of cards, which expand into > child cards. > Each card has different text. I want that when the user clicks on a child > card, it expands to show the t

[android-developers] Android Expandable RecyclerView different Card height

2016-07-22 Thread Amitai Rosenberg
I have a RecyclerView that contains a list of cards, which expand into child cards. Each card has different text. I want that when the user clicks on a child card, it expands to show the text inside. I tried to measure the target height by using: view.Measure(ViewGroup.LayoutParams.WrapContent,

[android-developers] Re: Android Palette working only on some of RecyclerView items

2016-06-16 Thread Amitai Rosenberg
Anyone? On Tuesday, June 14, 2016 at 3:57:37 PM UTC+3, Amitai Rosenberg wrote: > > I'm trying to generate a Palette for each CardView I have inside a > RecyclerView, and to color the card based on the Palette generated. > However, for some weird reason, only the last t

[android-developers] Android Palette working only on some of RecyclerView items

2016-06-14 Thread Amitai Rosenberg
I'm trying to generate a Palette for each CardView I have inside a RecyclerView, and to color the card based on the Palette generated. However, for some weird reason, only the last two CardViews of the RecyclerView get colored. This is my code: RecyclerAdapter: public class

Re: [android-developers] Master Detail Flow with Fragment or Activity

2016-06-06 Thread Amitai Rosenberg
OK. Thanks for your help! On Monday, June 6, 2016 at 9:11:12 AM UTC+3, TreKing wrote: > > > On Wed, Jun 1, 2016 at 12:17 AM, Amitai Rosenberg <amit...@gmail.com > > wrote: > >> I see. However, I am already using multiple fragments on the same >> Activity with t

[android-developers] Changing between Navigation Drawer fragments is slow

2016-06-02 Thread Amitai Rosenberg
Any ideas? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to

[android-developers] Changing between Navigation Drawer fragments is slow

2016-06-01 Thread Amitai Rosenberg
I have an app with a Navigation Drawer that uses fragments for each menu item. Each time an item is clicked, I replace the current fragment. The problem is that it takes a long time to show the new fragment after the user clicked. The fragment that takes the longest to load is a fragment that

Re: [android-developers] Master Detail Flow with Fragment or Activity

2016-05-31 Thread Amitai Rosenberg
I see. However, I am already using multiple fragments on the same Activity with the Navigation Drawer, like Google suggests. One question though: I am trying to implement a shared content element transition from my main activity to the details activity. The problem is that the content on the

Re: [android-developers] Master Detail Flow with Fragment or Activity

2016-05-28 Thread Amitai Rosenberg
Exactly. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [android-developers] Master Detail Flow with Fragment or Activity

2016-05-28 Thread Amitai Rosenberg
Thanks. It says there like I wrote. My question is- why? Why don't they suggest to use a fragment also for a small screen device, and just replace fragments? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group

Re: [android-developers] Master Detail Flow with Fragment or Activity

2016-05-28 Thread Amitai Rosenberg
Thanks. It says there like I wrote. My question is- why? Why don't they suggest to use a fragment also for a small screen device, and just replace fragnents? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group

[android-developers] Master Detail Flow with Fragment or Activity

2016-05-26 Thread Amitai Rosenberg
I'm making an Android app from which the user can choose content to read. There is a list of books, and once the user chooses one, it opens a new screen with the content, and a second navigation drawer for navigating through the book. I'm not sure if this screen should be a fragment or an

[android-developers] Android table of contents navigation style

2016-05-21 Thread Amitai Rosenberg
Anyone? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to

[android-developers] Android table of contents navigation style

2016-05-19 Thread Amitai Rosenberg
Hi all. I'm making an app which presents reading content to the user. I want to implement a table of contents navigation. I'm making my app Material Design, and would like the table of contents to be with that same style. How is it best to do this? I thought of a few options: 1.

[android-developers] Reading and displaying long formatted text documents in Android

2016-05-17 Thread Amitai Rosenberg
Hi all. I'm developing an Android app which is supposed to present large text files (books for example), for the user to browse, read, and search. My question is as follows: How should I read and present the text file, which is currently in either a PDF or Word format, and is formatted? What