Reset color using image button

This commit is contained in:
M66B 2019-06-14 19:47:48 +02:00
parent a267d95b2e
commit 9f76ae2a26
6 changed files with 12 additions and 8 deletions

View File

@ -52,7 +52,7 @@ import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ImageButton;
import android.widget.RadioGroup;
import android.widget.ScrollView;
import android.widget.Spinner;
@ -110,7 +110,7 @@ public class FragmentAccount extends FragmentBase {
private EditText etName;
private Button btnColor;
private View vwColor;
private ImageView ibColorDefault;
private ImageButton ibColorDefault;
private Button btnAdvanced;
private CheckBox cbSynchronize;

View File

@ -42,7 +42,7 @@ import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ImageButton;
import android.widget.RadioGroup;
import android.widget.ScrollView;
import android.widget.Spinner;
@ -83,7 +83,7 @@ public class FragmentIdentity extends FragmentBase {
private EditText etDisplay;
private Button btnColor;
private View vwColor;
private ImageView ibColorDefault;
private ImageButton ibColorDefault;
private EditText etSignature;
private Button btnHtml;

View File

@ -39,6 +39,7 @@ import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.NumberPicker;
import android.widget.ScrollView;
@ -99,7 +100,7 @@ public class FragmentRule extends FragmentBase {
private Button btnColor;
private View vwColor;
private ImageView ibColorDefault;
private ImageButton ibColorDefault;
private Spinner spTarget;
private CheckBox cbMoveSeen;

View File

@ -336,11 +336,12 @@
app:layout_constraintStart_toEndOf="@id/btnColor"
app:layout_constraintTop_toTopOf="@id/btnColor" />
<ImageView
<ImageButton
android:id="@+id/ibColorDefault"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:background="@null"
android:contentDescription="@string/title_legend_default_color"
android:src="@drawable/baseline_delete_24"
app:layout_constraintBottom_toBottomOf="@id/btnColor"

View File

@ -129,11 +129,12 @@
app:layout_constraintStart_toEndOf="@id/btnColor"
app:layout_constraintTop_toTopOf="@id/btnColor" />
<ImageView
<ImageButton
android:id="@+id/ibColorDefault"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:background="@null"
android:contentDescription="@string/title_legend_default_color"
android:src="@drawable/baseline_delete_24"
app:layout_constraintBottom_toBottomOf="@id/btnColor"

View File

@ -409,11 +409,12 @@
app:layout_constraintStart_toEndOf="@id/btnColor"
app:layout_constraintTop_toTopOf="@id/btnColor" />
<ImageView
<ImageButton
android:id="@+id/ibColorDefault"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:background="@null"
android:contentDescription="@string/title_legend_default_color"
android:src="@drawable/baseline_delete_24"
app:layout_constraintBottom_toBottomOf="@id/btnColor"