-
-
Save TristanWiley/56fbe321a1fd891d8ae3 to your computer and use it in GitHub Desktop.
This file contains 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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:fab="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/comicView" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/background_main" | |
android:orientation="vertical"> | |
<TextView | |
android:id="@+id/title" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:gravity="center_horizontal" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:text="@string/default_title" | |
android:textAppearance="?android:textAppearanceLarge" | |
android:layout_centerHorizontal="true" /> | |
<TextView | |
android:id="@+id/alt" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/title" | |
android:layout_centerHorizontal="true" | |
android:layout_gravity="center_horizontal" | |
android:fadeScrollbars="false" | |
android:gravity="center" | |
android:maxLines="4" | |
android:textColor="@color/black" | |
android:paddingBottom="13dp" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:scrollbars="vertical" | |
android:text="@string/default_alt" | |
android:textAppearance="?android:textAppearanceMedium" /> | |
<ImageView | |
android:id="@+id/imageView" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_below="@+id/alt" | |
android:adjustViewBounds="false" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:scaleType="fitCenter" /> | |
<terranovaproductions.newcomicreader.FloatingActionMenu | |
android:id="@+id/fab_menu" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:padding="16dp" | |
> | |
<!--First button as menu button--> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_main" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:src="@drawable/ic_add_white_24dp" | |
fab:fabSize="normal" | |
fab:backgroundTint="@color/material_orange" | |
fab:borderWidth="0dp" | |
fab:elevation="6dp"/> | |
<!-- Other button as menu items--> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_random" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:contentDescription="@string/default_random" | |
android:paddingBottom="@dimen/menu_button_margin" | |
android:src="@drawable/ic_random" | |
fab:fabSize="mini" | |
fab:backgroundTint="@color/material_orange" /> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_download" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:contentDescription="@string/download" | |
android:paddingBottom="@dimen/menu_button_margin" | |
android:src="@drawable/ic_download" | |
fab:fabSize="mini" | |
fab:backgroundTint="@color/material_orange"/> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_browser" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:contentDescription="@string/default_browser" | |
android:paddingBottom="@dimen/menu_button_margin" | |
android:src="@drawable/ic_open_browser" | |
fab:fabSize="mini" | |
fab:backgroundTint="@color/material_orange"/> | |
</terranovaproductions.newcomicreader.FloatingActionMenu> | |
</RelativeLayout> | |
This file contains 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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<include layout="@layout/toolbar"/> | |
<FrameLayout | |
android:id="@+id/container" | |
android:layout_marginTop="5dp" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:theme="@style/AppTheme"> | |
</FrameLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment