About 8,770,000 results
Open links in new tab
  1. android - Why fragments, and when to use fragments instead of ...

    In Android API 11+, Google has released a new class called Fragment. In the videos, Google suggests that whenever possible (link1, link2), we should use fragments instead of activities, …

  2. android.view.InflateException: Binary XML file: Error inflating class ...

    For me, I solved my issue by setting the id of the inner fragment to be the same id as the one used to describe the inner fragment from the outer fragment. In other words, …

  3. android - What's the difference between detaching a Fragment …

    Feb 6, 2012 · In the Android docs for a FragmentTransaction I noticed two very similar methods: detach and remove. The descriptions over there don't seem to provide much insight about …

  4. How to move from one fragment to another fragment on click of …

    Apr 22, 2014 · I have an ImageView. I want to move from one fragment to another fragment on a click of an Imageview, the same way like we can move from one activity to another using …

  5. android - How to use setArguments () and getArguments () …

    Instantiating the Fragment the correct way! getArguments() setArguments() methods seem very useful when it comes to instantiating a Fragment using a static method. ie …

  6. android - How to use Compose inside Fragment? - Stack Overflow

    The documentation describes how to create UI Jetpack Compose inside Activity. class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { …

  7. android - Method to refresh Fragment content when data …

    May 7, 2025 · Nowadays, Android apps tend to implement the Android Navigation component (which simplifies fragment management and navigation), in which case it is recommended to …

  8. Android Navigation Component : Pass value (arguments) in …

    Dec 23, 2019 · I had the same issue but I´m still not able to pass the arguments using fragment directions. Since I need the value in several of my fragments I decided to use a companion …

  9. How to display AlertDialog in a Fragment? - Stack Overflow

    I have had similar issues whereby I was trying to create an AlertDialog from a Fragment. A NullPointerException arose from it. Initially I did as follows: AlertDialog alertDialog = new …

  10. android - Fragment Inside Fragment - Stack Overflow

    Jul 13, 2011 · I need help regarding working on fragment inside fragment, actually I am facing a problem on pressing back button. Application Main screen has buttons and pressing on each …

Refresh