Skip to content

Instantly share code, notes, and snippets.

@enginebai
Last active December 9, 2015 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enginebai/8bafdc3bce80367fd3ae to your computer and use it in GitHub Desktop.
Save enginebai/8bafdc3bce80367fd3ae to your computer and use it in GitHub Desktop.
Movie lol Front Page Layouts
<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<include
layout="@layout/toolbar"
android:id="@+id/toolbar"/>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- As the main content view, the view below consumes the entire
space available using match_parent in both dimensions. -->
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<!-- android:layout_gravity="start" tells DrawerLayout to treat
this as a sliding drawer on the left side for left-to-right
languages and on the right side for right-to-left languages.
If you're not building against API 17 or higher, use
android:layout_gravity="left" instead. -->
<!-- The drawer is given a fixed width in dp and extends the full height of
the container. -->
<fragment
android:id="@+id/navigation_drawer"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:name="com.moviebomber.ui.fragment.NavigationDrawerFragment"
tools:layout="@layout/fragment_navigation_drawer"/>
</android.support.v4.widget.DrawerLayout>
</LinearLayout>
<com.malinskiy.superrecyclerview.SuperRecyclerView
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"
android:paddingBottom="2dp"
app:layout_progress="@layout/progress"
app:layout_moreProgress="@layout/footer_progress"
app:mainLayoutId="@layout/layout_recyclerview_verticalscroll"
app:recyclerClipToPadding="false"
app:scrollbarStyle="insideOverlay"
tools:context="com.moviebomber.ui.fragment.MovieListFragment"
android:id="@+id/list_movie"
/>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:fab="http://schemas.android.com/apk/res-auto"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.moviebomber.ui.fragment.MoviePageFragment">
<View
android:layout_width="match_parent"
android:layout_height="96dp"
android:background="@color/primary"/>
<it.neokree.materialtabs.MaterialTabHost
android:id="@+id/tab_movie_list"
android:layout_height="48dp"
android:layout_width="match_parent"
app:textColor="@color/text"
app:primaryColor="?attr/colorPrimary"
app:accentColor="@android:color/white"/>
<android.support.v4.view.ViewPager
android:id="@+id/pager_movie"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_below="@id/tab_movie_list"
android:layout_marginTop="4dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"/>
<View
android:id="@+id/fab_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:background="@color/fab_overlay"/>
<com.getbase.floatingactionbutton.FloatingActionsMenu
android:id="@+id/fab_menu_sort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginBottom="16dp"
android:layout_marginRight="16dp"
android:layout_marginEnd="16dp"
fab:fab_addButtonColorNormal="@color/primary"
fab:fab_addButtonColorPressed="@color/primary_light"
fab:fab_addButtonPlusIconColor="@android:color/white"
fab:fab_labelStyle="@style/FloatingActionBarTextMenu"
>
<com.getbase.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_sort_lastest"
style="@style/FAB"
fab:fab_title="@string/fab_sort_lastest"
fab:fab_icon="@drawable/ic_vertical_align_top_white_24dp"
/>
<com.getbase.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_sort_oldest"
style="@style/FAB"
fab:fab_title="@string/fab_sort_oldest"
fab:fab_icon="@drawable/ic_vertical_align_bottom_white_24dp"
/>
<com.getbase.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_sort_bomber"
style="@style/FAB"
fab:fab_title="@string/fab_sort_bomber"
fab:fab_icon="@drawable/ic_format_line_spacing_white_24dp"
/>
</com.getbase.floatingactionbutton.FloatingActionsMenu>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:fitsSystemWindows="true"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment