For #22516 - Fixed alignment of "Show all" buttons on the homescreen (#22650)

* For #22516 - Fixed show all button alignment with section headers on the Homepage

* For #22516 - Added correct content description back in for recently visited show all button

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
upstream-sync
Noah Bond 3 years ago committed by GitHub
parent 26713a58c8
commit 31e86842dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,16 +25,14 @@
app:layout_constraintEnd_toStartOf="@id/showAllBookmarksButton"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.button.MaterialButton
<TextView
android:id="@+id/showAllBookmarksButton"
style="@style/Button14TextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/recently_saved_show_all_content_description"
android:gravity="top"
android:insetTop="0dp"
android:minHeight="16dp"
android:paddingStart="16dp"
android:paddingEnd="0dp"
android:maxLines="1"
@ -42,5 +40,6 @@
android:text="@string/recently_saved_show_all"
android:textColor="@color/home_show_all_button_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintBottom_toBottomOf="@id/header" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -23,16 +23,14 @@
app:layout_constraintEnd_toStartOf="@id/show_all_button"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.button.MaterialButton
<TextView
android:id="@+id/show_all_button"
style="@style/Button14TextStyle"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/recent_tabs_show_all_content_description"
android:gravity="top"
android:insetTop="0dp"
android:minHeight="16dp"
android:paddingStart="16dp"
android:paddingEnd="0dp"
android:maxLines="1"
@ -40,5 +38,6 @@
android:text="@string/recent_tabs_show_all"
android:textColor="@color/home_show_all_button_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintBottom_toBottomOf="@id/header" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -24,21 +24,20 @@
app:layout_constraintEnd_toStartOf="@id/show_all_button"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.button.MaterialButton
<TextView
android:id="@+id/show_all_button"
style="@style/Button14TextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/past_explorations_show_all_content_description"
android:gravity="top"
android:insetTop="0dp"
android:minHeight="16dp"
android:paddingStart="16dp"
android:paddingEnd="0dp"
android:maxLines="1"
android:nestedScrollingEnabled="false"
android:text="@string/recent_tabs_show_all"
android:textColor="@color/home_show_all_button_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintBottom_toBottomOf="@id/header" />
</androidx.constraintlayout.widget.ConstraintLayout>

Loading…
Cancel
Save