Category "android-layout"

How to send message from "Activity" class to a customize layout

I am trying to develop a bluetooth app. I have a class called "ConnectionManagement" which implement the "connect/accept" and "read/write". The information i ge

Android sensor orientation problems with edge-to-edge insets

In edge-to-edge mode it is often useful to check various insets (status bar, navigation bar, etc) in order to make adjustments to your UI. Unfortunately when a

ExoPlayer PlayerView inflation taking time and causing significant frame drops

Inflation of com.google.android.exoplayer2.ui.PlayerView takes close to 25 to 30 ms on an average. And we are using in viewpager, so everytime user swipes the p

This app is using a deprecated version of the Android embedding

I am getting the following error. This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures-, or future build failur

Issue centering a QR square

I am writing an Android test app to see how to handle QR codes. This is the code for the main activity (MainActivity.kt) and a question is following. package me

Is anyone implemented layout camera feature like Instagram in Android?

I have already tried with single activity and multiple fragment which is added programmatically as per layout(2x2,2x3) same as instagram. But when i load camera

I am unable to use auto Image slider but not able to do so

I just wanted to use Auto image Slider, but after adding all the dependencies and other requirments like jitpack.io still I am unable to use sliderLayout of aut

Google support Map crashing

Google SupportMapFragment is crashing when executing this ( (SupportMapFragment)getChildFragmentManager().findFragmentById( R.id.map)).getMapAsync

Getter for defaultDisplay: Display!' is deprecated. Deprecated in Java

I need the width of the screen. But recently found Android defaultDisplay deprecacted with message: Getter for defaultDisplay: Display!' is deprecated. Deprecat

Layout not moving up when keyboard is open in Jetpack Compose

I have a layout in Jetpack Compose where I have a couple of composables (text view and input) that I need to stay at the top of the screen, and then another com

AAPT: Error: Resource attr/(various) not found

Having all kinds of problems tonight. Downloaded updated Android Studio and Gradle and coded a little and then started getting these errors. Have tried uninstal

I want to create a layout for cashiers point of sales in android studio

application de point de vente dans le cloud, applicable à tout MAGASIN, BOUTIQUE DE DÉTAIL, RESTAURANT, CAFE, KARAOKE ... et rend les ventes extr&

Create MaterialButtonToggleGroup including MaterialButton(s) with customized style programmatically in Android

I'm trying to create a MaterialButtonToggleGroup with material buttons inside it and I wanna do that with custom styles. I was able to create that using xml, h

MaterialCardView crashes with material:1.1.0

I am using MaterialCardView as my cardview layout. Now, Android-studio started showing me that instead of current implementation "com.google.android.material:m

MaterialCardView crashes with material:1.1.0

I am using MaterialCardView as my cardview layout. Now, Android-studio started showing me that instead of current implementation "com.google.android.material:m

Event synchronization issue in an Android app

Here is an issue I am facing in an Android app. Please let me know if I need to give more information. There is an animation running inside the app. And while i

Android CheckBox gets filled in with solid color when setting button attribute

rather simple situation. I have a checkbox, I set the button attribute to my selector with two drawables for checked and unchecked. It looks proper in the edito

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

ImageView exceeds parent android studio xml

How do I make a child ImageView clip to the bounds of its parent? When I add an ImageView as a child to a parent view with rounded corners, the child ImageView

How to configure XML file so RecyclerView doesn't overlap the rest of the content?

What my layout file currently does: My layout file after building an app looks like on the picture and before building What I want it to do: I want this info ic