From 40316dad11494fce1c9748ba06b773251efe2c01 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 27 Jan 2016 17:52:02 +0100 Subject: [PATCH] properly display the wallpaper at the widget config activity --- .../calculator/simplemobiletools/com/MyWidgetConfigure.java | 4 ++-- app/src/main/res/layout/widget_config.xml | 5 +---- app/src/main/res/values/styles.xml | 5 +---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/calculator/simplemobiletools/com/MyWidgetConfigure.java b/app/src/main/java/calculator/simplemobiletools/com/MyWidgetConfigure.java index e625caa..a3375e9 100644 --- a/app/src/main/java/calculator/simplemobiletools/com/MyWidgetConfigure.java +++ b/app/src/main/java/calculator/simplemobiletools/com/MyWidgetConfigure.java @@ -1,12 +1,12 @@ package calculator.simplemobiletools.com; -import android.app.Activity; import android.appwidget.AppWidgetManager; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.RemoteViews; import android.widget.SeekBar; @@ -15,7 +15,7 @@ import butterknife.Bind; import butterknife.ButterKnife; import butterknife.OnClick; -public class MyWidgetConfigure extends Activity implements SeekBar.OnSeekBarChangeListener { +public class MyWidgetConfigure extends AppCompatActivity implements SeekBar.OnSeekBarChangeListener { @Bind(R.id.btn_reset) View resetBtn; @Bind(R.id.config_seekbar) SeekBar seekBar; @Bind(R.id.config_calc) View background; diff --git a/app/src/main/res/layout/widget_config.xml b/app/src/main/res/layout/widget_config.xml index c16dd8a..b6edd2f 100644 --- a/app/src/main/res/layout/widget_config.xml +++ b/app/src/main/res/layout/widget_config.xml @@ -4,10 +4,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerHorizontal="true" - android:layout_marginBottom="80dp" - android:layout_marginLeft="@dimen/activity_margin" - android:layout_marginRight="@dimen/activity_margin" - android:layout_marginTop="80dp"> + android:layout_margin="@dimen/activity_margin">