Skip to content

Instantly share code, notes, and snippets.

@anubhaw2091
Created March 1, 2016 15:25
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 anubhaw2091/6f73ef142b1db12406bf to your computer and use it in GitHub Desktop.
Save anubhaw2091/6f73ef142b1db12406bf to your computer and use it in GitHub Desktop.
<LinearLayout
android:id="@+id/myRectangleView"
android:layout_width="200dp"
android:layout_height="50dp"
android:background="@drawable/rectangle_view"
android:layout_alignParentBottom="true"
android:layout_alignLeft="@+id/table_t4"
android:layout_alignStart="@+id/table_t4"
android:layout_alignRight="@+id/table_t5"
android:layout_alignEnd="@+id/table_t5"
android:layout_below="@+id/table_t5"
android:weightSum=".5">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@id/legend_birthday"
android:orientation="horizontal">
<Button
android:id="@+id/legend_new"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/activity_vertical_margin"
android:layout_weight="0.30"
android:background="@color/legend_new"
android:paddingLeft="20dp"
android:text="New"
/>
<Button
android:id="@+id/legend_repeat"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:background="@color/legend_repeat"
android:layout_weight="0.30"
android:layout_marginLeft="20dp"
android:text="Repeat"/>
<Button
android:id="@+id/legend_referred"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:background="@color/legend_referred"
android:layout_weight="0.30"
android:text="Referred"
android:layout_marginLeft="20dp"/>
<Button
android:id="@+id/legend_birthday"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/bday_cake"
android:text="B'day"
android:layout_weight=".30"
android:layout_marginLeft="20dp"
android:layout_marginRight="@dimen/activity_horizontal_margin"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:layout_width="173dp"
android:layout_height="wrap_content"
android:text="Powered by Spiritup"
/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment