properly display the wallpaper at the widget config activity

This commit is contained in:
tibbi 2016-01-27 17:52:02 +01:00
parent cf831b5268
commit 40316dad11
3 changed files with 4 additions and 10 deletions

View file

@ -1,12 +1,12 @@
package calculator.simplemobiletools.com; package calculator.simplemobiletools.com;
import android.app.Activity;
import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetManager;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.graphics.Color; import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View; import android.view.View;
import android.widget.RemoteViews; import android.widget.RemoteViews;
import android.widget.SeekBar; import android.widget.SeekBar;
@ -15,7 +15,7 @@ import butterknife.Bind;
import butterknife.ButterKnife; import butterknife.ButterKnife;
import butterknife.OnClick; 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.btn_reset) View resetBtn;
@Bind(R.id.config_seekbar) SeekBar seekBar; @Bind(R.id.config_seekbar) SeekBar seekBar;
@Bind(R.id.config_calc) View background; @Bind(R.id.config_calc) View background;

View file

@ -4,10 +4,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_marginBottom="80dp" android:layout_margin="@dimen/activity_margin">
android:layout_marginLeft="@dimen/activity_margin"
android:layout_marginRight="@dimen/activity_margin"
android:layout_marginTop="80dp">
<include <include
android:id="@+id/config_calc" android:id="@+id/config_calc"

View file

@ -17,10 +17,7 @@
</style> </style>
<style name="MyWidgetConfigTheme" parent="@style/AppTheme"> <style name="MyWidgetConfigTheme" parent="@style/AppTheme">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item> <item name="android:windowShowWallpaper">true</item>
<item name="android:backgroundDimEnabled">false</item>
<item name="android:textColor">@android:color/white</item>
</style> </style>
</resources> </resources>