Skip to main content
0 votes
0 answers
77 views

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'...
Harsh Ranjan's user avatar
0 votes
1 answer
89 views

I created a custom view in Kotlin for Android called CardButtonView. However, when I use this view, the visibility attribute is not respected. For example, if I set android:visibility="gone" ...
Alessandro Nunes Bertoni's user avatar
1 vote
0 answers
60 views

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 ...
Mofajjal Hossain Arafath's user avatar
0 votes
0 answers
27 views

Let's have TextInputLayout and TextInputEditText, which looks like this: <com.google.android.material.textfield.TextInputLayout android:id="@+id/input_variable_text_input" ...
Viewed's user avatar
  • 1,453
0 votes
2 answers
60 views

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 ...
Viewed's user avatar
  • 1,453
1 vote
1 answer
147 views

So I need to implement similar shape in Jetpack Compose I'm trying it with the following code but for now with no luck: fun clippedCardShape(clipRadius: Float = 30f): Shape { return object : ...
user924's user avatar
  • 12.9k
0 votes
0 answers
29 views

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 ...
Vladimir 's user avatar
0 votes
0 answers
45 views

I'm using this StaticLayout.Builder in Android. val staticLayout = StaticLayout.Builder.obtain(fullText, 0, fullText.length, textPaint, containerWidth).build() I want to be able to ...
afe addeh's user avatar
1 vote
1 answer
45 views

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 ...
Lily Monta's user avatar
1 vote
0 answers
104 views

I'm doing some work with Canvas.drawPoint(float, float, Paint), but I found a strange thing: this method doesn't work. At first, I thought it was a problem with my code, so I wrote a simple test code: ...
L. Swifter's user avatar
  • 3,255
1 vote
0 answers
28 views

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:...
Ngọc Hưng's user avatar
-1 votes
1 answer
78 views

I want to build an app where you can draw ancient hieroglyphs on a canvas in a custom view. I have to provide over 1000 hieroglyphs in vector graphic format (for scaling mirroring etc.). The provided ...
electric_eel23's user avatar
2 votes
4 answers
239 views

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 ...
Orbit's user avatar
  • 2,415
-1 votes
1 answer
127 views

I want to build the iOS-like Messages chat bubble in Android using the custom view class this is the code that I use to create the rounded corner rectangle and it will be based on the height and ...
Jay Dolar's user avatar
0 votes
1 answer
28 views

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 ...
schwitzky's user avatar

15 30 50 per page
1
2 3 4 5
219