Skip to content

Commit

Permalink
fix(ui): Make issue reproducible in sample app
Browse files Browse the repository at this point in the history
Refs: #145

Signed-off-by: Stefan Niedermann <[email protected]>
  • Loading branch information
stefan-niedermann committed Jun 30, 2023
1 parent cac2bc7 commit 2617aff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,8 @@ class MainActivity : AppCompatActivity() {
material.themeChipInput(binding.inputChip)
material.themeChipSuggestion(binding.suggestionChip)
material.themeChipFilter(binding.filterChip)
platform.colorTextView(binding.sampleTextView, ColorRole.ON_SURFACE)

platform.highlightText(binding.sampleTextView, binding.sampleTextView.text as String, "L")
}
}
17 changes: 15 additions & 2 deletions sample/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Nextcloud Android Common Library
~
~ Copyright (C) 2023 Nextcloud GmbH
Expand Down Expand Up @@ -83,6 +82,7 @@
app:layout_constraintStart_toEndOf="@+id/colorTil" />

<com.google.android.material.chip.ChipGroup
android:id="@+id/sampleChipGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_half_margin"
Expand Down Expand Up @@ -124,4 +124,17 @@

</com.google.android.material.chip.ChipGroup>

<TextView
android:id="@+id/sampleTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_half_margin"
android:layout_marginBottom="@dimen/standard_half_margin"
android:text="LLorem ipsum dolor sit amet."
app:chipSpacingHorizontal="@dimen/standard_half_margin"
app:chipSpacingVertical="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/sampleChipGroup"
tools:ignore="HardcodedText" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 2617aff

Please sign in to comment.