Issue I have a navigation drawer like this image. I want to add a section separator (like the line separating Neptune). It seems simple but I can’t find anything on the web that was useful for my case. Here is
Continue readingTag: android-fragments
Is it possible to invoke a back button click programmatically?
Issue I’ve seen plenty of answers explaining how to override and add functionality to a back button press via user’s interaction, but almost none of the answers explain how to programmatically trigger a back button press without any user input.
Continue readingFragments are getting destroyed when back pressed. I want it to be not destroy when back press so that I can save the states of fragments
Issue I created an Activity and added 3 fragments into it. One is HomeFragment, second is ProductDetailFragment, and third is CartFragment. I have added multiple quantities of a product from ProductDetailFragment and I want the quantity detail to be saved
Continue readingissue in Android Fragment : still click on previous fragment
Issue I have developed an application that have navigation Drawer and many fragment inside drawer so I getting issue while I am open fragment inside fragment, in one fragment I have List view when user click on listview item they
Continue readingBottom Navigation icons not highlighting with respect to the loaded fragment
Issue I have , Two fragments (Fragment1,Fragment2). Two buttons (Btn1 in frag1 , Btn2 in frag2). A bottom navigation view. On clicking the Btn in frag1 , we will be directed to frag2. On clicking the Btn in frag2 ,
Continue readingcall a fragment from another class\function kotlin
Issue GameActivity ____FragmentQuest ____FragmentFight class MapLvl.kt this is a text RPG Fragment Quest displays a journey through different maps (changing the content in one fragment according to a template) text, pictures, navigation buttons. if there is a mob on the
Continue readingWhy navigation still error after passing the necessary parameter?
Issue I have 3 fragments (A,B,C), the flow is like this : A -> B <-> C. I want fragment B only receive argument from fragment C, but I got error on Fragment A that says I have to pass
Continue readingHow to show action bar when replace a fragment after hiding it on previous fragment?
Issue I have an actionbar on MainActivity level (mainActionBar) and an actionbar on fragment level (fragActionBar). I have 3 fragments (A,B,C). I want mainActionBar to be shown when I’m accessing fragment A and B. On the other hand, I want
Continue readinglateinit property groupList for expandableListView has not been initialized
Issue I created a Listadapter for an expandable ListView. This adapter needs a List and a HashMap. I tried to initalize those two in a fragment with lateinit, to display this expandable ListView with custom groups and childs. But when
Continue readingCan't figure out how to use viewbinding in my fragment
Issue I try to implement the following fragment in my app. import android.view.Gravity import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.jiangdg.ausbc.base.CameraFragment import com.jiangdg.ausbc.widget.AspectRatioTextureView import com.jiangdg.ausbc.widget.IAspectRatio class DemoFragment : CameraFragment() { private lateinit var mViewBinding: DemoFragmentBinding override fun initView() { super.initView()
Continue reading