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) { public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
LayoutInflater inflater = LayoutInflater.from(getContext()); LayoutInflater inflater = LayoutInflater.from(getContext());
View dview = inflater.inflate(R.layout.dialog_first, null); View dview = inflater.inflate(R.layout.dialog_first, null);
Button btnBatteryInfo = dview.findViewById(R.id.btnBatteryInfo); ImageButton ibBatteryInfo = dview.findViewById(R.id.ibBatteryInfo);
Button btnReformatInfo = dview.findViewById(R.id.btnReformatInfo); ImageButton ibReformatInfo = dview.findViewById(R.id.ibReformatInfo);
btnBatteryInfo.setOnClickListener(new View.OnClickListener() { ibBatteryInfo.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 39); Helper.viewFAQ(v.getContext(), 39);
} }
}); });
btnReformatInfo.setOnClickListener(new View.OnClickListener() { ibReformatInfo.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 35); Helper.viewFAQ(v.getContext(), 35);

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

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

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

@ -55,14 +55,19 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvSyncNote" /> app:layout_constraintTop_toBottomOf="@id/tvSyncNote" />
<Button <ImageButton
android:id="@+id/btnBatteryInfo" android:id="@+id/ibBatteryInfo"
style="?android:attr/buttonStyleSmall" android:layout_width="36dp"
android:layout_width="wrap_content" android:layout_height="36dp"
android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackgroundBorderless"
android:text="@string/title_info" 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_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 <eu.faircode.email.FixedTextView
android:id="@+id/tvReformat" android:id="@+id/tvReformat"
@ -73,16 +78,21 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnBatteryInfo" /> app:layout_constraintTop_toBottomOf="@id/ibBatteryInfo" />
<Button <ImageButton
android:id="@+id/btnReformatInfo" android:id="@+id/ibReformatInfo"
style="?android:attr/buttonStyleSmall" android:layout_width="36dp"
android:layout_width="wrap_content" android:layout_height="36dp"
android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackgroundBorderless"
android:text="@string/title_info" 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_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 <eu.faircode.email.FixedTextView
android:id="@+id/tvDesign" android:id="@+id/tvDesign"
@ -93,7 +103,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnReformatInfo" /> app:layout_constraintTop_toBottomOf="@id/ibReformatInfo" />
<eu.faircode.email.FixedTextView <eu.faircode.email.FixedTextView
android:id="@+id/tvJunk" android:id="@+id/tvJunk"

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

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

Loading…
Cancel
Save