Skip to content

Commit 186149b

Browse files
#204 Quickwin for category label
1 parent e09512a commit 186149b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
2+
<solid android:color="@android:color/white" />
3+
<stroke android:width="1dip" android:color="@color/primary"/>
4+
<corners
5+
android:radius="4dp" />
6+
</shape>

app/src/main/res/layout/fragment_notes_list_note_item.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
<TextView
5050
android:id="@+id/noteCategory"
5151
android:layout_width="wrap_content"
52+
android:background="@drawable/border"
53+
android:paddingLeft="8dp"
54+
android:paddingRight="8dp"
55+
android:paddingTop="2dp"
56+
android:paddingBottom="2dp"
5257
android:layout_height="wrap_content"
5358
android:layout_alignParentStart="true"
5459
android:layout_alignParentLeft="true"
@@ -71,6 +76,8 @@
7176
android:layout_marginLeft="16dp"
7277
android:layout_marginEnd="16dp"
7378
android:layout_marginRight="16dp"
79+
android:paddingTop="2dp"
80+
android:paddingBottom="2dp"
7481
android:ellipsize="end"
7582
android:maxLines="1"
7683
android:textColor="@drawable/list_item_color_selector_low"

0 commit comments

Comments
 (0)