Gang Of Coders
Home
About Us
Contact Us
All Android Fragments Solutions on Gang of Coders
Total of 296 Android Fragments Solutions
How to replace the activity's fragment from the fragment itself?
Android
Android Fragments
What is the difference between commit() and commitAllowingStateLoss() in Fragments
Java
Android
Android Fragments
Get the Application Context In Fragment In Android?
Android
Android Fragments
Fragment
Sending data from nested fragments to parent fragment
Android
Android Fragments
Parameter Passing
Android Nested-Fragment
Navigation Architecture
Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?
Android
Android Fragments
Android Activity
Android Actionbaractivity
Appcompatactivity
Why is onAttach called before onCreate?
Android
Android Fragments
fitsSystemWindows effect gone for fragments added via FragmentTransaction
Android
Android Layout
Android Fragments
FragmentContainerView using findNavController
Android
Android Layout
Android Fragments
Android Navigation
Starting Activity from Fragment causes NullPointerException
Android
Android Activity
Android Fragments
Android Viewpager
How to handle Touch Events on a Fragment?
Android
Android Fragments
Touch Event
Ontouchlistener
Fragment already added IllegalStateException
Android
Android 3.0-Honeycomb
Android Fragments
Fragment
Illegalstateexception
Display fragment viewpager within a fragment
Android
Android Fragments
Android Viewpager
Android Lifecycle
Android Nested-Fragment
Android replace the current fragment with another fragment
Android
Android 3.0-Honeycomb
Android Fragments
How to add a Fragment inside a ViewPager using Nested Fragment (Android 4.2)
Android
Android Fragments
Android Viewpager
Android Support-Library
Android Nested-Fragment
Calling startIntentSenderForResult from Fragment (Android Billing v3)
Android
Android Fragments
Android Activity
Android Billing
Replace one Fragment with another in ViewPager
Android
Listview
Android Fragments
Android Viewpager
How to set a ViewPager inside a Fragment
Android
Android Fragments
Android Viewpager
Android Nested-Fragment
Animating fragments and the back stack
Android
Animation
Transactions
Transitions
Android Fragments
getSupportFragmentManager() is undefined
Android
Android Fragments
Actionbarsherlock
Android Dialogfragment
Refresh or force redraw the fragment
Android
Android Fragments
How to clear Fragment backstack in android
Android
Android Fragments
getSystemServices is undefined when called in a Fragment?
Android
Android Fragments
Android Sensors
Cannot resolve method 'getSupportFragmentManager ( )' inside Fragment
Android
Google Maps
Android Fragments
Fragment
Fragment over another fragment issue
Android
Android Fragments
animateLayoutChanges="true" in BottomSheetView showing unexpected behaviour
Android
Android Layout
Android Fragments
Animation
Bottom Sheet
How I can retrieve current fragment in NavHostFragment?
Android
Android Fragments
Kotlin
Android Architecture-Components
Android Architecture-Navigation
How to get a list of backstack fragment entries in android?
Android
Tabs
Android Fragments
Back Stack
ViewPager in TabFragment is not loading a second time
Android
Android Fragments
Android Viewpager
Android Nested-Fragment
How to track android fragments using firebase analytics
Android
Android Fragments
Firebase
Firebase Analytics
onActivityCreated is deprecated, how to properly use LifecycleObserver?
Android
Android Fragments
Android Activity
Android Lifecycle
Menu in Fragments not showing
Android
Android Fragments
Android Menu
Android - save/restore fragment state
Android
Android Fragments
Fragment
Onresume
Back Stack
Floating Action Button not showing fully inside a fragment
Android
Android Fragments
Floating Action-Button
Androiddesignsupport
Android Coordinatorlayout
Problem inflating custom view for AlertDialog in DialogFragment
Android
Android Alertdialog
Android Fragments
Android Inflate
Layout Inflater
How to pop back stack for Activity with multiple Fragments?
Android
Android Fragments
Initialize MapFragment programmatically with Maps API v2
Android
Google Maps
Android Fragments
How to send data from DialogFragment to a Fragment?
Java
Android
Android Fragments
getLayoutInflater() in fragment
Android
Android Fragments
Display a RecyclerView in Fragment
Java
Android
Android Fragments
Android 5.0-Lollipop
Android Recyclerview
Disable swiping between tabs
Android
Android Fragments
Android Tabs
Do fragments really need an empty constructor?
Android
Android Fragments
Android Fragments and animation
Android
Android Fragments
Android 3.0-Honeycomb
Replace Fragment inside a ViewPager
Android
View
Android Fragments
Android Viewpager
Pager
Clear back stack using fragments
Android
Android Fragments
findViewById in Fragment
Android
Android Fragments
Android Imageview
Findviewbyid
Android DialogFragment vs Dialog
Android
Android Fragments
Android Dialog
Android Dialogfragment
How do I add a Fragment to an Activity with a programmatically created content view
Android
Android 3.0-Honeycomb
Android Fragments
Retrieve a Fragment from a ViewPager
Android
Android Fragments
Android Viewpager
How to use data-binding with Fragment
Android
Android Fragments
Android Databinding
Programmatically go back to the previous fragment in the backstack
Android
Android Fragments
Back Stack
Receive result from DialogFragment
Android
Dialog
Android Fragments
Fragment
Dismiss
Difference between Activity and FragmentActivity
Android
Android Fragments
Android Support-Library
Android Fragmentactivity
How to clear navigation Stack after navigating to another fragment in Android
Android
Android Fragments
Android Architecture-Components
Android Architecture-Navigation
Getting the current Fragment instance in the viewpager
Android
Android Fragments
Android Viewpager
onActivityResult is not being called in Fragment
Android
Android Fragments
Android Activity
Fragment onResume() & onPause() is not called on backstack
Android
Android Fragments
Onresume
Back Stack
How to transfer some data to another Fragment?
Android
Android Fragments
getActivity() returns null in Fragment function
Android
Android Fragments
Android Activity
Null
Android Context
onCreateOptionsMenu inside Fragments
Android
Android Fragments
Layout Inflater
Oncreateoptionsmenu
Android. Fragment getActivity() sometimes returns null
Android
Android Fragments
Android Activity
Android Asynctask
Nullpointerexception
How to implement a ViewPager with different Fragments / Layouts
Android
Android Layout
Android Fragments
Android Viewpager
Fragmentpageradapter
How do I make WRAP_CONTENT work on a RecyclerView
Android
Android Layout
Android Fragments
Android Recyclerview
Dilemma: when to use Fragments vs Activities:
Android
Android Fragments
Android Activity
Architecture
Passing data between a fragment and its container activity
Android
Android Fragments
How can I access getSupportFragmentManager() in a fragment?
Android
Android Fragments
Android Support-Library
Android Fragmentactivity
Fragmentmanager
How many Activities vs Fragments?
Android
Android Fragments
Android Listfragment
Android.app Fragments vs. android.support.v4.app using ViewPager?
Android
Android Fragments
Android Viewpager
Android Support-Library
How to determine when Fragment becomes visible in ViewPager
Android
Android Fragments
Android Viewpager
Get the current fragment object
Android
Android Fragments
Error inflating class fragment
Android
Android Layout
Android Fragments
Switching between Android Navigation Drawer image and Up caret when using fragments
Android
Android Fragments
Android Actionbar
Navigation Drawer
Difference between android.app.Fragment and android.support.v4.app.Fragment
Android
Android Fragments
Why do I want to avoid non-default constructors in fragments?
Android
Android Fragments
Callback to a Fragment from a DialogFragment
Android
Android Fragments
Callback
Android Dialogfragment
How can I maintain fragment state when added to the back stack?
Android
Android Fragments
Back Stack
java.lang.IllegalStateException: Fragment not attached to Activity
Android
Android Fragments
Android Activity
Android Volley
Android Lifecycle
Best practice for instantiating a new Android Fragment
Android
Android Fragments
How to set the title of DialogFragment?
Android
Android Fragments
Android Dialogfragment
Android search with Fragments
Java
Android
Sqlite
Android Fragments
Android Searchmanager
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference
Android
Android Layout
Android Fragments
Android Listview
FragmentPagerAdapter Exists Only In Android.Support.V4.App (and not Android.App)
Android
Android Fragments
xamarin.android
Fragmentpageradapter
How to resume existing Fragment from BackStack
Android
Android Fragments
Back Stack
What is the difference between Fragment and FragmentActivity?
Android
Android Fragments
Android Fragmentactivity
Fragment Inside Fragment
Android
Android Fragments
Android Nested-Fragment
Using context in a fragment
Java
Android
Android Fragments
Android Context
Separate Back Stack for each tab in Android using Fragments
Android
Tabs
Android Fragments
One Activity and all other Fragments
Android
Android Layout
Android Activity
Android Fragments
Android Lifecycle
Android: When is onCreateOptionsMenu called during Activity lifecycle?
Android
Android Fragments
Oncreate
Difference between onCreateView and onViewCreated in Fragment
Android
Android Layout
Android Fragments
How to implement OnFragmentInteractionListener
Android
Android Fragments
How to pass a variable from Activity to Fragment, and pass it back?
Android
Android Fragments
Android Activity
Can I use view pager with views (not with fragments)
Android
Android Fragments
Android Viewpager
Android View
runOnUiThread in fragment
Android
Android Fragments
Android Activity
How to set a Fragment tag by code?
Android
Android 3.0-Honeycomb
Android Fragments
Fragments within Fragments
Android
Android Fragments
Android Nested-Fragment
Replacing a fragment with another fragment inside activity group
Java
Android
Android Fragments
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Android
Exception
Android Asynctask
Android Fragments
Illegalstateexception
Update data in ListFragment as part of ViewPager
Android
Android Fragments
Android Viewpager
Android Adapter
Android Listfragment
How to put Google Maps V2 on a Fragment using ViewPager
Android
Google Maps
Android Fragments
RecyclerView blinking after notifyDatasetChanged()
Android
Android Fragments
Android Recyclerview
android fragment- How to save states of views in a fragment when another fragment is pushed on top of it
Android
Android Fragments
Prevent ViewPager from destroying off-screen views
Android
Android Fragments
Android Viewpager
Set state of BottomSheetDialogFragment to expanded
Android
Android Fragments
Android Support-Library
Android Support-Design
Calling a Fragment method from a parent Activity
Android
Android Fragments
android fragment onRestoreInstanceState
Android
Save
State
Android Fragments
Is this the right way to clean-up Fragment back stack when leaving a deeply nested stack?
Android
Android Fragments
Fragment Backstack
How to pass values between Fragments
Android
Android Fragments
Complete Working Sample of the Gmail Three-Fragment Animation Scenario?
Android
Android Fragments
Android Animation
Set theme for a Fragment
Android
Android Fragments
Android Theme
FragmentPagerAdapter getItem is not called
Android
Android Fragments
Android Fragmentactivity
Refresh Fragment at reload
Android
Android Fragments
Problems with Android Fragment back stack
Android
Android Fragments
Back Stack
OnCreateOptionsMenu() not called in Fragment
Android
Android Fragments
Why fragments, and when to use fragments instead of activities?
Android
Android Layout
Android Fragments
Android Activity
Android 3.0-Honeycomb
What's the difference between detaching a Fragment and removing it?
Android
Android Fragments
Fragment or Support Fragment?
Android
Android Fragments
Android Support-Library
Android Fragments: When to use hide/show or add/remove/replace?
Android
Android Fragments
Android Fragment lifecycle over orientation changes
Android
Android Activity
Android Fragments
Orientation
How to implement onBackPressed() in Fragments?
Android
Android Fragments
Onbackpressed
NullPointerException accessing views in onCreate()
Java
Android
Android Fragments
Nullpointerexception
Android - Set fragment id
Android
Android Fragments
How to Reverse Fragment Animations on BackStack?
Android
Android Fragments
Android Animation
Back Stack
How to check permission in fragment
Java
Android
Kotlin
Android Fragments
Android Permissions
How to get Toolbar from fragment?
Android
Android Fragments
Android Actionbar
Android Support-Library
Android Toolbar
Show hide fragment in android
Android
Android Fragments
Show Hide
Best practice for nested fragments in Android 4.0, 4.1 (<4.2) without using the support library
Android
Android Fragments
Android Support-Library
Android Nested-Fragment
getSupportActionBar from inside of Fragment ActionBarCompat
Android
Android Fragments
Android Support-Library
Android Actionbar-Compat
PreferenceFragmentCompat requires preferenceTheme to be set
Android
Android Fragments
Android Support-Library
Preferencefragment
Preference V7
Can't make the custom DialogFragment transparent over the Fragment
Android
Android Layout
Android Fragments
Android Dialog
Android Dialogfragment
Android 4.2: back stack behaviour with nested fragments
Android
Android Fragments
Android Nested-Fragment
IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
Android
Android Fragments
Android Viewpager
Illegalstateexception
Fragmenttransaction
Fragments destroyed / recreated with Jetpack's Android Navigation components
Android
Android Fragments
Android Jetpack
Android Architecture-Navigation
Android Jetpack-Navigation
get the latest fragment in backstack
Android
Android Fragments
Back Stack
Fragment transaction animation: slide in and slide out
Android
Animation
Android Fragments
How to make DialogFragment width to Fill_Parent
Android
Android Layout
Android Fragments
Android Dialogfragment
Further understanding setRetainInstance(true)
Android
Android Fragments
Android Activity
Rotation
How to get existing fragments when using FragmentPagerAdapter
Android
Android Fragments
Fragmentpageradapter
Fragment is not being replaced but put on top of the previous one
Android
Android Fragments
Getting the error "Java.lang.IllegalStateException Activity has been destroyed" when using tabs with ViewPager
Android
Android Fragments
Android Viewpager
Actionbarsherlock
Android Nested-Fragment
support FragmentPagerAdapter holds reference to old fragments
Android
Android Fragments
How to correctly save instance state of Fragments in back stack?
Android
Android Fragments
Fragment lifecycle - which method is called upon show / hide?
Android
Android Fragments
Lifecycle
Fragmenttransaction
What is the meaning of addToBackStack with null parameter?
Android
Android Fragments
Where/How to getIntent().getExtras() in an Android Fragment?
Android
Android Intent
Android Fragments
Android Activity
Fragment onCreateView and onActivityCreated called twice
Android
Android Fragments
Android 4.0-Ice-Cream-Sandwich
How to close the current fragment by using Button like the back button?
Android
Android Fragments
Activity Finish
How do I get the currently displayed fragment?
Android
Android Layout
Android Intent
Android Fragments
How to use setArguments() and getArguments() methods in Fragments?
Android
Android Fragments
Fragments onResume from back stack
Android
Android Fragments
Compatibility
Android 3.0-Honeycomb
Back Stack
What is the benefit of using Fragments in Android, rather than Views?
Android
Android Fragments
Android View
Android Lifecycle
Software Design
Show DialogFragment with animation growing from a point
Android
Android Fragments
Android Animation
ViewPager and fragments — what's the right way to store fragment's state?
Android
Design Patterns
Android Fragments
Android Viewpager
Fragment in ViewPager using FragmentPagerAdapter is blank the second time it is viewed
Android
Android Fragments
Android Viewpager
Android Nested-Fragment
How to handle Handler messages when activity/fragment is paused
Android
Android Fragments
Start an activity from a fragment
Android
Android Fragments
Android Activity
Android Fragmentactivity
How to add one section separator for Navigation Drawer in Android?
Android
Android Layout
Android Fragments
Android Activity
Navigation Drawer
Is there a method that works like start fragment for result?
Android
Android 3.0-Honeycomb
Android Fragments
End animation event android
Android
Android Fragments
Android Animation
Nested fragments disappear during transition animation
Android
Android Fragments
Android Support-Library
Android Nested-Fragment
Android Toolbar Adding Menu Items for different fragments
Android
Android Fragments
Android Toolbar
java.lang.IllegalStateException: The specified child already has a parent
Android
Android Layout
Android Fragments
Android SharedPreferences in Fragment
Android
Android Fragments
Sharedpreferences
Setting Custom ActionBar Title from Fragment
Java
Android
Android Fragments
Android Actionbar
Android Fragmentactivity
How to listen for preference changes within a PreferenceFragment?
Android
Android Fragments
Android Activity
Sharedpreferences
Android Preferences
How to update a menu item shown in the ActionBar?
Android
Menu
Android Fragments
Android Actionbar
Coordinator Layout with Toolbar in Fragments or Activity
Android
Android Fragments
Android Activity
Android Actionbar
FragmentManager is already executing transactions. When is it safe to initialise pager after commit?
Android
Android Fragments
What are the differences between activity and fragment?
Android
Android Fragments
Android Activity
Difference
android.content.Context.getPackageName()' on a null object reference
Android
Android Fragments
Fragment
actionbar up navigation with fragments
Android
Android Fragments
Android Actionbar
IllegalStateException: Fragment already added in the tabhost fragment
Android
Android Fragments
Tabs
Android Lifecycle
Fragment Tab-Host
Android onClick in XML vs. OnClickListener
Android
Xml
Performance
Android Fragments
How to hide the soft keyboard inside a fragment?
Java
Android
Kotlin
Android Fragments
Android Softkeyboard
How to handle button clicks using the XML onClick within Fragments
Android
Xml
Button
Android Fragments
Alternatives to PreferenceFragment with android-support-v4
Android
Android Fragments
How to add Options Menu to Fragment in Android
Android
Android Fragments
Android Optionsmenu
Fool-proof way to handle Fragment on orientation change
Android
Android Fragments
Android Orientation
How to pop fragment off backstack
Android
Android Fragments
Back Stack
How do I open a new fragment from another fragment?
Android
Android Fragments
Onclicklistener
Android Button
Could not find Fragment constructor
Android
Android Fragments
Android Fragments. Retaining an AsyncTask during screen rotation or configuration change
Android
Android Fragments
Progressdialog
Android Asynctask
Android Support-Library
What is difference between getSupportFragmentManager() and getChildFragmentManager()?
Android
Android Fragments
Android Listfragment
How to know if a Fragment is Visible?
Android
Android Fragments
Android Activity ClassNotFoundException - tried everything
Java
Android
Android Fragments
Classnotfoundexception
Android Library
Android - Custom Animation on fragment transaction not running
Android
Android Fragments
Android Animation
How to pass data between fragments
Android
Android Fragments
Fragment MyFragment not attached to Activity
Android
Android Fragments
Actionbarsherlock
In android how to set navigation drawer header image and name programmatically in class file?
Android
Android Layout
Android Fragments
Androiddesignsupport
Android Navigationview
Show DialogFragment from onActivityResult
Android
Android Fragments
Android Dialogfragment
Cannot call getSupportFragmentManager() from activity
Android
Android Activity
Android Fragments
(Deprecated) Fragment onOptionsItemSelected not being called
Android
Android Fragments
Android Actionbar
ScrollView Layout does not fill the whole screen
Android
Android Layout
Android Fragments
MapView in a Fragment (Honeycomb)
Android
Google Maps
Android Fragments
Android Maps
Android 3.0-Honeycomb
Android Compatibility Package doesn't include Activity.getFragmentManager()
Android
Android Fragments
Android Activity
Fragments - The specified child already has a parent. You must call removeView() on the child's parent first
Android
Android Fragments
Surfaceview
Fragment not attached to a context
Android
Android Fragments
In Fragment on back button pressed Activity is blank
Android
Android Fragments
Proper way of dismissing DialogFragment while application is in background
Android
Android Fragments
Android Dialog
Android Dialogfragment
FragmentTransaction animation to slide in over top
Android
Android Fragments
Android Animation
onActivityResult() not called in new nested fragment API
Java
Android
Kotlin
Android Fragments
Android Nested-Fragment
What is the difference between FragmentPagerAdapter and FragmentStatePagerAdapter?
Android
Android Fragments
Android Viewpager
Fragmentpageradapter
Fragmentstatepageradapter
How to properly retain a DialogFragment through rotation?
Android
Android Fragments
Android Fragmentactivity
Android Dialogfragment
Registering and unregistering BroadcastReceiver in a fragment
Android
Android Fragments
Broadcastreceiver
Remove old Fragment from fragment manager
Android
Android Fragments
Android Tabhost
Android Fragment onCreateView vs. onActivityCreated
Android
Android Fragments
Lifecycle
Android Activity
Android Lifecycle
Use Toast inside Fragment
Android
Android Fragments
Android Activity
Toast
Android ViewPager get the current View
Android
Android Fragments
Tabs
Android Viewpager
Basic communication between two fragments
Android
Android Fragments
Android Studio and android.support.v4.app.Fragment: cannot resolve symbol
Android
Android Fragments
Android Studio
Removing a Fragment from the back stack
Android
Android Fragments
How to test if a fragment view is visible to the user?
Android
User Interface
Android Fragments
Android Viewpager
Handling ActionBar title with the fragment back stack?
Android
Android Fragments
Android Actionbar
Actionbarsherlock
When switch fragment with SwipeRefreshLayout during refreshing, fragment freezes but actually still work
Android
Android Fragments
Android Recyclerview
Swiperefreshlayout
Rejecting re-init on previously-failed class java.lang.Class<nt>: java.lang.NoClassDefFoundError
Android
Google Maps
Android Fragments
android: how do I check if dialogfragment is showing
Android
Android Layout
Android Fragments
Android Dialogfragment
When a Fragment is replaced and put in the back stack (or removed) does it stay in memory?
Android
Memory
View
Android Activity
Android Fragments
Why use Fragment#setRetainInstance(boolean)?
Android
Android Fragments
Android Lifecycle
Hide MenuItem in some Fragments
Android
Android Fragments
Android Optionsmenu
RecyclerView not calling onCreateViewHolder or onBindView
Java
Android
Android Fragments
Android Recyclerview
reusing fragments in a fragmentpageradapter
Android
Android Fragments
Fragment
Android Compatibility
Android FragmentTransaction Custom Animation (Unknown Animator Name: Translate)
Android
Android Fragments
Android Animation
Sharing data between fragments using new architecture component ViewModel
Android
Android Fragments
Android Activity
Master Detail
Android Architecture-Components
Pull to refresh recyclerview android
Android
Android Fragments
Android Volley
Android Cardview
Pull to-Refresh
How to handle onContextItemSelected in a multi fragment activity?
Android
Contextmenu
Android Fragments
Android Support-Library
Is it possible to access the current Fragment being viewed by a ViewPager?
Android
Android Fragments
Android Viewpager
Position of DialogFragment in Android
Android
Android Layout
Android Fragments
Android Dialogfragment
ViewPager's Fragment's view lost when ViewPager's parent Fragment hidden then shown
Android
Android Fragments
Android Viewpager
To Fragment or not to Fragment - Nested Fragments against Activities. Why should I use more than one Activity?
Android
Android Activity
Android Fragments
Difference between extending LifecycleActivity,Activity,ActionbarActivity & AppCompactActivity?
Android
Android Fragments
Android Activity
Android Actionbar
Difference and uses of onCreate(), onCreateView() and onActivityCreated() in fragments
Android
Android Fragments
Android Lifecycle
Oncreate
Fragment Lifecycle
Fragment's onSaveInstanceState() is never called
Android
Android Fragments
How to set app:layout_scrollFlags for Toolbar programmatically
Android
Android Fragments
Android Toolbar
Android Coordinatorlayout
Call an activity method from a fragment
Android
Android Fragments
Android Fragment handle back button press
Android
Android Fragments
Why use Fragments?
Android
Android Fragments
Activity Layout: Fragment class: vs android:name attributes
Android
Android Fragments
Android Xml
Xml Attribute
OnActivityResult method is deprecated, what is the alternative?
Android
Android Fragments
Android Activity
Onactivityresult
How to access parent Activity View in Fragment
Android
Android Fragments
Fragment
onActivityResult RESULT_OK can not be resolved to a variable in android?
Android
Android Fragments
Understanding Fragment's setRetainInstance(boolean)
Android
Android Fragments
Member variables vs setArguments in Fragments
Java
Android
Coding Style
Android Fragments
Send data from activity to fragment in Android
Android
Android Fragments
cannot convert from android.app.FragmentManager to android.support.v4.app.FragmentManager
Java
Android
Android Listview
Android Fragments
understanding onTrimMemory( int level )
Android
Memory Management
Android Fragments
Android Activity
Detect ViewPager tab change inside Fragment
Android
Android Fragments
Android Viewpager
Android FragmentManager BackStackRecord.run throwing NullPointerException
Java
Android
Android Fragments
Fragmentmanager
Wrong requestCode in onActivityResult
Android
Android Fragments
Onactivityresult
Difference between add(), replace(), and addToBackStack()
Android
Android Fragments
ViewPager as a circular queue / wrapping
Android
Android Fragments
Android Viewpager
Communicating between a fragment and an activity - best practices
Android
Android Fragments
Android Activity
Communication
How to add Action bar options menu in Android Fragments
Android
Android Fragments
Android Actionbar
Android Optionsmenu
onAttach() not called in Fragment
Android
Android Fragments
Android Activity
Android Support-Library
Fragmentmanager
Remove all fragments from container
Android
Android Fragments
Error in Fragment: "Already managing a GoogleApiClient with id 0"
Java
Android
Android Fragments
Fragment re-created on bottom navigation view item selected
Android
Android Fragments
Android Support-Library
Bottomnavigationview
Is there a way to get references for all currently active fragments in an Activity?
Android
Android Fragments
Android 3.0-Honeycomb
Android ViewPager padding/margin between page fragments
Android
Android Fragments
Android Viewpager
getView returning null when fragment has been created from an activity
Android
Android Layout
Android Intent
Android Fragments
Android 4.0-Ice-Cream-Sandwich
Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment
Android
Android Fragments
Android Maps
Illegalargumentexception
exception raised during rendering:Binary XML file line #-1:error inflating class<unknown>
Android
Android Layout
Android Fragments
Android Fragment onAttach() deprecated
Android
Android Fragments
Fragment in ViewPager not restored after popBackStack
Android
Android Fragments
Android Viewpager
Update Fragment from ViewPager
Android
Android Fragments
Android Viewpager
setUserVisibleHint called before onCreateView in Fragment
Android
Android Fragments
Callback
Fragments in Android 2.2.1, 2.3, 2.0. Is this possible?
Android
Android Fragments
Single page PreferenceActivity w/no headers/fragments?
Android
Android Fragments
Android Preferences
java.lang.IllegalStateException: Fragment no longer exists for key f1: index 3
Android
Android Fragments
How to add a fragment to a programmatically generated layout?
Android
Android Fragments
Android Linearlayout
Update ViewPager dynamically?
Android
Android Fragments
Android Viewpager
onRequestPermissionsResult not being called in dialog fragment
Java
Android
Android Fragments
Android 6.0-Marshmallow
Android Dialogfragment
Getting Binary XML file line #141: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
Android
Xml
Android Fragments
Hide/Show bottomNavigationView on Scroll
Android
Android Layout
Android Fragments
Bottomnavigationview
android:configChanges="orientation" does not work with fragments
Android
Android Fragments
Android Activity
Restart
GLSurfaceView inside fragment not rendering when restarted
Android
Opengl Es
Android Fragments
Glsurfaceview
Proper way to give initial data to fragments?
Android
Android Fragments
How to get application object into fragment class
Android
Android Fragments
Android Fragmentactivity
Request runtime permissions from v4.Fragment and have callback go to Fragment?
Java
Android
Android Fragments
Android 6.0-Marshmallow
Android Fragment no view found for ID?
Android
Android Fragments
Illegalargumentexception
How to destroy Fragment?
Android
Android Fragments
Pop the fragment backstack without playing the Pop-Animation
Android
Android Fragments
Android Animation
findFragmentById always returns null
Android
Android Fragments
Performing action after fragment transaction animation is finished
Android
Android Fragments
Android Animation
After the rotate, onCreate() Fragment is called before onCreate() FragmentActivity
Android
Android Fragments
Oncreate
Android Fragmentactivity
Android Support-Library
android hide toolbar in specific fragment
Java
Android
Android Fragments
Toolbar
How to catch navigation icon click on toolbar from fragment?
Android
Android Fragments
Toolbar
Snackbar is not working within fragment class
Android
Android Fragments
Android Activity
Android Design-Library
Android Snackbar
Fragments deprecated in Android P
Android
Android Fragments
Android 9.0-Pie
Use viewLifecycleOwner as the LifecycleOwner
Android
Android Fragments
Android Livedata
Android Viewmodel
Got exception: fragment already active
Android
Android Layout
Android Intent
Android Emulator
Android Fragments
Fragment add or replace not working
Java
Android
Android Fragments
Setting the orientation for only 1 fragment in my activity while the rest is in portrait
Android
Android Fragments
Orientation
Creating a Fragment: constructor vs newInstance()
Android
Constructor
Android Fragments
Default Constructor
Navigation drawer - Disable click through on items behind the drawer
Android
Android Fragments
Navigation Drawer
Click Through
Navigating back to FragmentPagerAdapter -> fragments are empty
Android
Android Fragments
Android Viewpager
Fragmentpageradapter
Back Stack
How to open fragment page, when pressed a notification in android
Android
Android Fragments
Android Notifications
Android Pendingintent
How can I get Fragment from View?
Android
Android Fragments