3,848 questions
0 votes
0 answers
125 views
Android Studio Supporting Edge-to-Edge On Android 15+ with RelativeLayout Programmatically
I have a view which is fully coded in Java public class SurvivorLayout extends RelativeLayout { public SurvivorLayout(Context context, final List<Survivor> list) { super(context); ...
0 votes
1 answer
47 views
XML layout_alignParentBottom="true" in api 34 or above is not sticking to bottom but moves with keyboard
Since API=34 and above the XML child android:layout_alignParentBottom="true" is not working properly. In my case I have created a RelativeLayout for the entire screen and added an xml ...
0 votes
1 answer
47 views
How to add an ad view in ConstraintLayout at bottom and below other stuff programmatically?
This question may look similar to the following question, but I need help solving my use case. It provides explanations for adding constraints inside the XML file. I'm trying to migrate from ...
0 votes
0 answers
13 views
Relative layout are going above the other layout
I want to have 2 lines: One with the content, the second with some buttons. But, one line is not below the other, but is above the first one. Example here: Here is my code: private fun createLayout(...
0 votes
0 answers
30 views
How to add a vector drawable with rounded corners to relative layout without background?
i created a rounded corners vector and try to add it as a drawable to a relative layout but the corners aren't visible because of a an unwanted background that is underneath this layout. i have a ...
0 votes
1 answer
58 views
RelatvieLayout's centerInParent doesn't work right with WindowInsetPadding
I set the centerInParent option to true for rl_container, which has a parent RelativeLayout. but even though the width and height of rl_container are match_parent, it doesn't fill the screen as shown ...
0 votes
1 answer
56 views
How to stop RecyclerView from overlapping TextView when scrolling Android TV
I have an Android TV app that has a RecyclerView below a TextView. Everything looks great until I click down to the third item which causes the RecyclerView to cover the TextView. <?xml version=&...
0 votes
1 answer
151 views
windowSoftInputMode="adjustResize" doesn't seems to work in case of Absolute Positioning in Relative Layout
I have an EditText in the lower part of my Android screen as shown in image. Due to some project contraints I'm supposed to use only Absolute positioning. When clicked on the EditText the soft ...
0 votes
1 answer
67 views
How can I stop my recylcerview from squishing to fit the page?
I have a RelativeLayout activity. At the bottom of the activity is 2 RecyclerViews. When the RecyclerViews have too many items in them, the bottom one will stop expanding as it hits the bottom of the ...
0 votes
1 answer
150 views
Letterbox a video preview within a box
I have a texture view that displays video from the camera. The texture view is constrained by a fixed-width framelayout on the right, with buttons. Its constrained on the bottom by another framelayout ...
1 vote
2 answers
875 views
How to handle configuration changes (Screen orientation, App display size etc) in Android programatically
Yes, there are already a lot of answers available on stack overflow on the same topic, most of them stating the following approach: Manifest.xml: <activity android:name=".MainActivity&...
0 votes
0 answers
36 views
Android: How to place a view so it is constrained and overlaps views inside neighboring customviews
I am trying to dynamically create and place a View which starts below an icon within a custom 'RecordView', and above the same icon of another 'RecordView' which is just below it using a a ...
2 votes
2 answers
1k views
RelativeLayout error from TextInput and launch_screen file
The error message that the debugger gives me: This would be the component that is throwing me the error. Specifically it is the TextInput. I tried to remove it from the component and the error ...
6 votes
1 answer
2k views
class not found Relative Layout error in React native app
is there anyone who can please tell about this error is started after I set splash screen to my react native app. my app was working before I added splash screen, I think there is something wrong in ...
0 votes
1 answer
303 views
How to get the x,y coordinates of touch on a View (textview, button etc) in Android
I have the following structure in android Relative Layout 1 (background color black) Relative Layout 2 (background color white) TextView 1 (background color red) when a user touches on my textview(...