I am confused about the difference between LinearLayout, RelativeLayout, and AbsoluteLayout. Could someone please tell me the exact differences between them? 5 Answers 5
I’m trying to center an ImageView inside a LinearLayout horizontally and vertically, but I just can’t do it. The main reason why I’m not using a RelativeLayout for that...
How do I use a compound drawable instead of a LinearLayout that contains an ImageView and a TextView
Ran the new Lint tool against my code. It came up with a lot of good suggestions, but this one I cannot understand. This tag and its children can...
I have lot of items on the screen and I need to use the scrollbar so the user can scroll down. However, the scroll is either not visible or...
I am having trouble applying a gradient background to a LinearLayout. This should be relatively simple from what I have read but it just doesn’t seem to work. For...
I always read about this funny weight value in the Android documentations. Now I want to try it for the first time but it isn’t working at all. As...
I have a LinearLayout (oriented horizontally) that contains 3 buttons. I want the 3 buttons to have a fixed width and be evenly distributed across the width of the...
I have frequent problem in android view, Error parsing XML: unbound prefix on Line 2. <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:orientation="vertical" android:id="@+id/myScrollLayout" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="Family" android:id="@+id/Family" android:textSize="16px"...