New list with sticky list headers library
This commit is contained in:
7
OpenPGP-Keychain/res/drawable/header_selector.xml
Normal file
7
OpenPGP-Keychain/res/drawable/header_selector.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item android:state_pressed="true" android:drawable="@color/header_pressed" />
|
||||
<item android:drawable="@color/header_normal" />
|
||||
|
||||
</selector>
|
||||
@@ -8,18 +8,7 @@
|
||||
android:id="@+id/key_list_public_fragment"
|
||||
android:name="org.sufficientlysecure.keychain.ui.KeyListPublicFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/abs__ab_bottom_solid_light_holo"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:paddingTop="3dp"
|
||||
android:text="@string/list_information" />
|
||||
|
||||
</LinearLayout>
|
||||
14
OpenPGP-Keychain/res/layout/key_list_public_fragment.xml
Normal file
14
OpenPGP-Keychain/res/layout/key_list_public_fragment.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp" >
|
||||
|
||||
<se.emilsjolander.stickylistheaders.StickyListHeadersListView
|
||||
android:id="@+id/key_list_public_fragment_stickylist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -8,18 +8,7 @@
|
||||
android:id="@+id/key_list_secret_fragment"
|
||||
android:name="org.sufficientlysecure.keychain.ui.KeyListSecretFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/abs__ab_bottom_solid_light_holo"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:paddingTop="3dp"
|
||||
android:text="@string/list_information" />
|
||||
|
||||
</LinearLayout>
|
||||
17
OpenPGP-Keychain/res/layout/stickylist_header.xml
Normal file
17
OpenPGP-Keychain/res/layout/stickylist_header.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/header_selector" >
|
||||
|
||||
<se.emilsjolander.stickylistheaders.views.UnderlineTextView
|
||||
android:id="@+id/stickylist_header_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start|left"
|
||||
android:padding="5dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="17sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -3,5 +3,8 @@
|
||||
|
||||
<color name="emphasis">#31b6e7</color>
|
||||
<color name="bg_gray">#cecbce</color>
|
||||
|
||||
<color name="header_normal">#ffe74c3c</color>
|
||||
<color name="header_pressed">#ffc0392b</color>
|
||||
<color name="menu_section_header">#FFDDDDDD</color>
|
||||
|
||||
</resources>
|
||||
@@ -210,7 +210,6 @@
|
||||
<string name="lookup_unknown_key">Unknown key %s, do you want to try finding it on a keyserver?</string>
|
||||
<string name="key_send_success">Successfully sent key to server</string>
|
||||
<string name="key_sign_success">Successfully signed key</string>
|
||||
<string name="list_information">Long press one entry in this list to show more options!</string>
|
||||
<string name="list_empty">This list is empty!</string>
|
||||
<string name="nfc_successfull">Successfully sent key with NFC Beam!</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user