Top "Fragment" questions

**DO NOT USE**: fragment is an ambiguous tag, used to refer to numerous technologies.

How to start shared element transition using Fragments?

I am trying to implement transitions between fragments which have "shared elements" as described in the new material design specs. …

android fragment material-design
findViewById returns NULL when using Fragment

I'm new to Android developing and of course on Fragments. I want to access the controls of my fragment in …

android android-activity nullreferenceexception fragment
Adding Tab inside Fragment In Android?

I am trying to add a TabHost inside a Fragment. The code is given below. Here inside the Fragment. I …

android fragment android-tabs
Passing objects in to Fragments

I've been working with lots of Fragments recently and have been using two distinct methods of passing in objects to …

android fragment android-bundle
How to access parent Activity View in Fragment

I have an ActionBarActivity and fragment. I am using FragmentPagerAdapter that provides fragment to my app. My question How can …

android android-fragments fragment
How to dismiss a DialogFragment when pressing outside the dialog?

I am using a DialogFragment, and while I have successfully set an image to close (i.e. dismiss) the dialog …

android fragment dismiss
How to pass and get value from fragment and activity

How to pass and get value from fragment and activity?

android fragment kotlin
set list view adapter in a fragment in android

I want a custom row, so I am using a List View in an xml and inflating into a fragment. …

android listview adapter fragment
MapFragment in Fragment, alternatives?

I need your help... I work on it until 3 days. My app is working with fragments. One of these fragments …

android fragment google-maps-android-api-2 mapfragment
How to delete a specific fragment from back stack in android

I have a problem about removing a specific fragment from back stack.My scenario is like this.Fragment-1 is replaced …

android android-fragments fragment fragment-backstack