Top "Android-linearlayout" questions

LinearLayout is one of the basic layouts in Android.

Scrolling with Multiple ListViews for Android

I'm completely stumped on this one. I have three different lists that need to be displayed on the screen. It's …

android listview scrollview android-linearlayout
Set a Margin between two buttons programmatically from a linearlayout

How can i set a margin of 20dp between the button "regler" and "decommender" programmatically. Here is my workings LinearLayout …

android android-linearlayout android-button margins
Android: How to propagate click event to LinearLayout childs and change their drawable

I would like to create a linear layout which would behave similarly to ImageButton. <LinearLayout android:id="@+id/container" …

android onclick android-linearlayout
Android Layout with ListView between a "top bar" and "bottom bar"

I'm trying to construct a layout where there is a text view at the top of the screen and a …

android android-layout android-linearlayout footer android-relativelayout
How to create a simple custom View?

I would like to create an custom View on Android. I have tried to do it as simple as possible …

android view android-linearlayout custom-view
How to get programmatically width and height of Relative - Linear layout in android?

I required runtime dimensions of Relative/Linear Layout. activity_home.xml: <RelativeLayout android:id="@+id/rlParent" android:layout_width="…

android android-linearlayout android-relativelayout
How to group multiple views in a ConstraintLayout

I have added 3 buttons in a ConstraintLayout. I have added a button to disable or enable these buttons. If I …

android performance android-layout android-linearlayout android-constraintlayout
Remove space between buttons in LinearLayout (Android)

I need to make my own toolbar in Android application. Now it looks like this: So you see spaces between …

android toolbar margin android-linearlayout
How to set Ripple effect on a LinearLayout programmatically?

I want to set the background android.R.attr.selectableItemBackground to a LinearLayout. When using XML there are no problems (…

android background android-linearlayout clickable
How to specify background color in Color State List Resources?

To give the user of my app an indication which field currently has the focus I am trying to change …

android colors android-linearlayout