Skip to content

Commit

Permalink
Fix oppia#2093: [Mobile-Landscape] High-fi StoryActivity Updated UI (o…
Browse files Browse the repository at this point in the history
…ppia#3802)

* Add stroke.

* Grey border for locked chapters.

Co-authored-by: viktoriia <[email protected]>
  • Loading branch information
viktoriias and Viktoriia-Lozova committed Sep 21, 2021
1 parent 4d7aa24 commit 87125aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/res/layout-land/story_chapter_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
android:clickable="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES}"
android:onClick="@{(v) -> viewModel.onExplorationClicked()}"
app:cardCornerRadius="4dp"
app:cardElevation="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? @dimen/story_chapter_card_playable_state_elevation : @dimen/story_chapter_card_not_playable_state_elevation}">
app:cardElevation="@dimen/story_chapter_card_playable_state_elevation"
app:strokeColor="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? @color/colorPrimary : @color/chapterCardGreyBorder}"
app:strokeWidth="2dp">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down

0 comments on commit 87125aa

Please sign in to comment.