Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
3.0 kB
3
Indexable
Never
<?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"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    android:orientation="vertical"
    android:background="@color/colorAccent">

    <GridLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:columnCount="2"
        android:rowCount="3"
        android:layout_margin="12dp">
        <Button
            android:id="@+id/buttonCocktail"
            android:layout_column="0"
            android:layout_row="0"
            android:layout_columnWeight="1"
            android:layout_rowWeight="1"
            android:layout_margin="6dp"
            android:paddingTop="24dp"
            android:drawableTop="@drawable/ic_category"
            android:backgroundTint="@color/colorPrimary"
            android:text="Cocktail"/>
        <Button
            android:id="@+id/buttonCategory"
            android:layout_column="1"
            android:layout_row="0"
            android:layout_columnWeight="1"
            android:layout_rowWeight="1"
            android:layout_margin="6dp"
            android:paddingTop="24dp"
            android:drawableTop="@drawable/ic_category"
            android:backgroundTint="@color/colorPrimary"
            android:text="Category"/>
        <Button
            android:id="@+id/buttonProfile"
            android:layout_column="0"
            android:layout_row="1"
            android:layout_columnWeight="1"
            android:layout_rowWeight="1"
            android:layout_margin="6dp"
            android:paddingTop="24dp"
            android:drawableTop="@drawable/ic_profile"
            android:backgroundTint="@color/colorPrimary"
            android:text="Profile"/>
        <Button
            android:id="@+id/buttonSetting"
            android:layout_column="1"
            android:layout_row="1"
            android:layout_columnWeight="1"
            android:layout_rowWeight="1"
            android:layout_margin="6dp"
            android:paddingTop="24dp"
            android:drawableTop="@drawable/ic_profile"
            android:backgroundTint="@color/colorPrimary"
            android:text="Setting"/>
        <Button
            android:id="@+id/buttonSignOut"
            android:layout_column="0"
            android:layout_row="2"
            android:layout_columnWeight="1"
            android:layout_rowWeight="1"
            android:layout_margin="6dp"
            android:paddingTop="24dp"
            android:drawableTop="@drawable/ic_profile"
            android:backgroundTint="@color/colorPrimary"
            android:text="Sign out"/>
    </GridLayout>


</LinearLayout>