joshwingreene
4/9/2016 - 7:28 AM

Dashboard Activity XML using DashboardLayout.java

Dashboard Activity XML using DashboardLayout.java

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
    
    <com.jgreene.example.DashboardLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="0px"
    android:layout_weight="1"
    android:background="#FFFFFF" >
    <!--  Top Left Button -->
    <Button
        android:id="@+id/btn_1"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/btn_1_icon" 
        android:text="@string/txt_btn_1" />
    
    <!--  Top Right Button -->
    <Button
        android:id="@+id/btn_2"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/btn_2_icon" 
        android:text="@string/txt_btn_2" />
    
    <!--  Bottom Left Button -->
    <Button
        android:id="@+id/btn_3"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/btn_3_icon"
        android:text="@string/txt_btn_3" />
    
    <!--  Bottom Right Button -->
    <Button
        android:id="@+id/btn_4"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/btn_4_icon" 
        android:text="@string/txt_btn_4" />
        
    </com.jgreene.example.DashboardLayout>
</LinearLayout>