Created
June 25, 2016 01:10
-
-
Save bruferrari/7e8897d8de01f0d3ffe3aff0e8a114b1 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
<com.example.xyzreader.ui.DrawInsetsFrameLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/draw_insets_frame_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<com.example.xyzreader.ui.ObservableScrollView | |
android:id="@+id/scrollview" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<FrameLayout | |
android:id="@+id/photo_container" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/photo_placeholder"> | |
<!--suppress AndroidLintContentDescription --> | |
<com.example.xyzreader.ui.OneOneImageView | |
android:id="@+id/photo" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:scaleType="centerCrop" /> | |
<View | |
android:layout_width="match_parent" | |
android:layout_height="112dp" | |
android:background="@drawable/photo_background_protection" | |
android:layout_gravity="bottom" | |
android:layout_marginBottom="@dimen/detail_photo_margin"/> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom" | |
android:layout_marginBottom="@dimen/detail_title_margin" | |
android:paddingLeft="@dimen/detail_inner_horiz_margin" | |
android:paddingRight="@dimen/detail_inner_horiz_margin"> | |
<TextView | |
android:id="@+id/article_title" | |
style="?android:attr/textAppearanceLarge" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingBottom="@dimen/detail_metabar_title_bottom_padding" | |
android:fontFamily="sans-serif-condensed" | |
android:textColor="@android:color/white" | |
android:textStyle="bold" | |
android:textSize="@dimen/detail_title_text_size" | |
android:lineSpacingMultiplier="@fraction/line_space_multiplier" /> | |
<TextView | |
android:id="@+id/article_byline" | |
style="?android:attr/textAppearanceSmall" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textColor="#c5ffffff" | |
android:layout_below="@id/article_title" /> | |
</RelativeLayout> | |
</FrameLayout> | |
<com.example.xyzreader.ui.MaxWidthLinearLayout | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:maxWidth="@dimen/detail_card_max_width" | |
android:background="#fff" | |
app:elevation="2dp" | |
android:layout_marginTop="@dimen/detail_card_top_margin"> | |
<TextView | |
android:id="@+id/article_body" | |
style="?android:attr/textAppearanceMedium" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="@dimen/detail_inner_horiz_margin" | |
android:layout_marginRight="@dimen/detail_inner_horiz_margin" | |
android:paddingTop="@dimen/detail_body_top_margin" | |
android:paddingBottom="@dimen/detail_body_bottom_margin" | |
android:textColorLink="@color/lt_blue_a700" | |
android:fontFamily="sans-serif-light" | |
android:textSize="@dimen/detail_body_text_size" | |
android:lineSpacingMultiplier="@fraction/detail_body_line_spacing_multiplier" /> | |
</com.example.xyzreader.ui.MaxWidthLinearLayout> | |
</FrameLayout> | |
</com.example.xyzreader.ui.ObservableScrollView> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/share_fab" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom|end" | |
android:layout_margin="@dimen/fab_margin" | |
android:src="@drawable/ic_share" | |
app:elevation="@dimen/fab_resting_elevation" | |
app:pressedTranslationZ="@dimen/fab_pressed_translation_z"/> | |
</com.example.xyzreader.ui.DrawInsetsFrameLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment