diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-03-12 02:47:19 +0100 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-03-12 02:47:19 +0100 |
commit | 3d8d22c9ed67a6c7107764803f2baa31ed695edc (patch) | |
tree | da07ed56a0e587751429446473f86bc851bb7d6b /OpenPGP-Keychain/src | |
parent | 20193e099207b9de88c38fc7fe1a1640426ebdee (diff) | |
download | open-keychain-3d8d22c9ed67a6c7107764803f2baa31ed695edc.tar.gz open-keychain-3d8d22c9ed67a6c7107764803f2baa31ed695edc.tar.bz2 open-keychain-3d8d22c9ed67a6c7107764803f2baa31ed695edc.zip |
add empty view to viewkeycertsfragment
Diffstat (limited to 'OpenPGP-Keychain/src')
3 files changed, 13 insertions, 0 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java index 4551bd4e0..e12c93d2f 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java @@ -124,6 +124,8 @@ public class ViewKeyCertsFragment extends Fragment } catch (ApiLevelTooLowException e) { } + mStickyList.setEmptyView(getActivity().findViewById(R.id.empty)); + // TODO this view is made visible if no data is available // mStickyList.setEmptyView(getActivity().findViewById(R.id.empty)); diff --git a/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml b/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml index 40db5e766..60f071bd4 100644 --- a/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml +++ b/OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml @@ -33,6 +33,16 @@ android:layout_alignParentRight="true" android:layout_marginRight="16dp" /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/empty_certs" + android:id="@+id/empty" + android:visibility="gone" + android:layout_centerInParent="true" + android:paddingBottom="32dp" /> + </RelativeLayout> </ScrollView>
\ No newline at end of file diff --git a/OpenPGP-Keychain/src/main/res/values/strings.xml b/OpenPGP-Keychain/src/main/res/values/strings.xml index ab81bee7a..723661928 100644 --- a/OpenPGP-Keychain/src/main/res/values/strings.xml +++ b/OpenPGP-Keychain/src/main/res/values/strings.xml @@ -452,5 +452,6 @@ <string name="label_user_id">User ID</string> <string name="label_subkey_rank">Subkey Rank</string> <string name="unknown_uid"><![CDATA[<unknown>]]></string> + <string name="empty_certs">No certificates for this key</string> </resources> |