Created
December 5, 2016 13:35
-
-
Save anonymous/97de55cb8505e1e544e5a1a3aebca5a5 to your computer and use it in GitHub Desktop.
This file contains 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
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:fitsSystemWindows="true" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="#cccccc" | |
android:weightSum="6"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_weight="2.5" | |
android:orientation="vertical" | |
android:gravity="top|center_horizontal"> | |
<TextView | |
android:id="@+id/textTitleEdit" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:text="Some title text" | |
android:textSize="32dip"/> | |
</LinearLayout> | |
<ScrollView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:gravity="top|center_horizontal" | |
android:layout_weight="1"> | |
<GridLayout | |
android:id="@+id/grid" | |
android:layout_margin="20dp" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:alignmentMode="alignBounds" | |
android:columnCount="10" | |
android:columnOrderPreserved="false" | |
android:useDefaultMargins="true"> | |
<TextView | |
android:text="Name" | |
android:layout_gravity="right" | |
android:layout_row="2" | |
android:layout_column="0"/> | |
<EditText | |
android:ems="7" | |
android:singleLine="true" | |
android:inputType="textCapWords" | |
android:id="@+id/new_name" | |
android:layout_row="2" | |
android:layout_column="1"/> | |
<ImageButton | |
android:src="@mipmap/ic_backspace_black_24dp" | |
android:id="@+id/clear_line" | |
android:layout_row="2" | |
android:minHeight="15dp" | |
android:minWidth="15dp" | |
android:maxHeight="15dp" | |
android:maxWidth="15dp" | |
/> | |
<ImageButton | |
android:src="@mipmap/ic_search_black_24dp" | |
android:id="@+id/new_search" | |
android:layout_row="2" | |
android:minHeight="15dp" | |
android:minWidth="15dp" | |
android:maxHeight="15dp" | |
android:maxWidth="15dp" | |
/> | |
<TextView | |
android:text="Label" | |
android:layout_gravity="right" | |
android:layout_row="3" | |
android:layout_column="0"/> | |
<EditText | |
android:ems="7" | |
android:singleLine="true" | |
android:inputType="textCapWords" | |
android:id="@+id/new_label" | |
android:layout_row="3" | |
android:layout_column="1" /> | |
<TextView | |
android:layout_column="0" | |
android:text="Number1" | |
android:layout_gravity="right" | |
/> | |
<EditText | |
android:ems="7" | |
android:singleLine="true" | |
android:id="@+id/new_price" | |
android:inputType="numberDecimal" | |
android:layout_row="4" | |
android:layout_column="1" /> | |
<TextView | |
android:layout_column="0" | |
android:text="Number2" | |
android:layout_gravity="end" | |
android:layout_row="5" /> | |
<EditText | |
android:ems="7" | |
android:singleLine="true" | |
android:id="@+id/new_offset" | |
android:inputType="numberDecimal" | |
android:layout_row="5" | |
android:layout_column="1" /> | |
<SeekBar | |
android:id="@+id/seek_offset" | |
style="@android:style/Widget.Holo.SeekBar" | |
android:layout_width="150dp" | |
android:layout_column="1" | |
android:layout_row="6" | |
android:max="20"/> | |
<Space | |
android:layout_height="40dp" | |
android:layout_column="0" | |
android:layout_row="7" /> | |
</GridLayout> | |
</ScrollView> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_weight="2.5" | |
android:gravity="bottom|center_horizontal" | |
android:weightSum="2"> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:gravity="start" | |
android:layout_weight="1"> | |
<Button | |
android:id="@+id/new_cancel" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="" | |
android:background="#aaaaaa" | |
android:text="Cancel" | |
android:layout_margin="5dp"/> | |
</RelativeLayout> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:gravity="end" | |
android:layout_weight="1"> | |
<Button | |
android:id="@+id/new_ok" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:background="#dddddd" | |
android:text="Ok" | |
android:layout_margin="5dp"/> | |
</RelativeLayout> | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment