• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Recent content by danmacleod

  1. D

    Apps RecyclerView, how to set height properly

    I have a RecyclerView that I want to fill the remaining space of a screen. However, if I set the width to "wrap_content" the last few rows of the RecyclerView are not shown. It seems the RecyclerView is not calculating its height properly. Looks like others have similar issues but I haven't...
  2. D

    How to get file path from Google Drive

    I'm retrieving the path to an image from a Uri and saving the path in one of my domain objects for future use. This works fine for images stored on the local device by using a cursor (see below) . However, I'm not sure how to get the file path when the image is stored on my Google drive. The Uri...
  3. D

    RecyclerView issue, extra item gets selected

    I have a RecyclerView to display a list of items. When I click on an item, the item will display an image, when I click on the item again, the image will be 'hidden'. This is working for the item I click on. However, when I click on an item to display the image, another item further down the...
  4. D

    Problem with Fragments and AppbarLayout

    I'm having an issue with Fragments and my Appbar. I have an Activity that uses fragments. When the Activity is first loaded, I use the FragmentManager to load the initial Fragment. When the user selects an option, I use the FragmentManager to 'replace' the current fragment with the new Fragment...
  5. D

    Best pattern for single toolbar, multiple screens?

    I'm looking for advice on the best design pattern to use so I can create a single toolbar and use it throughout my app. Should I use a single activity and fragments to display different content below the toolbar? What's the best approach? thanks