Skip to content

Instantly share code, notes, and snippets.

@omayib
Created March 30, 2017 03:12
Show Gist options
  • Save omayib/357b310ff0593f24e55657393a05f647 to your computer and use it in GitHub Desktop.
Save omayib/357b310ff0593f24e55657393a05f647 to your computer and use it in GitHub Desktop.
score board for android course challange. user can increase or decrease the score.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent">
<TextView
android:text="Jarwo Smith"
android:layout_marginTop="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView6"
android:textAlignment="center"
android:layout_marginBottom="16dp"
android:layout_weight="0.06" />
<TextView
android:text="0"
android:textSize="46dp"
android:textAlignment="center"
android:layout_marginBottom="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView5"
android:layout_weight="0.19" />
<Button
android:text="+"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button"
android:layout_weight="0.19" />
<Button
android:text="-"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button2"
android:layout_weight="0.19" />
<Button
android:text="C"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button3"
android:layout_weight="0.19" />
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent">
<TextView
android:text="Susanti A."
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView61"
android:layout_weight="0.06" />
<TextView
android:text="0"
android:layout_marginBottom="16dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="46dp"
android:id="@+id/textView51"
android:layout_weight="0.19" />
<Button
android:layout_gravity="center_horizontal"
android:text="+"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button1"
android:layout_weight="0.19" />
<Button
android:text="-"
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content"
android:id="@+id/button21"
android:layout_weight="0.19" />
<Button
android:text="C"
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content"
android:id="@+id/button31"
android:layout_weight="0.19" />
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment