The purpose of the following function (in an Android app) is to programmatically lay out three vertical SeekBar objects one beside the other. The setting for th
I'm trying to create this kind of layout in android. I'm using constraint layout. I want to divide the screen with height y to two halves with y/2 height each.
I need to divide 3 views equally horizontally and the content of the views to be centered. I tried using the link: https://medium.com/@nomanr/constraintlayout-c
Rather than writing same code in every page, I need to have it somewhere in a layout file and include it in other files. I have tried this and failed: flow.xml:
I have multiple layouts that I want to display in a different location depending on screen size. If the screen is wide enough (tablet), I want the layouts to di
I have a constraint layout that consists of two TextViews and a custom BoxBackgroundView. I want the box background to scale in size with the text, but when I u
Facing an issue recycle view is overlapping in Widget.Flow layout. First-time app installation is working fine as excepted but user scrolls up and done items ar
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
I am using a MotionLayout with a scene-xml: <Transition motion:constraintSetStart="@+id/start" motion:constraintSetEnd="@+id/end" > <O
I want to create a layout like this, but I don't know how to place the CardView background under the ImageView and then set TextView below the image. The image
I'm trying move items bottom middle, and I want that it was on bottom middle for all devices. And I need add text above and under my imagviews on middel. Sorry
I want to chain title and description text centered with respect to image with chainStyle.Packed how to achieve this in jetpack compose. when i use createVertic
How to make this curved view having text inside, in constraint Layout
I'm having 3 view in a row: title, version and imageview (working as button): title should be wrap_content but respecting the following rules version should be
The child View of ConstraintLayout is set app:layout_constraintTop_toBottomOf="parent" to hide at the bottom of the screen. Just after entering the Activity, wh
Suppose i have a horizontal GuideLine at 30% of parent and a View (suppose a Button) how can i make that view be centered on the guideline? Like this: Updat
Imagine you have a LinearLayout inside a RelativeLayout that contains 3 TextViews with artist, song and album: <RelativeLayout ... <LinearLayout
Android studio layout preview is stuck in waiting for build to finish even though there is no build happening. I have invalidate and restarted android studio. I