65 questions
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(); ...
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(); ...
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...
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...
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 ...
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...
Functions that make fragments accessible public Fragment findFragmentByPosition(int position) { return getSupportFragmentManager().findFragmentByTag( android:switcher: + viewPager.getId() + : + + ...
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()) { ...
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...
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 ...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.