Skip to content

Instantly share code, notes, and snippets.

@novembergave
Created August 5, 2017 16:52
Show Gist options
  • Save novembergave/9d3c0b1858d1e0061bd2f9c2272e295b to your computer and use it in GitHub Desktop.
Save novembergave/9d3c0b1858d1e0061bd2f9c2272e295b to your computer and use it in GitHub Desktop.
MockTwitterMainActivity
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
tools:context="com.novembergave.apps.mocktwitter.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.design.widget.TabLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:icon="@drawable/ic_home_black_24dp" />
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:icon="@drawable/ic_search_black_24dp" />
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:icon="@drawable/ic_notifications_black_24dp" />
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:icon="@drawable/ic_email_black_24dp" />
</android.support.design.widget.TabLayout>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="9"
tools:listitem="@layout/list_item" />
</LinearLayout>
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="16dp"
android:clickable="true"
android:src="@drawable/ic_edit_white_24dp" />
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment