Created
June 23, 2015 19:10
-
-
Save a1994sc/7600ab76b87ad19034b1 to your computer and use it in GitHub Desktop.
Button XML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".GroceriesMainActivity"> | |
<include | |
android:id="@+id/toolbar" | |
layout="@layout/toolbar" /> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/recyclerView" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_above="@+id/total_layout" | |
android:layout_below="@+id/toolbar" | |
android:scrollbars="vertical" /> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/act_expand" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:layout_alignParentRight="true" | |
android:layout_gravity="bottom|end" | |
android:layout_marginBottom="@dimen/fab_margin" | |
android:layout_marginEnd="@dimen/fab_margin" | |
android:layout_marginRight="@dimen/fab_margin" | |
android:src="@drawable/ic_action" | |
app:fabSize="normal" /> | |
<include | |
android:id="@+id/buttons" | |
layout="@layout/buttons" /> | |
<RelativeLayout | |
android:id="@+id/total_layout" | |
android:layout_width="wrap_content" | |
android:layout_height="@dimen/text_height" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:layout_gravity="bottom|start" | |
android:background="@color/primary"> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_marginEnd="@dimen/text_small_margin" | |
android:layout_marginRight="@dimen/text_small_margin" | |
android:gravity="center" | |
android:text="@string/text_total" | |
android:textSize="@dimen/dialog_text" /> | |
<TextView | |
android:id="@+id/text_total" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_alignParentEnd="true" | |
android:layout_alignParentRight="true" | |
android:layout_marginEnd="@dimen/text_long_margin" | |
android:layout_marginRight="@dimen/text_long_margin" | |
android:gravity="center_vertical|end" | |
android:text="" | |
android:textSize="@dimen/dialog_text" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_marginEnd="@dimen/text_small_margin" | |
android:layout_marginLeft="@dimen/space_margin" | |
android:layout_marginRight="@dimen/text_small_margin" | |
android:layout_marginStart="@dimen/space_margin" | |
android:gravity="left|center_vertical" | |
android:text="@string/text_item" | |
android:textSize="@dimen/dialog_text" /> | |
<TextView | |
android:id="@+id/text_item" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_alignParentEnd="true" | |
android:layout_alignParentRight="true" | |
android:layout_marginLeft="@dimen/text_long_margin" | |
android:layout_marginStart="@dimen/text_long_margin" | |
android:gravity="center_vertical|start" | |
android:text="" | |
android:textSize="@dimen/dialog_text" /> | |
</RelativeLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment