android-fragments tag

11 questions


1 answers
65 views
0
Managing FragmentPagerAdapter in FragmentManager

I am using FragmentPagerAdapter in Fragment, but when I display the Fragment below, it is displayed the first time, but since the second time, is the FragmentPagerAdapter?It is not called successfully...


2 answers
60 views
0
Actionbar menu item action

Nice to meet you.Please give me some advice.This is about how it works when you click menuItem on ActionBar on Android. I often look at things like Toast, but I can't find any screen transitions (from...


1 answers
103 views
0
How do I close the PreferenceScreen?

I created an application with user settings using Kotlin and the Preference Library, but I don't know how to close the settings screen.I want the title bar to go back when I press that button on top.(...


1 answers
83 views
0
You want SlidingPaneLayout to unify your behavior with smartphones and tablets.

For example, if you create multipain layout with SlidingPaneLayout like this<android.support.v4.widget.SlidingPaneLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http:/...


1 answers
82 views
0
How to do findViewById in Fragment

I'm going to make ImageView in Fragment and use it, but the image view is made in xml. But you can't use the findViewById method when you access the image view in Fragment. I heard it's only available...


1 answers
120 views
0
The onAttach() method has been deprecated in Android Fragment, so what is the alternative?

I have just confirmed that onAttach() has been deprecated in the Fragment class since Android API 23.in the pastonAttach (Activity activity)That's the partonAttach (Context context)It changed like thi...


1 answers
96 views
0
What is the difference between FragmentActivity and Activity?

While working on Fragment, I used Activity and Fragment Activity alternately, and I want to know the difference between these two. Even if you change Activity to Fragment Activity, there is no change ...


1 answers
138 views
0
I want to call the method of activity in the fragment

Fragment is trying to invoke the method of activity. After you turn over the data in the fragment and do something in the method,I want to return the value, but I want to make it like a static method,...


1 answers
73 views
0
NullPointerException when accessing view from onCreate()

This is one of the typical questions that is frequently asked in hashcodeYou have created a new activity using the wizard according to the tutorial. NullPointerException occurred when a method call wa...


1 answers
151 views
0
I want to add an Android option menu in Fragment, how do I do it?

I'd like to add an option menu to the Fragment group. So we created a class called Menu Fragment, and Fragments including menus inherited this class. public class MenuFragment extends Fragment { MenuI...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.