Small layout improvements

pull/199/head
M66B 4 years ago
parent 82f120c6a4
commit b85ab4ee2a

@ -1553,17 +1553,17 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
LayoutInflater inflater = LayoutInflater.from(getContext());
View dview = inflater.inflate(R.layout.dialog_first, null);
Button btnBatteryInfo = dview.findViewById(R.id.btnBatteryInfo);
Button btnReformatInfo = dview.findViewById(R.id.btnReformatInfo);
ImageButton ibBatteryInfo = dview.findViewById(R.id.ibBatteryInfo);
ImageButton ibReformatInfo = dview.findViewById(R.id.ibReformatInfo);
btnBatteryInfo.setOnClickListener(new View.OnClickListener() {
ibBatteryInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 39);
}
});
btnReformatInfo.setOnClickListener(new View.OnClickListener() {
ibReformatInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 35);

@ -30,6 +30,7 @@
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvMessage"

@ -106,6 +106,7 @@
android:layout_height="24dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintBottom_toBottomOf="@id/tvSubjectTitle"
app:layout_constraintEnd_toEndOf="parent"

@ -29,6 +29,7 @@
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvDeepL"

@ -55,14 +55,19 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvSyncNote" />
<Button
android:id="@+id/btnBatteryInfo"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_info"
<ImageButton
android:id="@+id/ibBatteryInfo"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBattery" />
app:layout_constraintTop_toBottomOf="@id/tvBattery"
app:srcCompat="@drawable/twotone_info_24" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvReformat"
@ -73,16 +78,21 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnBatteryInfo" />
app:layout_constraintTop_toBottomOf="@id/ibBatteryInfo" />
<Button
android:id="@+id/btnReformatInfo"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_info"
<ImageButton
android:id="@+id/ibReformatInfo"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvReformat" />
app:layout_constraintTop_toBottomOf="@id/tvReformat"
app:srcCompat="@drawable/twotone_info_24" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvDesign"
@ -93,7 +103,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnReformatInfo" />
app:layout_constraintTop_toBottomOf="@id/ibReformatInfo" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvJunk"

@ -35,9 +35,13 @@
<ImageButton
android:id="@+id/ibInfoProvider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvJunkHint"
@ -110,9 +114,13 @@
<ImageButton
android:id="@+id/ibInfoFilter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/cbJunkFilter"

@ -30,6 +30,7 @@
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tint="?attr/colorAccent"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"

Loading…
Cancel
Save