How many Activities vs Fragments?
Intro: The basic “Fragments Tutorial” pattern goes something like this: On a tablet, have a list on the left, details on the right. … Read more
Intro: The basic “Fragments Tutorial” pattern goes something like this: On a tablet, have a list on the left, details on the right. … Read more
I have a FragmentActivity and I want to use a map fragment within it. I’m having a problem getting the support fragment manager … Read more
How can I pass data between a fragment and its container activity? Is there something similar to passing data between activities through intents? … Read more
I have a DialogFragment that contains a RecyclerView (a list of cards). Within this RecyclerView are one or more CardViews that can have … Read more
When I start an activity which implements viewpager, the viewpager created various fragments. I want to use different layouts for each fragment, but … Read more
In developer console error reports sometimes I see reports with NPE issue. I do not understand what is wrong with my code. On … Read more
I have placed setHasOptionsMenu(true) inside onCreateView, but I still can’t call onCreateOptionsMenu inside fragments. @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) … Read more
I have a fragment (F1) with a public method like this public void asd() { if (getActivity() == null) { Log.d(“yes”,”it is null”); … Read more
How to transfer some data to another Fragment likewise it was done with extras for intents? 11 Answers 11
I have multiple fragment inside an activity. On a button click I am starting a new fragment, adding it to backstack. I naturally … Read more