Skip to content

Instantly share code, notes, and snippets.

@donnfelker
Created August 3, 2011 21:01
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 donnfelker/1123762 to your computer and use it in GitHub Desktop.
Save donnfelker/1123762 to your computer and use it in GitHub Desktop.
spring loading your textviews
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#6a9938"
>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="UI Examples"
android:textSize="25sp"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:layout_marginTop="15dp"
android:layout_marginLeft="15dp"
/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="100dp"
android:layout_margin="15dp"
android:background="@drawable/rounded_corners_white">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="This is the long text over here"
android:textStyle="bold"
android:textColor="#707070"
/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:text="\u2022"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="shorty"
android:textStyle="bold"
android:textColor="#707070"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment