Top "Android-layout" questions

A layout defines the visual structure for a user interface, such as the UI for an activity, fragment or app widget.

Set the absolute position of a view

Is it possible to set the absolute position of a view in Android? (I know that there is an AbsoluteLayout, …

android android-layout layout view position
How to change the color of a CheckBox?

How do I change the default CheckBox color in Android? By default the CheckBox color is green, and I want …

android android-layout android-checkbox
How to animate RecyclerView items when they appear

How can I animate the RecyclerView Items when there are appearing? The default item animator only animates when a data …

android android-layout android-recyclerview
How is using OnClickListener interface different via XML and Java code?

Possible Duplicate: Difference between OnClick() event and OnClickListener? I'm semi-new to Android development and when I first started I tried …

java android xml android-layout android-button
android:drawableLeft margin and/or padding

Is it possible to set the margin or padding for the image which we added with the android:drawableLeft?

android android-layout android-drawable
How set the android:gravity to TextView from Java side in Android

I can use android:gravity="bottom|center_horizontal" in xml on a textview to get my desired results, but I …

android android-layout textview gravity
Vertical line using XML drawable

I'm trying to figure out how to define a vertical line (1dp thick) to be used as a drawable. To …

android android-layout line android-xml android-drawable
What's "tools:context" in Android layout files?

Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for example: &…

android xml android-layout android-context android-tools-namespace
What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?

I am confused about the difference between LinearLayout, RelativeLayout, and AbsoluteLayout. Could someone please tell me the exact differences between …

android android-layout android-linearlayout android-relativelayout android-framelayout
Android button with icon and text

I have some buttons like this in my app: <Button android:id="@+id/bSearch" android:layout_width="fill_parent" …

android android-layout android-button