Allow to delete tags

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

No files matched your search

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