fragment Questions
7
Solved
I am working on BottomSheetDialogFragment my requirement is to create Bottom menu,
Where if I click outside fragment area it should not cancel the Dialog and should persist.
ISSUE:
And Event outs...
Trina asked 16/4, 2019 at 9:28
3
Solved
I am using navigationcontroller to navigate to another fragment
Navigate to second fragment
private fun moveToNextScreen(userId: String) {
val bundle = bundleOf("userId" to userId)
binding.goo...
Pochard asked 3/6, 2020 at 15:41
8
I would like to show a progress dialog within a dialog fragment.
However when I am using this code
ProgressDialog prog = new ProgressDialog(ctx);
prog.setTitle(getString(R.string.pleaseWait));
pr...
Arana asked 24/4, 2014 at 14:39
4
Solved
I'm creating a view pager in my app and using a class that extends Fragment on it. When I create an instance I can pass all the elements (an image, text, etc) and store it with the Bundle to use it...
Muscid asked 5/10, 2017 at 13:44
9
Solved
I need to pass data between from 5 fragments to one Activity, those fragments send data one after another when i reach 5'th fragment then i need to store all 5 fragments data how can we do this. an...
Cockade asked 21/1, 2013 at 13:40
7
Solved
I want to set up my toolbar as an actionbar, but since your toolbar is a layoutelement it has to be in your layout. Now my layout is in my fragment.
I added the toolbar in my layout and I call it ...
Wray asked 20/11, 2014 at 1:25
11
Solved
my background for my fragment is white, and the arrow for the spinner does not display unless I click on it.
This is the snippet from my Java file:
spinner = (Spinner)v.findViewById(R.id.spinner...
6
I get the Exception from Firebase Crashlytics
Fatal Exception: java.lang.IllegalStateException: Fragment MyFragment{122418b (05b123e6-aa8d-4de4-8f7e-49c95018234b)} not attached to a context.
at a...
17
Solved
I am using DialogFragments for a number of things: choosing item from list, entering text.
What is the best way to return a value (i.e. a string or an item from a list) back to the calling activi...
Horde asked 5/6, 2012 at 21:35
2
Solved
I'm new at navigation graph and I have a simple movie application that contains a BottomNavigationView with 2 tabs or 2 icons , the first icon or first tab contains 2 Fragments the first one is Fee...
Haricot asked 5/7, 2023 at 17:49
3
Solved
I am working on a CustomListView for a fragment and CustomAdapter extends from BaseAdapter . In my CustomAdapter there is button on click that button i want to move a activity but i don't know how ...
10
Solved
How do I declare a menu inside of Android fragment? The method that I had used previously is now deprecated.
Originally:
override fun onCreateView(...): View {
setHasOptionsMenu(true)
}
overri...
Urbain asked 18/4, 2022 at 22:56
6
Solved
I'm getting a loading object waiting for a request from the webservice. But sometimes this object causes my application to end. I couldn't detect exactly what the error involved.
In order to preve...
Sienkiewicz asked 27/3, 2019 at 11:48
3
Solved
I'm using BottomSheetDialogFragment to show some data.But when I'm starting the fragment it's appearing 50% of the screen .So, my question is how to make it full screen when it shows.
BottomSheetD...
Sagittate asked 1/12, 2017 at 7:13
18
Solved
I am working with Fragments which implements an interface.
public class SigninFragment extends Fragment implements SigninInterface
The interface's method implementation in the fragment class is a...
Bibliopole asked 14/2, 2015 at 11:14
2
I am trying to initialize my viewmodel object in the FirstFragment.java file of BasicActivity. All theses four codes are failed. The documentation could not help me much.
mViewModel = new ViewMod...
Dekko asked 23/4, 2020 at 19:38
10
Solved
I have stored some data to a Global Class By using the Application Context In One Activity. Later I have to Retrieve those values in A Fragment. I have done something like this to store in Global C...
Myrta asked 9/12, 2013 at 6:12
32
Solved
I'd like to know how properly handle system back button action using Navigation Controller. In my app I have two fragments (for ex. fragment1 and fragment2) and I have an action in fragment1 with d...
Rooks asked 26/6, 2018 at 12:52
9
Solved
I am using a DialogFragment, and while I have successfully set an image to close (i.e. dismiss) the dialog when pressed, I am having a hard time finding the way to dismiss the dialog when the user ...
8
Solved
In React I can do something like this:
// parent component
export default (){
return (
<div>
<div>1</div>
<ChildComponent />
<div>5</div>
</div>
)...
9
Solved
We are using Fragments and we don't need them to be automatically recovered when the Activity is recreated.
But Android every time when Activity::onCreate(Bundle savedInstanceState) -> super.onCrea...
Tadzhik asked 20/3, 2013 at 9:5
3
I have a simple DialogFragment that calls dismiss when exits, according to the documentation:
public void dismiss()
Dismiss the fragment and its dialog. If the fragment was added to the
back...
Habitual asked 12/3, 2015 at 5:24
8
Solved
I have a simple Activity with TabLayout, ViewPager and 2 Fragments in it. Here's my Activity:
public class ManagementCompanyOverviewActivity extends BaseActivity implements ManagementCompanyOvervi...
Idiolect asked 5/9, 2017 at 8:20
7
Solved
I want to inflate a layout containing a single seekBar. in this way, I've created a java class that extends fragment class and then I inflate the layout. but the following error occurred:
Binary XM...
Gnostic asked 15/4, 2021 at 18:55
5
Solved
I am using 4 fragments inside a ViewPager ,as ViewPager load the previous and next fragment in advance ,and no lifecycle method is called when navigating between fragments.
So is there any way to d...
Sami asked 20/2, 2018 at 19:41
1 Next >
© 2022 - 2025 — McMap. All rights reserved.