Skip to content

Instantly share code, notes, and snippets.

@curliq
Created March 31, 2017 10:29
Show Gist options
  • Save curliq/262866f6e1760194189e781d98ec7f11 to your computer and use it in GitHub Desktop.
Save curliq/262866f6e1760194189e781d98ec7f11 to your computer and use it in GitHub Desktop.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
android:weightSum="3"
>
<RelativeLayout
android:id="@+id/dashboardLayoutParent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:clickable="true"
android:tag="1"
android:background="?attr/selectableItemBackground"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_centerInParent="true"
android:orientation="vertical">
<ImageView
android:id="@+id/homeButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="1"
android:src="@drawable/icon_dashboard_unclicked"
/>
<TextView
android:id="@+id/dashboardText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Dashboard"
android:textColor="@color/icon_unclicked"
android:textSize="12sp"
android:gravity="center"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/jobsLayoutParent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:clickable="true"
android:tag="2"
android:background="?attr/selectableItemBackground"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_centerInParent="true"
android:orientation="vertical">
<ImageView
android:id="@+id/applyButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="1"
android:src="@drawable/icon_apply_unclicked"
/>
<TextView
android:id="@+id/jobsText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jobs"
android:textColor="@color/icon_unclicked"
android:textSize="12sp"
android:gravity="center"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/profileLayoutParent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:clickable="true"
android:tag="3"
android:background="?attr/selectableItemBackground"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_centerInParent="true"
android:orientation="vertical">
<ImageView
android:id="@+id/profileButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="1"
android:src="@drawable/icon_profile_unclicked"
/>
<TextView
android:id="@+id/profileText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/icon_unclicked"
android:text="Profile"
android:textSize="12sp"
android:gravity="center"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment