mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-06 09:15:09 -05:00
add empty view to viewkeycertsfragment
This commit is contained in:
parent
20193e0992
commit
3d8d22c9ed
@ -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));
|
||||
|
||||
|
@ -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>
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user