Issue I have a problem that EditSleepPressureFactorFragment inflates other xml file fragment_sleep_record.xml. But my intention is to inflate fragment_edit_sleep_pressure.xml. A Spinner having an id "year_spinner" is in fragment_edit_sleep_pressure.xml but binding!!.yearSpinner code occure unsolved refference. And binding!!.startSleepYear code cause no error.
Continue readingTag: android-fragments
[SOLVED] Bottom Navigation Bar and NestedScroll View hide my fragment activity
Issue I have an activity with a bottom navigation bar and fragments to show trough the items of this activity, in the first item i have a fragment layout with a nedted scroll view menu with 14 options, but when
Continue reading[SOLVED] How to integrate a new Fragment, different from the navigation bar Fragments and without replacing them, in an Android App?
Issue Having passed through multiple solutions on this site, while being new to navigation Fragments and Android in general I have this issue: I had 4 fragments that worked well together with the bottom navbar making the navigation; I added
Continue reading[SOLVED] CardView not showing up in fragment
Issue I want to make cardview list, I already create the XML for RecyclerView and the item also with the the adapter and the model. But when I run it, it show nothing just blank screen. This is my fragment
Continue reading[SOLVED] ViewBinding in Fragment
Issue I want to use ViewBinding to work with Views in Fragment. FragmentBlankBinding binding; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { binding = FragmentBlankBinding.inflate(inflater, container, false); return binding.getRoot(); } But when I try to get RecyclerView from
Continue reading[SOLVED] Data being passed from Activity to Fragment is returning null
Issue I have reviewed multiple solutions to my question, but each attempt results in my android application crashing due to the data being sent returning null. I am attempting to send a ArrayList of Strings to a fragment, but when
Continue reading[SOLVED] SearchView.onQueryTextListener does not work in Fragment (Kotlin)
Issue the problem that I present is with respect to the event onQueryTextListener, I declare it as it used it in java previously, but it does not show the log when I submit a text or when I change the
Continue reading[SOLVED] Listener from DialogFragment to Fragment
Issue I’m a beginner in Java and I’m trying to create a listener in my DialogFragment to notice my fragment that some book was removed. When the user removes a book, I want to call the removeBook method in BookFragment
Continue reading[SOLVED] Pull to refresh recyclerview android
Issue Hi I’ve a tabbed activity, and in the first tab I fetch data from server and show it in a recyclerview within card views. For fetching the data from server I use the volley library. I want to implement
Continue reading[SOLVED] Android Kotlin Fragments: ''Attempt to invoke virtual method on a null object reference''
Issue My code in MainActivity: val buttonbckbrowse = findViewById<Button>(R.id.buttonbck) buttonbckbrowse.setOnClickListener { val webView = findViewById<WebView>(R.id.webViewBrowse) webView.goBack() Toast.makeText(baseContext, "Back", Toast.LENGTH_SHORT).show() } buttonbck is in a different fragment. When trying to run my app I get ”Exception: Attempt to invoke virtual method
Continue reading