Skip to content

Commit

Permalink
fixed revision cards overlapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwajith-Shettigar committed Dec 23, 2023
1 parent 658c596 commit cc5bc1b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/src/main/res/layout/revision_card_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@

<com.google.android.material.card.MaterialCardView
android:id="@+id/previous_navigation_card"
android:layout_width="wrap_content"
android:layout_width="144dp"
android:layout_height="wrap_content"
android:maxWidth="144dp"
android:layout_marginStart="28dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="28dp"
Expand Down Expand Up @@ -96,17 +95,17 @@
style="@style/TextViewStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minWidth="144dp"
android:background="@color/component_color_shared_revision_card_text_background_color"
android:contentDescription="@{viewModel.computeContentDescriptionText(viewModel.previousSubtopicLiveData)}"
android:ellipsize="end"
android:fontFamily="sans-serif"
android:minWidth="144dp"
android:minLines="3"
android:paddingStart="@dimen/topic_revision_summary_view_subtopic_title_text_view_padding_start"
android:paddingTop="8dp"
android:paddingEnd="@dimen/topic_revision_summary_view_subtopic_title_text_view_padding_end"
android:paddingBottom="16dp"
android:text="@{viewModel.computeTitleText(viewModel.previousSubtopicLiveData)}"
android:contentDescription="@{viewModel.computeContentDescriptionText(viewModel.previousSubtopicLiveData)}"
android:textColor="@color/component_color_shared_secondary_4_text_color"
android:textSize="14sp"
android:textStyle="bold"
Expand All @@ -116,9 +115,8 @@

<com.google.android.material.card.MaterialCardView
android:id="@+id/next_navigation_card"
android:layout_width="wrap_content"
android:layout_width="144dp"
android:layout_height="wrap_content"
android:maxWidth="144dp"
android:layout_marginStart="28dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="28dp"
Expand Down Expand Up @@ -155,17 +153,17 @@
style="@style/TextViewStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minWidth="144dp"
android:background="@color/component_color_shared_revision_card_text_background_color"
android:contentDescription="@{viewModel.computeContentDescriptionText(viewModel.nextSubtopicLiveData)}"
android:ellipsize="end"
android:fontFamily="sans-serif"
android:minWidth="144dp"
android:minLines="3"
android:paddingStart="@dimen/topic_revision_summary_view_subtopic_title_text_view_padding_start"
android:paddingTop="8dp"
android:paddingEnd="@dimen/topic_revision_summary_view_subtopic_title_text_view_padding_end"
android:paddingBottom="16dp"
android:text="@{viewModel.computeTitleText(viewModel.nextSubtopicLiveData)}"
android:contentDescription="@{viewModel.computeContentDescriptionText(viewModel.nextSubtopicLiveData)}"
android:textColor="@color/component_color_shared_secondary_4_text_color"
android:textSize="14sp"
android:textStyle="bold"
Expand Down

0 comments on commit cc5bc1b

Please sign in to comment.