Instantly share code, notes, and snippets.
Created
March 28, 2016 09:05
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save NiasSt90/c87274b79e0596caa046 to your computer and use it in GitHub Desktop.
layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.v4.widget.DrawerLayout | |
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" | |
android:id="@+id/drawer_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true"> | |
<android.support.design.widget.CoordinatorLayout | |
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" | |
android:id="@+id/coordinatorLayout" | |
android:layout_height="match_parent" | |
android:layout_width="match_parent" | |
android:fitsSystemWindows="true"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appbar" | |
android:layout_width="match_parent" | |
android:layout_height="@dimen/detail_backdrop_height" | |
android:fitsSystemWindows="true" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:id="@+id/collapsing_toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:contentScrim="?attr/colorPrimary" | |
android:fitsSystemWindows="true" | |
app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed" | |
app:expandedTitleTextAppearance="@style/MyCollapsedAppBarTopic" | |
app:expandedTitleMargin="28dp" | |
app:expandedTitleMarginStart="64dp" | |
> | |
<ImageView | |
android:id="@+id/backdrop" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scaleType="centerCrop" | |
android:visibility="visible" | |
android:fitsSystemWindows="true" | |
android:src="@drawable/mani_logo" | |
app:layout_collapseMode="parallax" | |
app:layout_collapseParallaxMultiplier="0.3"/> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:minHeight="?attr/actionBarSize" | |
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" | |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" | |
app:layout_collapseMode="pin"/> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="64dp" | |
app:layout_collapseMode="parallax" | |
android:layout_gravity="bottom" | |
android:background="#a0909697"> | |
<TextView | |
android:id="@+id/toolbarDescription" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="64dp" | |
android:layout_marginBottom="4dp" | |
android:layout_gravity="bottom" | |
android:gravity="left" | |
app:layout_collapseMode="parallax" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
/> | |
</LinearLayout> | |
<TextView | |
android:id="@+id/toolbarImgDescription" | |
android:layout_width="match_parent" | |
android:layout_height="64dp" | |
android:layout_gravity="bottom|left" | |
android:gravity="center_vertical" | |
android:background="#a0909697" | |
app:layout_collapseMode="parallax" | |
android:textAppearance="?android:attr/textAppearanceLarge" | |
/> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
</android.support.design.widget.AppBarLayout> | |
<!-- As the main content view, the view below consumes the entire | |
space available using match_parent in both dimensions. --> | |
<FrameLayout | |
android:id="@+id/content_frame" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_gravity="fill_vertical" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
/> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/gotoTopFAB" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:src="@drawable/ic_vertical_align_top_white_24dp" | |
android:fitsSystemWindows="true" | |
app:layout_behavior="de.NullZero.ManiDroid.presentation.views.QuickHideToTopBehavior" | |
app:layout_scrollFlags="scroll|enterAlways" | |
app:layout_anchor="@id/appbar" | |
app:layout_anchorGravity="bottom|center_horizontal" | |
app:fabSize="mini" | |
app:elevation="6dp" | |
app:pressedTranslationZ="12dp" | |
/> | |
<!--android:layout_marginTop="@dimen/fab_margin_top"--> | |
<fragment | |
android:id="@+id/MiniPlayerFragment" | |
android:name="de.NullZero.ManiDroid.presentation.fragments.MiniPlayerFragment" | |
android:layout_width="match_parent" | |
android:layout_height="78dp" | |
android:layout_gravity="bottom" | |
tools:layout="@layout/player_mini" | |
app:layout_behavior="de.NullZero.ManiDroid.presentation.views.QuickHideToBottomBehavior" | |
/> | |
<com.github.clans.fab.FloatingActionMenu | |
android:id="@+id/fab_menu_all_playlists" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentRight="true" | |
android:paddingRight="0dp" | |
android:paddingBottom="65dp" | |
android:paddingLeft="10dp" | |
app:menu_icon="@drawable/ic_library_music_white_24dp" | |
app:menu_labels_ellipsize="end" | |
app:menu_labels_singleLine="true" | |
app:menu_backgroundColor="#ccffffff" | |
app:menu_colorNormal="?attr/colorAccent" | |
app:menu_fab_label="aktive Playlist auswählen" | |
app:layout_behavior="de.NullZero.ManiDroid.presentation.views.QuickHideToRightBehavior" | |
/> | |
</android.support.design.widget.CoordinatorLayout> | |
<android.support.design.widget.NavigationView | |
android:id="@+id/navigation" | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_gravity="start" | |
android:fitsSystemWindows="true" | |
app:itemTextColor="#333" | |
app:itemIconTint="#333"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<include layout="@layout/navdrawer_header"/> | |
<ListView | |
android:id="@+id/left_drawerList" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:choiceMode="singleChoice" | |
android:divider="@android:color/transparent" | |
android:dividerHeight="0dp" | |
android:background="?attr/colorPrimary"/> | |
</LinearLayout> | |
</android.support.design.widget.NavigationView> | |
</android.support.v4.widget.DrawerLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment