fix "Create new key" layout in SelectSignKeyIdListFragment

This commit is contained in:
Vincent Breitmoser 2018-07-04 13:21:50 +02:00
parent 035a62e920
commit 24090cbf18
2 changed files with 5 additions and 2 deletions

View file

@ -83,7 +83,7 @@ public class SelectSignKeyIdListFragment extends RecyclerFragment<KeyChoiceAdapt
LinearLayout linearLayout = new LinearLayout(requireContext());
linearLayout.setOrientation(LinearLayout.VERTICAL);
View dummyItemView = inflater.inflate(R.layout.key_list_dummy, linearLayout, false);
View dummyItemView = inflater.inflate(R.layout.select_dummy_key_item, linearLayout, false);
linearLayout.addView(dummyItemView, new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));

View file

@ -2,6 +2,8 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/api_select_sign_key_create_key"
android:background="?android:selectableItemBackground"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:textAppearance="?android:attr/textAppearanceMedium"
@ -11,4 +13,5 @@
android:drawableLeft="@drawable/ic_key_plus_grey600_24dp"
android:drawablePadding="8dp"
android:gravity="center_vertical"
android:clickable="true" />
android:minHeight="?listPreferredItemHeight"
/>