Top "Android-linearlayout" questions

LinearLayout is one of the basic layouts in Android.

frequent issues arising in android view, Error parsing XML: unbound prefix

I have frequent problem in android view, Error parsing XML: unbound prefix on Line 2. <?xml version="1.0" encoding="utf-8"?> &…

xml android eclipse android-linearlayout
How to center the content inside a linear layout?

I'm trying to center an ImageView inside a LinearLayout horizontally and vertically, but I just can't do it. The main …

android android-layout android-linearlayout
How can I create a border around an Android LinearLayout?

I have one big layout, and one smaller layout inside of it. How do I create a line border around …

android android-layout android-linearlayout
How to show shadow around the linearlayout in Android?

How can I show shadow for my linear layout. I want white colored rounded background with shadow around the linearlayout. …

android android-linearlayout roundedcorners-dropshadow
Android - Center TextView Horizontally in LinearLayout

I have the following basic layout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" …

android android-layout android-linearlayout layout-gravity
How to add (vertical) divider to a horizontal LinearLayout?

I'm trying to add a divider to a horizontal linear layout but am getting nowhere. The divider just doesn't show. …

android android-layout android-linearlayout divider
android:layout_height 50% of the screen size

I just implemented a ListView inside a LinearLayout, but I need to define the height of the LinearLayout (it has …

android android-layout size android-linearlayout android-layout-weight
Change background of LinearLayout in Android

I am working on an Android application. I want to change the background of a LinearLayout element. What attribute can …

android xml android-linearlayout
How to add a TextView to a LinearLayout dynamically in Android?

I try to add a TextView to a LinearLayout dynamically such as in the following code, but it doesn't appear …

android textview android-linearlayout
Android Linear Layout - How to Keep Element At Bottom Of View?

I have a TextView which I want to pin at the bottom of a landscape activity that is using LinearLayout …

android android-layout android-linearlayout