Skip to main content
  1. About
  2. Stack Internal
The 2026 Annual Developer Survey is live— take the Survey today!
Filter by
Sorted by
Tagged with
Filter by Employee ID
Best practices
0 votes
1 replies
66 views

I would like to move navigation logic from MainActivity to MainFragment. However, when navigation happens, I also need to update the selected item in the NavigationDrawer, which is defined in ...
Score of 0
1 answer
106 views

I have an Android app using AppCompat DayNight (Theme.MaterialComponents.DayNight.NoActionBar). Goal First run: app should follow OS theme (optional). After user manually selects Light or Dark, the ...
Score of 0
0 answers
64 views

I thought my code works well in terms of fragments management because I have tested it manually for a long time. Besides Crashlytics also didn't notify me that users are having any problem with it for ...
  • reputation score 149
Score of 0
0 answers
78 views

I can't seem to figure out why utilizing a the Camera2 or CameraX API (backend) with a PreviewView element (frontend) as a viewfinder for the camera doesn't seem to show the same field of view as the ...
Score of 3
1 answer
190 views

I have an audio player app, it's contain a PlaylistsFragment that contains 4 cards which navigate to other fragments (FavouritesFragment, RecentlyPlayedFragment, MostPlayedFragment, ...
Score of 3
0 answers
144 views

To implement Predictive Back feature in an app, that uses Fragments and Navigation Component, there are 2 options: Option A: Use Transition API. Just set animator animations directly into nav_graph ...
Score of 0
1 answer
82 views

I'm trying to add a view to the fragment stack, without any visible indication that it happened, so it appears when going back. Forexample, 3 Fragments, A, B and C A -> C Then when going BACK from ...
  • reputation score 759
Score of 1
1 answer
210 views

I've got some code which looks like this in my main activity: class MainActivity : AppCompatActivity() { private val backStackListener = FragmentManager.OnBackStackChangedListener { val ...
  • reputation score 16321
Score of 1
0 answers
52 views

I'm trying to create this cool looking bottom nav where the fragment content "flows under it" as you scroll. Here's the screen, focus on the bottom: notice how you can see the content of the ...
  • reputation score 273
Score of 2
1 answer
89 views

I have an app structured with one MainActivity and several fragments which are communicated with by some ImageButtons in this activity. In one fragment (UnreviewedFragment), I have a RecyclerView ...
  • reputation score 23
Score of 0
0 answers
73 views

I’m having an issue with a Frame Layout inside a Fragment that also contains a Google Map and a BottomNavigationView. Here’s my setup: A BottomNavigationView is anchored to the bottom of the screen. ...
  • reputation score 121
Score of 2
1 answer
245 views

I’m migrating a Fragment-based app to Jetpack Compose incrementally. Some screens are still Fragments that host Compose with ComposeView. I recently changed a screen to pass a tabUid through Fragment ...
Score of 1
1 answer
54 views

here is the code for the main page activity <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://...
  • reputation score 21
Score of -1
1 answer
116 views

In a FragmentActivity, I try to set insets to correct the edge to edge appearance of my app. To do this, I copy the following code taken from Edge to edge display in my onCreate function : ...
  • reputation score 1830
Score of 0
1 answer
42 views

I have 2 activities in my app. When another one is called there is a spinner but it doesn't spin. I think it may be because the main thread is stuck. I moved all background tasks to Dispatchers.IO, ...

15 30 50 per page
1
2 3 4 5
...
3035

AltStyle によって変換されたページ (->オリジナル) /