Advertisement
Guest User

layout_header.xml

a guest
May 1st, 2016
36,852
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.78 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.                 android:layout_width="match_parent"
  4.                 android:layout_height="190dp"
  5.                 android:background="#2ecc71"
  6.                 android:orientation="vertical">
  7.     <ImageView
  8.         android:layout_width="wrap_content"
  9.         android:layout_height="wrap_content"
  10.         android:layout_gravity="bottom"
  11.         android:layout_marginLeft="100dp"
  12.         android:padding="30dp"
  13.         android:src="@drawable/icon_profile" android:layout_alignBottom="@+id/linearLayout"
  14.         android:layout_alignParentRight="true" android:layout_alignParentEnd="true"/>
  15.     <LinearLayout
  16.         android:layout_width="wrap_content"
  17.         android:layout_height="wrap_content"
  18.         android:layout_gravity="bottom"
  19.         android:orientation="vertical" android:layout_alignParentBottom="true"
  20.         android:layout_alignParentLeft="true" android:layout_alignParentStart="true"
  21.         android:id="@+id/linearLayout">
  22.  
  23.         <TextView
  24.             android:id="@+id/name"
  25.             android:layout_width="match_parent"
  26.             android:layout_height="wrap_content"
  27.             android:layout_marginBottom="5dp"
  28.             android:layout_marginLeft="16dp"
  29.             android:text="Okedroid.com"
  30.             android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  31.             android:textStyle="bold" />
  32.  
  33.         <TextView
  34.             android:layout_width="match_parent"
  35.             android:layout_height="wrap_content"
  36.             android:layout_marginBottom="16dp"
  37.             android:layout_marginLeft="16dp"
  38.             android:text="Blog Android and Teknologi"
  39.             android:textColor="#fff" />
  40.     </LinearLayout>
  41. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement