Advertisement
Guest User

Android Layout Margin

a guest
Dec 13th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.93 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.     xmlns:tools="http://schemas.android.com/tools"
  3.     android:layout_width="match_parent"
  4.     android:layout_height="match_parent"
  5.     android:background="@color/homeBgColor"
  6.     android:orientation="vertical" >
  7.  
  8.     <TextView
  9.         style="@style/CodeFont"
  10.         android:layout_width="match_parent"
  11.         android:background="@color/homeTitleBgColor"
  12.         android:gravity="center"
  13.         android:text="@string/home"
  14.         android:textColor="@color/homeTitleColor"
  15.         android:textSize="27dp"
  16.         android:textStyle="bold"
  17.         android:padding="10dp"
  18.         android:layout_margin="0dp"
  19.         tools:context=".Home" />
  20.  
  21.     <ImageView
  22.         android:id="@+id/imageView1"
  23.         android:layout_width="match_parent"
  24.         android:layout_height="0dp"
  25.         android:layout_weight="0.31"
  26.         android:contentDescription="@string/homePageImage"
  27.         android:gravity="center"
  28.         android:src="@drawable/jaltucher" />
  29.  
  30.     <TextView
  31.         android:id="@+id/read_article"
  32.         style="@style/CodeFont"
  33.         android:background="@drawable/custom_button"
  34.         android:gravity="center"
  35.         android:text="@string/read"
  36.         android:textColor="@color/homeTextColor"
  37.         tools:context=".Home" />
  38.  
  39.     <TextView
  40.         android:id="@+id/contact_james"
  41.         style="@style/CodeFont"
  42.         android:background="@drawable/custom_button"
  43.         android:gravity="center"
  44.         android:text="@string/contact_james"
  45.         android:textColor="@color/homeTextColor"
  46.         tools:context=".Home" />
  47.  
  48.     <TextView
  49.         android:id="@+id/about_inventika"
  50.         style="@style/CodeFont"
  51.         android:gravity="center"
  52.         android:text="@string/about"
  53.         android:textColor="@color/homeTextColor"
  54.         android:background="@drawable/custom_button"
  55.         tools:context=".Home" />
  56.  
  57. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement