Top "Android-linearlayout" questions

LinearLayout is one of the basic layouts in Android.

Trouble aligning TextView and Checkbox in a layout

I have a linear layout that contains a textview and checkbox. <LinearLayout style="@style/linearLayoutStyleNoBgColor" > <TextView android:…

android android-layout android-linearlayout android-styles android-checkbox
Error parsing XML: unbound prefix on custom LinearLayout

I found this example of Custom LinearLayout on stackoverflow but it throws errors when i try to run it, can …

android exception custom-controls android-linearlayout inflate
Android AdMob not showing LinearLayout on Bottom

Okay really weird situation with AdMob. I want to place the ad on the bottom I have a LinearLayout. When …

android admob android-linearlayout adview
Display PopupWindow upon clicking a button?

Currently, I have a button, within a Linear Layout, like so: <LinearLayout android:layout_width="match_parent" android:layout_…

java android android-linearlayout illegalstateexception android-popupwindow
Android: How to remove divider lines in number picker

How can I remove divider lines in number picker, I tried setShowDivider to none(seems none doesn't exist) through xml …

java android android-linearlayout numberpicker
LinearLayout flagged if used in CardView

I have used a LinearLayout in a CardView to get a kind of social media login button look and it …

android android-layout android-linearlayout android-cardview
combining wrap_content on parent and fill_parent on child

Setting two or more elements of a linear layout the same height seems to be a great problem. I want …

android xml position android-linearlayout
Android layout previewer throws error when adding custom LinearLayout

I've defined a custom ViewGroup that extends the functionality of a LinearLayout: public class TestLayout extends LinearLayout { public TestLayout(Context …

java android android-linearlayout layout-inflater
how to set LinearLayout in bottom of FrameLayout programmatically?

I have this code : FrameLayout game = new FrameLayout(this); LinearLayout gameWidgets = new LinearLayout (this); game.addView(gameWidgets); How to set …

android android-linearlayout android-framelayout
How to align elements horizontally within a LinearLayout?

I am not able to control the height of the LinearLayout. These won't align properly and won't fill up the …

android android-layout android-linearlayout android-layout-weight