Skip to content

Commit 945d206

Browse files
authored
Add single line item with new pill to ADS preview (#6894)
Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1211542509324051?focus=true ### Description - Adds an example of a `OneLineListItem` with a “new" pill. ### Steps to test this PR - [x] Open ADS preview - [x] Verify that an item with a new pill is in the list ### UI changes <img width="320" height="2856" alt="Screenshot_20251006_113847" src="https://github.com/user-attachments/assets/3c133091-fe9d-474c-a574-a326ed50f39e" />
1 parent 043fa13 commit 945d206

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

design-system/src/main/res/layout/component_one_line_item.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,15 @@
250250
app:layout_constraintTop_toBottomOf="@id/oneLineListItemWithLongText"
251251
app:primaryTextTruncated="true"/>
252252

253-
253+
<com.duckduckgo.common.ui.view.listitem.OneLineListItem
254+
android:id="@+id/oneLineListItemWithNewPill"
255+
android:layout_width="match_parent"
256+
android:layout_height="wrap_content"
257+
android:layout_marginTop="@dimen/keyline_2"
258+
app:layout_constraintEnd_toEndOf="parent"
259+
app:layout_constraintStart_toStartOf="parent"
260+
app:layout_constraintTop_toBottomOf="@id/oneLineListItemWithLongTextTruncated"
261+
app:primaryText="Item with New Pill"
262+
app:showNewPill="true" />
254263

255264
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)