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 TextView tvWelcome;
private ImageButton ibWelcome; private ImageButton ibWelcome;
private Button btnHelp; private ImageButton ibHelp;
private Button btnQuick; private Button btnQuick;
private TextView tvQuickNew; private TextView tvQuickNew;
private TextView tvQuickRemark; private TextView tvQuickRemark;
@ -107,7 +107,7 @@ public class FragmentSetup extends FragmentBase {
tvWelcome = view.findViewById(R.id.tvWelcome); tvWelcome = view.findViewById(R.id.tvWelcome);
ibWelcome = view.findViewById(R.id.ibWelcome); ibWelcome = view.findViewById(R.id.ibWelcome);
btnHelp = view.findViewById(R.id.btnHelp); ibHelp = view.findViewById(R.id.ibHelp);
btnQuick = view.findViewById(R.id.btnQuick); btnQuick = view.findViewById(R.id.btnQuick);
tvQuickNew = view.findViewById(R.id.tvQuickNew); tvQuickNew = view.findViewById(R.id.tvQuickNew);
tvQuickRemark = view.findViewById(R.id.tvQuickRemark); 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 @Override
public void onClick(View view) { public void onClick(View view) {
Bundle args = new Bundle(); Bundle args = new Bundle();

View File

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