remove ui hack, use padding instead of margin

This commit is contained in:
Vincent Breitmoser 2014-10-08 15:36:18 +02:00
parent 1b160f68c9
commit 590650a303
2 changed files with 3 additions and 14 deletions

View File

@ -173,16 +173,6 @@ public class MultiCertifyKeyFragment extends LoaderFragment
} }
}); });
// UI tidbit: "my key" is the area above the checkbox, if the user clicks there he
// probably actually wants to hit the checkbox
View vMyKeyLabel = view.findViewById(R.id.label_my_key);
vMyKeyLabel.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
mUploadKeyCheckbox.performClick();
}
});
return root; return root;
} }

View File

@ -60,7 +60,6 @@
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<TextView <TextView
android:id="@+id/label_my_key"
android:paddingLeft="8dp" android:paddingLeft="8dp"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -82,10 +81,10 @@
android:id="@+id/sign_key_upload_checkbox" android:id="@+id/sign_key_upload_checkbox"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:checked="false" android:checked="false"
android:text="@string/label_send_key" /> android:text="@string/label_send_key"
android:paddingTop="12dp"
android:paddingBottom="12dp"/>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"