-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Tab switcher UI issues #5736
Changes from all commits
10ceb61
f5c1286
868a3c3
3ef7813
7d767d2
cccaec5
715f7ff
9f38fea
94becfb
5dbf677
4c3971b
6c81ce4
270dd69
f80c7ce
14fc760
5d29d5c
c789b40
4590bf8
661920c
9ba4ff3
56089cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="@dimen/keyline_2" | ||
app:cardCornerRadius="10dp"> | ||
app:cardCornerRadius="@dimen/smallShapeCornerRadius"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:id="@+id/cardContentsContainer" | ||
|
@@ -30,12 +30,12 @@ | |
android:id="@+id/favicon" | ||
android:layout_width="@dimen/listItemImageSmallSize" | ||
android:layout_height="@dimen/listItemImageSmallSize" | ||
android:layout_marginStart="10dp" | ||
android:layout_marginTop="10dp" | ||
android:contentDescription="@string/faviconContentDescription" | ||
android:src="@drawable/ic_globe_gray_16dp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
android:src="@drawable/ic_dax_icon" | ||
android:layout_marginStart="@dimen/keyline_3" | ||
app:layout_constraintTop_toTopOf="@id/close" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓Shouldn't this be keyline_3 (12dp)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
app:layout_constraintBottom_toBottomOf="@id/close" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<ImageView | ||
android:id="@+id/tabUnread" | ||
|
@@ -56,26 +56,25 @@ | |
android:background="@drawable/selectable_circular_ripple" | ||
android:contentDescription="@string/closeContentDescription" | ||
android:scaleType="center" | ||
android:src="@drawable/ic_close_24_small" | ||
android:padding="@dimen/keyline_2" | ||
app:layout_constraintBottom_toBottomOf="@id/favicon" | ||
android:src="@drawable/ic_close_24_small" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="@id/favicon" /> | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<com.duckduckgo.common.ui.view.text.DaxTextView | ||
android:id="@+id/title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/keyline_2" | ||
android:ellipsize="end" | ||
android:lines="1" | ||
android:maxLines="1" | ||
android:textIsSelectable="false" | ||
android:layout_marginStart="@dimen/keyline_2" | ||
app:layout_constrainedWidth="true" | ||
app:layout_constraintBottom_toBottomOf="@id/favicon" | ||
app:layout_constraintEnd_toStartOf="@+id/close" | ||
app:layout_constraintStart_toEndOf="@id/favicon" | ||
app:layout_constraintTop_toTopOf="@id/favicon" | ||
app:layout_constraintTop_toTopOf="@id/close" | ||
app:layout_constraintBottom_toBottomOf="@id/close" | ||
app:layout_constraintHorizontal_bias="0.0" | ||
app:typography="h5" | ||
tools:text="Slashdot" /> | ||
|
@@ -84,13 +83,12 @@ | |
android:id="@+id/tabPreview" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/gridItemPreviewHeight" | ||
android:layout_marginTop="@dimen/keyline_3" | ||
android:importantForAccessibility="no" | ||
android:scaleType="matrix" | ||
android:scaleType="center" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/title" /> | ||
app:layout_constraintTop_toBottomOf="@id/close" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works now! But as discussed on MM this is probably not the best long term fix and we probably need a reactive solution that loads the Favicon when it's ready, as this may not work still on a slow connection. As we discussed probably worth creating a task in the Android backlog to look into this more on a hack days/quick win day.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a task for us to come back to: https://app.asana.com/0/1202552961248957/1209728703137860/f