Centered wizard button

This commit is contained in:
M66B 2020-11-23 08:25:51 +01:00
parent f6d1f06754
commit 13c447f9ad
2 changed files with 18 additions and 15 deletions

View File

@ -60,7 +60,7 @@ public class FragmentSetup extends FragmentBase {
private TextView tvWelcome;
private ImageButton ibWelcome;
private Button btnHelp;
private ImageButton ibHelp;
private Button btnQuick;
private TextView tvQuickNew;
private TextView tvQuickRemark;
@ -107,7 +107,7 @@ public class FragmentSetup extends FragmentBase {
tvWelcome = view.findViewById(R.id.tvWelcome);
ibWelcome = view.findViewById(R.id.ibWelcome);
btnHelp = view.findViewById(R.id.btnHelp);
ibHelp = view.findViewById(R.id.ibHelp);
btnQuick = view.findViewById(R.id.btnQuick);
tvQuickNew = view.findViewById(R.id.tvQuickNew);
tvQuickRemark = view.findViewById(R.id.tvQuickRemark);
@ -151,7 +151,7 @@ public class FragmentSetup extends FragmentBase {
}
});
btnHelp.setOnClickListener(new View.OnClickListener() {
ibHelp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Bundle args = new Bundle();

View File

@ -84,18 +84,20 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/fast" />
<Button
android:id="@+id/btnHelp"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:backgroundTint="?attr/colorInfoBackground"
android:text="@string/title_setup_help"
android:textColor="?attr/colorInfoForeground"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvQuick" />
<ImageButton
android:id="@+id/ibHelp"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_setup_help"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorWarning"
android:tooltipText="@string/title_setup_help"
app:layout_constraintBottom_toBottomOf="@id/btnQuick"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/btnQuick"
app:srcCompat="@drawable/twotone_help_24" />
<Button
android:id="@+id/btnQuick"
@ -107,6 +109,7 @@
android:textColor="?attr/colorInfoForeground"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvQuick" />
<eu.faircode.email.FixedTextView