Allow to delete tags

This commit is contained in:
J-Jamet
2021-10-22 15:23:44 +02:00
parent 69ad7979ae
commit 429faf44db
3 changed files with 3 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ class TagsCompletionView @JvmOverloads constructor(
init {
allowCollapse(false)
setTokenizer(CharacterTokenizer(Tags.DELIMITERS, Tags.DELIMITER.toString()))
setTokenClickStyle(TokenClickStyle.Delete)
}
override fun defaultObject(completionText: String): String {

View File

@@ -10,7 +10,7 @@
android:bottom="4dp"/>
<stroke
android:width="1dp"
android:color="?attr/colorAccent" />
android:color="?android:attr/textColor" />
</shape>
</item>
</layer-list>

View File

@@ -37,12 +37,12 @@
android:drawablePadding="2dp"
tools:text="text"
android:textSize="12sp"
android:textColor="?attr/colorAccent"
android:paddingLeft="4dp"
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:paddingRight="4dp" />
<ImageView
android:id="@+id/tag_remove"
android:layout_width="24dp"
android:layout_height="24dp"
android:padding="4dp"