Skip to content

Instantly share code, notes, and snippets.

@satadii11
Created November 24, 2021 08:28
Show Gist options
  • Save satadii11/81f8a249c50e1a16e75ac61dec59253e to your computer and use it in GitHub Desktop.
Save satadii11/81f8a249c50e1a16e75ac61dec59253e 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:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="16dp"
tools:context=".MainActivity">
<Button
android:id="@+id/decrease"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kurang" />
<TextView
android:id="@+id/count"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
tools:text="Jumlah: 5" />
<Button
android:id="@+id/increase"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tambah" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment