diff --git a/app/src/main/java/calculator/simplemobiletools/com/MyWidgetConfigure.java b/app/src/main/java/calculator/simplemobiletools/com/MyWidgetConfigure.java index e625caad..a3375e92 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 c16dd8a5..b6edd2f4 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">