Category "android"

Clicking on item of Navigation Drawer doesn’t open fragments

I want to use the default Navigation Drawer Activity of Android Studio (v. 3.5). After creating this default activity (New Project --> Navigation Drawer Acti

How to make two CardView height as wrap_content in a linear layout

I have two MaterialCardView in a linear or relative layout (i don't care about the parent layout I only want the result) I want that both of the MaterialCardVie

Button Long Press Listener in Android jetpack compose

I am having an Android Composable UI with a Button. How can I track button long press events? I got it working for the Text long press, but for Button, It is no

How to reverse View Binding from custom tab layout in Android?

I made a custom tab item for my tab layout and initialized it using view binding as follows: val tabView = CustomTabBinding.inflate(LayoutInflater.from(mContext

Android autofill enters the same info multiple times, when reusing layout

I have a fragment in which I reuse the same layout multiple times. The layout has two EditText fields, one for name and one for email. In other words the view l

Kotlin for a new application for stock management?

I am searching a new language/framework for a v2 of a old app we have in my company, for stock management, and I was wondering if Kotlin could do the work. Basi

Smoothly animate BottomSheet peek height

I'm trying to animate the height of the BottomSheet on layoutChange, but I can't get anything to work. I've tried several tutorials without luck. Currently the

Expo splashScreen not changing

So I'm building an app apk file with expo, and I'm pointing to my splashscreen images on app.json. { "expo": { "name": "D&D Monster Reference",

Is there any way to stretch layout when device has cutout (notch)?

I'm making my project able to handle notch/cutout because users can see big black rectangle area when in landscape mode. Since my app's layout will be safe afte

How do I prevent Intent.createChooser from using the Intent automatically if there is only one intent?

I'm trying to create an Intent Chooser for editing a "Profile Picture", with the following options: 1. Camera 2. Gallery 3. Delete Image Based on the permissio

exception: View does not have a navController set

in the fragment which i made it host in the tag fragment in activity when i use navController = Navigation.findNAvController(view) the app crashes by the error:

android gradle fail "AAPT: error: resource color/com_facebook_button_background_color_focused_disabled"

when I am running build at Android Studio, there are linking failed from the out of project where is in ".gradle/caches/transforms-2/files-2.1/". I erased .gr

How to reduce material.switchmaterial.SwitchMaterial end margin in android?

I've used "com.google.android.material.switchmaterial.SwitchMaterial" in that left margin having some space. How to reduce that? I've need align straight of the

apex image failed to build android rom compiling

I'm trying to build crdroid 10 for my z5p I followed the guide given on GitHub and set my environment synced the files and after hours of building, I'm facing e

After sending data from MainActivity to Fragment, the variables are setup to 0.0

I'm trying to pass from MainActivity to Fragments (by using ViewPager, and TabLayout, if it will help you anyhow) user's latitude, and longitude. The thing is,

"E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array" error

I am trying to create an app which downloads and plays music. For stopping users from copying the music files, I want to encrypt the file as soon as it is downl

AccessibilityService on android studio doesn't work

i need to initialise an AccessibilityService with xml configuration, but the service doens't work... i don't understand why. can you help me ? code : manifest :

Use lazyColum inside the column has an error in the Jetpack Compose

I have a lazyColumn which I want to use inside the column but I get the below error and app crashes: Nesting scrollable in the same direction layouts like LazyC

Build Software Keyboard with Jetpack Compose - IME Input Method with Jetpack Compose

Building a simple keyboard is fairly simple and straightforward in Jetpack Compose. I built a really simple KeyRow by using this: Key.kt @Composable fun Key(mod

google play console app status draft why?

i'm trying to publish my new app on google play. but i'm confused about app status... in dashboard pages, app status showing DRAFT but why? is that a problem? w