Created
November 22, 2016 15:11
-
-
Save anonymous/02052d874332eae1ed4d9f6bd605682c to your computer and use it in GitHub Desktop.
test
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
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" | |
xmlns:ads="http://schemas.android.com/apk/res-auto" | |
android:orientation="vertical" | |
android:fitsSystemWindows="true" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:weightSum="6" | |
> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_weight="2.5" | |
android:background="#cccccc" | |
android:layout_marginBottom = "0dp" | |
android:orientation="vertical" | |
android:gravity="bottom|center_horizontal" | |
> | |
<TextView | |
android:id="@+id/textTitleEdit" | |
android:layout_gravity="center_horizontal" | |
android:text="@string/new_title" | |
android:textSize="32dip"/> | |
<TextView | |
android:text="@string/new_descr" | |
android:textSize="16dip" | |
android:layout_columnSpan="8" | |
android:layout_gravity="left" | |
android:id="@+id/textSubTitleEdit" | |
android:layout_column="0" /> | |
</LinearLayout> | |
<ScrollView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_weight="1"> | |
<GridLayout | |
android:id="@+id/grid" | |
android:layout_margin="30dp" | |
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="@string/new_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="@string/new_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="@string/new_price" | |
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="@string/new_offset" | |
android:layout_gravity="end" | |
android:layout_row="5" /> | |
<EditText | |
android:ems="7" | |
android:singleLine="true" | |
android:id="@+id/new_offset" | |
android:inputType="number" | |
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"/> | |
</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_alignParentBottom="true" | |
android:layout_alignParentStart="true" | |
android:background="@color/colorPrimaryDark" | |
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:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:background="@color/colorPrimaryLight" | |
android:text="Ok" | |
android:layout_margin="5dp" | |
/> | |
</RelativeLayout> | |
</LinearLayout> | |
</LinearLayout> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
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" | |
xmlns:ads="http://schemas.android.com/apk/res-auto" | |
android:orientation="vertical" | |
android:fitsSystemWindows="true" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:weightSum="6" | |
> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_weight="2.5" | |
android:background="#cccccc" | |
android:layout_marginBottom = "0dp" | |
android:orientation="vertical" | |
android:gravity="bottom|center_horizontal" | |
> | |
<TextView | |
android:id="@+id/textTitleEdit" | |
android:layout_gravity="center_horizontal" | |
android:text="@string/new_title" | |
android:textSize="32dip"/> | |
<TextView | |
android:text="@string/new_descr" | |
android:textSize="16dip" | |
android:layout_columnSpan="8" | |
android:layout_gravity="left" | |
android:id="@+id/textSubTitleEdit" | |
android:layout_column="0" /> | |
</LinearLayout> | |
<ScrollView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_weight="1"> | |
<GridLayout | |
android:id="@+id/grid" | |
android:layout_margin="30dp" | |
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="@string/new_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="@string/new_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="@string/new_price" | |
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="@string/new_offset" | |
android:layout_gravity="end" | |
android:layout_row="5" /> | |
<EditText | |
android:ems="7" | |
android:singleLine="true" | |
android:id="@+id/new_offset" | |
android:inputType="number" | |
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"/> | |
</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_alignParentBottom="true" | |
android:layout_alignParentStart="true" | |
android:background="@color/colorPrimaryDark" | |
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:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:background="@color/colorPrimaryLight" | |
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