fragment tag

65 questions


2 answers
75 views
0
I want to save and use Activity in putSerializable

You are about to pass an instance of Activity to Fragment, and the newInstance method:public static DailyFragment newInstance (Activity activity) { DailyFragment dailyFragment = new DailyFragment(); ...

2 years ago

2 answers
129 views
0
I want to save and use Activity in putSerializable

You are about to pass an instance of Activity to Fragment, and the newInstance method:public static DailyFragment newInstance (Activity activity) { DailyFragment dailyFragment = new DailyFragment(); ...

2 years ago

1 answers
113 views
0
To call getSupportFragmentManager in Activity

I would like to call getSupportFragmentManager for a class that does not inherit FragmentActivity (inheriting Activity). Because you still need to see dialogs in previous operating systemsYou cannot u...

2 years ago

2 answers
88 views
0
I want to create a background with an outer frame.

I set the length and width to matchparent in LinearLayout on the outermost frame of fragment.xml, but it doesn't spread to the whole screen of the device, but it only spreads to the content of the con...

2 years ago

1 answers
78 views
0
Can't you not turn it off when you click the button in the dialog?

I made a dialog with EditText. There are Yes and No buttons. For example, if you click the Yes button, the input is checked and the dialog is turned off. But even if the input is wrong, the dialog is ...


3 answers
94 views
0
I implemented a listview in one of the fragments. How do I make another activity appear when I click?(Beginner)

I implemented a listview in one of the fragments. How do I code to make another activity appear when I click? I'm a beginner. Please help me.listview.setOnItemClickListener(new AdapterView.OnItemClick...

2 years ago

1 answers
79 views
0
Additional questions related to the delivery of previous Android fragment values

Functions that make fragments accessible public Fragment findFragmentByPosition(int position) { return getSupportFragmentManager().findFragmentByTag( android:switcher: + viewPager.getId() + : + + ...

2 years ago

2 answers
189 views
0
Hello, if you click the Back button in WebView within Android Fragment... (This is a beginner.)

public boolean onKey(View v, int keyCode, KeyEvent event) { if (event.getAction() != KeyEvent.ACTION_DOWN) return true; if (keyCode == KeyEvent.KEYCODE_BACK) { if (mWebView.canGoBack()) { ...

2 years ago

1 answers
146 views
0
I am using the viewfager and fragment on Android, and I would like to find the width of the linear layout in the fragment.

I'm using a viewfager and a fragment on Android.Among them, I want to find the width of the linear layout in one fragment.I'm a student practicing examples.private View rootView; @Override public View...

2 years ago

1 answers
98 views
0
If it's fragment initialization, I'll ask you a question!

Hello, I'd like to create an application based on fragments.Through the frame layout area of the main activity that you want to do as a home screen When you click the button on the menu, the web view ...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.