mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-04-13 01:42:08 +02:00
update the circles
This commit is contained in:
parent
ace92020a4
commit
60463a22f0
@ -111,7 +111,7 @@ public class WidgetConfigureActivity extends AppCompatActivity {
|
|||||||
private void updateColors() {
|
private void updateColors() {
|
||||||
mWidgetColor = adjustAlpha(mWidgetColorWithoutTransparency, mWidgetAlpha);
|
mWidgetColor = adjustAlpha(mWidgetColorWithoutTransparency, mWidgetAlpha);
|
||||||
mWidgetColorPicker.setBackgroundColor(mWidgetColor);
|
mWidgetColorPicker.setBackgroundColor(mWidgetColor);
|
||||||
mImage.getDrawable().mutate().setColorFilter(mWidgetColor, PorterDuff.Mode.SRC_IN);
|
mImage.getBackground().mutate().setColorFilter(mWidgetColor, PorterDuff.Mode.SRC_IN);
|
||||||
}
|
}
|
||||||
|
|
||||||
private SeekBar.OnSeekBarChangeListener seekbarChangeListener = new SeekBar.OnSeekBarChangeListener() {
|
private SeekBar.OnSeekBarChangeListener seekbarChangeListener = new SeekBar.OnSeekBarChangeListener() {
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item
|
<item
|
||||||
android:bottom="60dp"
|
android:bottom="52dp"
|
||||||
android:left="60dp"
|
android:left="52dp"
|
||||||
android:right="60dp"
|
android:right="52dp"
|
||||||
android:top="60dp">
|
android:top="52dp">
|
||||||
<shape
|
<shape
|
||||||
android:shape="oval">
|
android:shape="oval">
|
||||||
<stroke
|
<stroke
|
||||||
android:width="15dp"
|
android:width="13dp"
|
||||||
android:color="@color/translucent_white"/>
|
android:color="#ff0000"/>
|
||||||
<solid android:color="@android:color/transparent"/>
|
<solid android:color="@android:color/transparent"/>
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:bottom="30dp"
|
android:bottom="26dp"
|
||||||
android:left="30dp"
|
android:left="26dp"
|
||||||
android:right="30dp"
|
android:right="26dp"
|
||||||
android:top="30dp">
|
android:top="26dp">
|
||||||
<shape
|
<shape
|
||||||
android:shape="oval">
|
android:shape="oval">
|
||||||
<stroke
|
<stroke
|
||||||
android:width="15dp"
|
android:width="13dp"
|
||||||
android:color="@color/translucent_white"/>
|
android:color="@color/translucent_white"/>
|
||||||
<solid android:color="@android:color/transparent"/>
|
<solid android:color="@android:color/transparent"/>
|
||||||
</shape>
|
</shape>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<shape
|
<shape
|
||||||
android:shape="oval">
|
android:shape="oval">
|
||||||
<stroke
|
<stroke
|
||||||
android:width="15dp"
|
android:width="13dp"
|
||||||
android:color="@color/translucent_white"/>
|
android:color="@color/translucent_white"/>
|
||||||
<solid android:color="@android:color/transparent"/>
|
<solid android:color="@android:color/transparent"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
@ -7,13 +7,19 @@
|
|||||||
android:layout_margin="@dimen/activity_margin"
|
android:layout_margin="@dimen/activity_margin"
|
||||||
android:paddingBottom="@dimen/activity_margin">
|
android:paddingBottom="@dimen/activity_margin">
|
||||||
|
|
||||||
<ImageView
|
<RelativeLayout
|
||||||
android:id="@+id/config_image"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_above="@+id/config_widget_color"
|
android:layout_above="@+id/config_widget_color"
|
||||||
android:scaleType="centerInside"
|
android:layout_marginBottom="@dimen/activity_margin"
|
||||||
android:src="@drawable/circles_big"/>
|
android:gravity="center">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/config_image"
|
||||||
|
android:layout_width="@dimen/main_button_size"
|
||||||
|
android:layout_height="@dimen/main_button_size"
|
||||||
|
android:background="@drawable/circles_big"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/config_widget_color"
|
android:id="@+id/config_widget_color"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user