Skip to content

Instantly share code, notes, and snippets.

@meshileya
Created January 13, 2018 11:30
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 meshileya/650f42a5835530f586a7d271476dd5dc to your computer and use it in GitHub Desktop.
Save meshileya/650f42a5835530f586a7d271476dd5dc to your computer and use it in GitHub Desktop.
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:background="@color/colorPrimaryDark">
<LinearLayout
android:id="@+id/wrapper"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:weightSum="1.0"
android:layout_centerInParent="true"
android:gravity="center_vertical"
>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.25"
android:gravity="center"
android:weightSum="1.0">
<Button
android:id="@+id/save_button"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="0.25"
android:background="@drawable/avataaar"
android:textColor="@color/white" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="1.0"
android:gravity="center"
android:layout_weight="0.25"
>
<Button
android:id="@+id/save_button2"
android:layout_width="0dp"
android:layout_weight="0.25"
android:layout_height="30dp"
android:onClick="onSubmitClick"
android:background="@drawable/avataaar"
android:textColor="@color/white" /></LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="1.0"
android:gravity="center"
android:layout_weight="0.25"
>
<Button
android:id="@+id/save_button3"
android:layout_width="0dp"
android:layout_weight="0.25"
android:layout_height="30dp"
android:onClick="onSubmitClick"
android:background="@drawable/avataaar"
android:textColor="@color/white" /></LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="1.0"
android:gravity="center"
android:layout_weight="0.25"
>
<Button
android:id="@+id/save_button4"
android:layout_width="0dp"
android:layout_weight="0.25"
android:layout_height="30dp"
android:onClick="onSubmitClick"
android:background="@drawable/avataaar"
android:textColor="@color/white" />
</LinearLayout></LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment