54 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Score of 0
1 answer
97 views
How to add bottom padding for the navigation bar in a WebView (Android Components)?
I want to add bottom padding to the scrolling content in my WebView so that it is not hidden behind the navigation bar. I also want the navigation bar to be transparent while scrolling.
WebView ...
- reputation score 181
Score of 0
1 answer
88 views
Migration from interface callback to ViewModel + LiveData in Navigation Component – how to trigger list initialization before popBackStack?
I’m migrating from an interface-based fragment communication pattern (via Activity) to Navigation Component + shared ViewModel + StateFlow.
Legacy approach (interface callback)
From FilterFragment ...
- reputation score 181
Score of 0
1 answer
38 views
Android MDC - How to create navigation with one main top bar?
Problem description
When in Main Activity, the top bar and insets display correctly, but when I navigate to the store screen, the content overlaps the top bar (see image, the button obscures the back ...
- reputation score 181
Score of 0
1 answer
238 views
Unable to disable android component in Android 14
I'm trying to disable an Android component from my system app's service class using the code below. It's working fine in A13 and earlier versions, but it is not disabling the component in A14.
I also ...
- reputation score 1595
Score of 0
2 answers
427 views
Android Java: How to get component in a custom view? (Trying to access components via findByViewId and get null)
Trying to access components via findByViewId and get null
The problem is in this line:
(I cannot connect my viewxml to the class)
// HERE I GET NULL
**_addButton = context.findViewById(R.id....
- reputation score 3
Score of 1
1 answer
510 views
Android Jetpack Compose Grid looking view
My screen is divided into 3 main parts, currently (I guess that probably there is a better approach):
First part is showing data. It's divided into 9 almost identical items which to show different ...
- reputation score 145
Score of 2
1 answer
1974 views
is it necessary to unRegisterForActivityResult when start activity for result in android ? how manage different request codes?
I have two questions about registerForActivityResult call back in android. is it necessary to un register this call back when the activity is going to destroy? or this call back is lifeCycle aware and ...
- reputation score 116
Score of 2
1 answer
264 views
Android Work Manager periodic work request not repeating when app is cleared from recents
I have implemented a periodic work request using android work manager, the work is getting repeated if app is in foreground or background.
But when the app is cleared from recents, the work manager ...
- reputation score 21
Score of 1
0 answers
70 views
While setting Minimum date for one year calendar is showing hidden date in the calendar header
I set a minimum date to the DatePicker (#setMinDate) and though dates before the minDate are not displayed, there's a bug that if i change the year to past year (with same date as current day), and ...
- reputation score 11
Score of 1
2 answers
2928 views
How to set toolbar title from fragment using Navigation UI Component
I have an activity with a toolbar from a default layout in Android Studio and I can easily change the title in the toolbar through the following method:
Bundle bundle = new Bundle();
bundle....
- reputation score 4909
Score of 1
4 answers
3072 views
Android Navigation - Hide action bar for loading/splash screen?
I am wondering if there is a good pattern/method for hiding the action bar for splash/loading screens?? I understand the pattern isn't great, but we are retrofitting an existing app that uses ...
Score of -2
1 answer
363 views
Can I inspect any app's layout to find out which components they are using on Android device?
Can I take an app that I like and inspect it to see which components it is build off?
Take for example the menu structure of Androids "Developer Options" settings.
Say that I want to see if it uses ...
- reputation score 4230
Score of 1
1 answer
1276 views
Action is not generated in FragmentDirections when Fragment is used in a second nav graph
FragmentA is used in nav_graph_first and all the respective action methods/navigations are created in FragmentADirections but when FragmentA is used in nav_graph_second additional navigations are not ...
- reputation score 91
Score of 1
1 answer
520 views
Android - compare between button background to Resource
I'm trying to compare between button background to resource file.
For exmaple, I have button
BUTTON
<Button
android:id="@+id/btnGenre"
android:layout_width="110dp"
...
- reputation score 583
Score of 0
3 answers
1664 views
BottomNavigationView background color with opacity not working properly
I've implemented BottomNavigationView with navigation graph.
while setting a solid colour in navigationView as a background, it's working fine but when I set background colour with opacity it's not ...
- reputation score 789