3,280 questions
0 votes
0 answers
77 views
View in WindowManager Flickers on Animated Height Change with `WRAP_CONTENT`
I am trying to create a system overlay using WindowManager. This overlay contains a ComposeView which, in turn, hosts a Composable that animates its height. My WindowManager.LayoutParams for the view'...
1 vote
0 answers
60 views
Accessibility on android custom view not working
I have a custom view , which extends ViewGroup, i.e CustomViewGrouup. There I am adding some ImageView. When user will click on some specific rectangular area on the CustomViewGroup, then I need to ...
0 votes
2 answers
60 views
How to fix the missing required view with ID in the custom View
I want to create a custom view based on com.google.android.material.slider.RangeSlider. It works on a physical device, but fails in the XML preview from Android Studio. I've tried rebuilding, clearing ...
0 votes
0 answers
29 views
The animation for the custom view does not play
There is a task to create a custom ViewGroup widget to which you can add only two child elements. Both are centered horizontally, the first one should be placed on the upper border of the parent ...
1 vote
1 answer
45 views
How to create a custom EditText with a blinking red background for setting errors in Android Kotlin?
I want to create a custom EditText in Android that shows a blinking red background when there is an error. The idea is to visually indicate to the user that input is invalid. Here is what I have tried ...
1 vote
0 answers
28 views
Android custom image with diagonal
I want to create a layout like this. It has 2 images with a diagonal running across the 2 images. Below is my xml layout. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http:...
2 votes
4 answers
239 views
Prevent GridLayout column width from stretching as if there were other columns
I have a programmatically created GridLayout that renders time slots within a specific day (such as an appointment time). At a maximum, each row should have 4 evenly spaced even width items, and at a ...
0 votes
1 answer
28 views
Android Studio Custom View Coordinates are offset
I'm working on an app in Android Studio that lets the user visualize a family tree. For the profiles of the family members, I created the custom view PersonCard: public class PersonCard extends ...