Skip to content

Instantly share code, notes, and snippets.

@tangblack
Created May 10, 2013 03:58
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 tangblack/5552294 to your computer and use it in GitHub Desktop.
Save tangblack/5552294 to your computer and use it in GitHub Desktop.
Explain how these attributes work in android GUI. http://tangblack.blogspot.tw/2013/05/android-ui.html
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@android:color/darker_gray">
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_margin="40dp"
android:background="@android:color/holo_orange_light"
android:gravity="center"
android:padding="10dp"
android:text="foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment