Created
June 5, 2016 13:17
-
-
Save mikkipastel/8a4d40f99e43805d1c87bce2201b6c70 to your computer and use it in GitHub Desktop.
intercheese_sample1/
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:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="co.meappdev.tagdiscount.MainActivity"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<EditText | |
android:id="@+id/input1" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:gravity="center" | |
android:text="0" | |
android:inputType="number"/> | |
<EditText | |
android:id="@+id/input2" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:gravity="center" | |
android:text="0" | |
android:inputType="number"/> | |
<TextView | |
android:id="@+id/output" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:text="=0" /> | |
</LinearLayout> | |
<Button | |
android:id="@+id/calculate" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="calculate"/> | |
<CheckBox | |
android:text="I agree" | |
android:checked="true" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
<RadioGroup | |
android:id="@+id/rgOperation" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:checkedButton="@+id/rbPlus" | |
android:orientation="horizontal"> | |
<RadioButton | |
android:id="@+id/rbPlus" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="+"/> | |
<RadioButton | |
android:id="@+id/rbMinus" | |
android:layout_marginLeft="16dp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="-"/> | |
<RadioButton | |
android:id="@+id/rbMutiply" | |
android:layout_marginLeft="16dp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="*"/> | |
<RadioButton | |
android:id="@+id/rbDivide" | |
android:layout_marginLeft="16dp" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="/"/> | |
</RadioGroup> | |
<ProgressBar | |
style="@android:style/Widget.Holo.ProgressBar.Horizontal" | |
android:progress="33" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment