add empty view to viewkeycertsfragment

This commit is contained in:
Vincent Breitmoser 2014-03-12 02:47:19 +01:00
parent 20193e0992
commit 3d8d22c9ed
3 changed files with 13 additions and 0 deletions

View File

@ -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));

View File

@ -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>

View File

@ -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>