Skip to content

Instantly share code, notes, and snippets.

@SemonCat
Created June 11, 2014 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SemonCat/ce1d718b68da84cf462f to your computer and use it in GitHub Desktop.
Save SemonCat/ce1d718b68da84cf462f to your computer and use it in GitHub Desktop.
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.makeramen.RoundedImageView
android:id="@+id/avatar"
android:layout_width="100dp"
android:layout_height="100dp"
android:maxWidth="50dp"
android:maxHeight="50dp"
android:layout_margin="10dp"
android:scaleType="centerCrop"
app:corner_radius="360dip"
app:border_width="2dip"
app:border_color="#333333"
app:round_background="true"/>
<TextView
android:id="@+id/name"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="里里里"
android:layout_below="@+id/avatar"
android:layout_alignLeft="@+id/avatar"
android:layout_alignRight="@+id/avatar"
android:gravity="center"/>
<TextView
android:id="@+id/department"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="資工系"
android:layout_below="@+id/name"
android:layout_alignLeft="@+id/avatar"
android:layout_alignRight="@+id/avatar"
android:gravity="center"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment