Skip to content

Commit

Permalink
Simplified toolbar for release detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed Aug 25, 2020
1 parent b6923ba commit 6bb3af0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class ReleaseDetailFragment : BaseFragment(
videoIndicatorView.scaleY = scale
})

collapsingToolbarLayout.setExpandedTitleColor(context.getColorFromAttribute(android.R.attr.textColorPrimary))
wallpaperImageView.setOnClickListener {
val release = viewModel.release
val imageUrl = release?.videoUrls?.firstOrNull() ?: release?.imageUrlForWallpaper
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/layout/fragment_release_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@
app:layout_constraintTop_toTopOf="parent"
tools:src="@tools:sample/backgrounds/scenic" />

<View
android:id="@+id/wallpaperScrim"
android:layout_width="0dp"
android:layout_height="@dimen/scrim_height"
android:layout_gravity="bottom"
android:background="@drawable/scrim_bottom"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<ImageView
android:id="@+id/videoIndicatorView"
android:layout_width="@dimen/image_size_small"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<item name="titleTextAppearance">@android:style/TextAppearance.Medium</item>
</style>

<style name="CollapsingToolbarTitleExpanded" parent="@android:style/TextAppearance.Medium">
<style name="CollapsingToolbarTitleExpanded" parent="@android:style/TextAppearance">>
<item name="android:textColor">@android:color/transparent</item>
<item name="android:textSize">@dimen/text_size_xlarge</item>
<item name="android:ellipsize">end</item>
</style>
Expand Down

0 comments on commit 6bb3af0

Please sign in to comment.