Skip to content

Instantly share code, notes, and snippets.

@ruan65
Created February 3, 2016 14:47
Show Gist options
  • Save ruan65/df6795d1ddc00d016cba to your computer and use it in GitHub Desktop.
Save ruan65/df6795d1ddc00d016cba to your computer and use it in GitHub Desktop.
<?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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:orientation="vertical"
tools:context="premium.app.dashdots.MainActivity"
>
<TextView
android:id="@+id/tv_q"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="#ff000099"
android:textAlignment="center"
android:text="@string/q1"
android:layout_marginBottom="20dp"
/>
<EditText
android:id="@+id/tv_display"
android:layout_width="match_parent"
android:textSize="50sp"
android:background="@null"
android:textColor="#ffff0000"
android:textAlignment="center"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
/>
<TextView
android:id="@+id/tv_result"
android:layout_width="wrap_content"
android:textSize="25sp"
android:textColor="#ff006600"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="100dp"
android:gravity="center_vertical"
>
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:id="@+id/btn_prev"
android:text="Prev"
android:layout_height="wrap_content"
/>
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:text="next"
android:id="@+id/btn_next"
android:layout_height="wrap_content"
/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="#ff000000"
android:id="@+id/tap"
android:layout_weight="1"
/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment