add expand item to linked id list
This commit is contained in:
11
OpenKeychain/src/main/res/drawable/divider.xml
Normal file
11
OpenKeychain/src/main/res/drawable/divider.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
<size
|
||||
android:height="1px"
|
||||
android:width="1000dp" />
|
||||
|
||||
<solid android:color="@color/bg_gray" />
|
||||
|
||||
</shape>
|
||||
@@ -55,7 +55,8 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:animateLayoutChanges="true">
|
||||
|
||||
<TextView
|
||||
style="@style/CardViewHeader"
|
||||
@@ -68,6 +69,25 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="4dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/view_key_linked_ids_expander"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:gravity="center_vertical"
|
||||
android:drawableTop="@drawable/divider"
|
||||
android:drawableRight="@drawable/ic_expand_more_black_24dp"
|
||||
android:drawableEnd="@drawable/ic_expand_more_black_24dp"
|
||||
android:drawablePadding="3dp"
|
||||
android:clickable="true"
|
||||
android:textColor="@color/tertiary_text_light"
|
||||
android:text="%d more unknown identity types"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
style="@style/SelectableItem" />
|
||||
|
||||
</LinearLayout>
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
|
||||
@@ -1310,5 +1310,9 @@
|
||||
<string name="linked_need_verify">The resource needs to be verified before you can proceed!</string>
|
||||
<string name="menu_linked_add_identity">"Add Linked Identity"</string>
|
||||
<string name="section_linked_identities">Linked Identities</string>
|
||||
<plurals name="linked_id_expand">
|
||||
<item quantity="one">"There is one more unknown identity type"</item>
|
||||
<item quantity="other">"There are %d more unknown identity types"</item>
|
||||
</plurals>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user