diff options
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/layout/contact.xml | 8 | ||||
-rw-r--r-- | src/main/res/layout/list_item_tag.xml | 13 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | src/main/res/values/styles.xml | 3 | ||||
-rw-r--r-- | src/main/res/xml/preferences.xml | 5 |
5 files changed, 30 insertions, 1 deletions
diff --git a/src/main/res/layout/contact.xml b/src/main/res/layout/contact.xml index 12ab3da1..69545c25 100644 --- a/src/main/res/layout/contact.xml +++ b/src/main/res/layout/contact.xml @@ -37,7 +37,13 @@ android:singleLine="true" android:textColor="@color/primarytext" android:textSize="?attr/TextSizeBody" /> - + <LinearLayout + android:id="@+id/tags" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:orientation="horizontal"> + </LinearLayout> <TextView android:id="@+id/key" android:layout_width="wrap_content" diff --git a/src/main/res/layout/list_item_tag.xml b/src/main/res/layout/list_item_tag.xml new file mode 100644 index 00000000..7a77f710 --- /dev/null +++ b/src/main/res/layout/list_item_tag.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:paddingTop="1dp" + android:paddingBottom="1dp" + android:paddingLeft="4dp" + android:paddingRight="4dp" + android:textSize="?attr/TextSizeInfo" + android:textColor="@color/ondarktext" + android:textAllCaps="true" + android:layout_marginRight="8dp" +/>
\ No newline at end of file diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 2912d895..a7e3bec6 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -349,4 +349,6 @@ <string name="could_not_verify_fingerprint">Could not verify fingerprint</string> <string name="manually_verify">Manually verify</string> <string name="are_you_sure_verify_fingerprint">Are you sure that you want to verify your contacts OTR fingerprint?</string> + <string name="pref_show_dynamic_tags">Show dynamic tags</string> + <string name="pref_show_dynamic_tags_summary">Display read-only tags underneath contacts</string> </resources> diff --git a/src/main/res/values/styles.xml b/src/main/res/values/styles.xml index 64bde770..b329eee4 100644 --- a/src/main/res/values/styles.xml +++ b/src/main/res/values/styles.xml @@ -4,5 +4,8 @@ <item name="android:layout_height">1.5dp</item> <item name="android:background">@color/divider</item> </style> + <style name="Tag"> + + </style> </resources>
\ No newline at end of file diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 3be65b7a..f927d915 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -73,6 +73,11 @@ android:key="send_button_status" android:summary="@string/pref_use_send_button_to_indicate_status_summary" android:title="@string/pref_use_send_button_to_indicate_status" /> + <CheckBoxPreference + android:defaultValue="false" + android:key="show_dynamic_tags" + android:summary="@string/pref_show_dynamic_tags_summary" + android:title="@string/pref_show_dynamic_tags" /> </PreferenceCategory> <PreferenceCategory android:title="@string/pref_advanced_options" > <PreferenceScreen |