Skip to content

Instantly share code, notes, and snippets.

@enginebai
Created December 13, 2015 01:01
Show Gist options
  • Save enginebai/dabbf5bac0d91e81134c to your computer and use it in GitHub Desktop.
Save enginebai/dabbf5bac0d91e81134c to your computer and use it in GitHub Desktop.
<FrameLayout
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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.moviebomber.ui.activity.MovieDetailActivity">
<com.github.ksoichiro.android.observablescrollview.ObservableScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/scroll"
android:fillViewport="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/parallax_image_height"
android:id="@+id/image_photo"
android:contentDescription="@null"
android:scaleType="centerCrop"
android:src="@drawable/img_empty"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_below="@id/image_photo"
android:id="@+id/layout_movie_content"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/primary"
android:orientation="vertical"
android:id="@+id/layout_title"
android:paddingTop="4dp"
android:paddingBottom="4dp"
>
<TextView
style="@style/MovieDetailList"
android:id="@+id/text_release_date"
tools:text="@string/test_release_date"
android:layout_marginTop="4dp"
android:drawableLeft="@drawable/ic_event_white_24dp"
/>
<TextView
style="@style/MovieDetailList"
android:id="@+id/text_duration"
tools:text="@string/test_duration"
android:layout_marginBottom="4dp"
android:drawableLeft="@drawable/ic_schedule_white_24dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@null"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
>
<com.rey.material.widget.Button
style="@style/MovieDetailButton"
android:id="@+id/button_photo"
android:text="@string/fab_photo"
android:textColor="@color/good_bomber"
app:rd_rippleColor="@color/good_bomber_ripple"
/>
<com.rey.material.widget.Button
style="@style/MovieDetailButton"
android:text="@string/fab_trailer"
android:id="@+id/button_trailer"
android:textColor="@color/normal_bomber"
app:rd_rippleColor="@color/normal_bomber_ripple"
/>
<com.rey.material.widget.Button
style="@style/MovieDetailButton"
android:text="@string/fab_comment"
android:id="@+id/button_comment"
android:textColor="@color/bad_bomber"
app:rd_rippleColor="@color/bad_bomber_ripple"
/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:background="@android:color/darker_gray"/>
<TextView
style="@style/MovieDetailTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/text_description"
/>
<TextView
style="@style/MovieDetailContent"
android:id="@+id/text_description"
tools:text="@string/test_description"
android:layout_marginBottom="0dp"
android:paddingBottom="8dp"
/>
<com.rey.material.widget.Button
style="@style/MovieDetailButton"
android:id="@+id/button_read_more"
android:text="@string/text_more"
android:textColor="@color/accent"
app:rd_rippleColor="@color/ripple_pink_light"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="4dp"
android:padding="0dp"
android:layout_height="32dp"
/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:background="@android:color/darker_gray"/>
<TextView
style="@style/MovieDetailTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/text_genre"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="8dp"
>
<ViewStub
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/view_genre1"
android:layout="@layout/item_genre"/>
<ViewStub
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:id="@+id/view_genre2"
android:layout="@layout/item_genre"/>
<ViewStub
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:id="@+id/view_genre3"
android:layout="@layout/item_genre"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:background="@android:color/darker_gray"/>
<TextView
style="@style/MovieDetailTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/text_actors"/>
<TextView
style="@style/MovieDetailContent"
android:id="@+id/text_actors"
tools:text="@string/test_movie_name"
/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:background="@android:color/darker_gray"/>
<TextView
style="@style/MovieDetailTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/text_director"/>
<TextView
style="@style/MovieDetailContent"
android:id="@+id/text_director"
tools:text="@string/test_movie_name"
android:paddingBottom="8dp"
/>
</LinearLayout>
<TextView
style="@style/MovieTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/text_title_chinese"
android:background="@color/half_transparent"
tools:text="@string/test_movie_name"
android:gravity="center_vertical"
android:layout_above="@id/layout_movie_content"/>
<com.rey.material.widget.FloatingActionButton
style="@style/Material.Drawable.Ripple.Touch.Light"
android:id="@+id/fab_order"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:fab_iconSrc="@drawable/ic_play_arrow_white_36dp"
app:fab_backgroundColor="@color/accent"
app:fab_elevation="4dp"
app:rd_rippleColor="@color/accent_light"
app:fab_animDuration="350"
android:layout_alignParentRight="true"
android:layout_marginRight="16dp"
android:layout_marginTop="295dp"/>
</RelativeLayout>
</com.github.ksoichiro.android.observablescrollview.ObservableScrollView>
<include
layout="@layout/toolbar"
android:id="@+id/toolbar"
/>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment