mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
widget configuration activity theme => dialog
This commit is contained in:
parent
b4f1ed3552
commit
47c827c547
6 changed files with 11 additions and 9 deletions
|
@ -382,7 +382,7 @@
|
|||
</intent-filter>
|
||||
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_simple"/>
|
||||
</receiver>
|
||||
<activity android:name="org.geometerplus.android.fbreader.widget.simple.ConfigurationActivity" android:configChanges="orientation|screenSize|keyboard|keyboardHidden" android:theme="@style/FBReader.Activity" android:exported="false">
|
||||
<activity android:name="org.geometerplus.android.fbreader.widget.simple.ConfigurationActivity" android:configChanges="orientation|screenSize|keyboard|keyboardHidden" android:theme="@style/FBReader.Dialog.NoTitle" android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
|
||||
</intent-filter>
|
||||
|
|
|
@ -382,7 +382,7 @@
|
|||
</intent-filter>
|
||||
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_simple"/>
|
||||
</receiver>
|
||||
<activity android:name="org.geometerplus.android.fbreader.widget.simple.ConfigurationActivity" android:configChanges="orientation|screenSize|keyboard|keyboardHidden" android:theme="@style/FBReader.Activity" android:exported="false">
|
||||
<activity android:name="org.geometerplus.android.fbreader.widget.simple.ConfigurationActivity" android:configChanges="orientation|screenSize|keyboard|keyboardHidden" android:theme="@style/FBReader.Dialog.NoTitle" android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
|
||||
</intent-filter>
|
||||
|
|
|
@ -1207,7 +1207,7 @@
|
|||
<node name="conflict" value="Both FBReader and FBReader Premium appear to be installed. Which one would you like to run?"/>
|
||||
</node>
|
||||
<node name="widget">
|
||||
<node name="simple" value="FBReader widget setup">
|
||||
<node name="simple">
|
||||
<node name="selectIcon" value="Select widget icon"/>
|
||||
<node name="selectAction" value="Select action"/>
|
||||
<node name="book" value="Read book"/>
|
||||
|
|
|
@ -4,16 +4,16 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="7dp"
|
||||
android:padding="15dp"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/widget_simple_config_icon_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
@ -36,7 +36,7 @@
|
|||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/widget_simple_config_action_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:paddingTop="12dp"
|
||||
|
@ -45,7 +45,7 @@
|
|||
android:id="@+id/widget_simple_config_actions"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:spinnerMode="dialog"
|
||||
android:spinnerMode="dropdown"
|
||||
/>
|
||||
<include
|
||||
layout="@layout/ok_cancel_buttons"
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
</style>
|
||||
<style name="FBReader.Dialog" parent="android:Theme.Dialog">
|
||||
</style>
|
||||
<style name="FBReader.Dialog.NoTitle" parent="FBReader.Dialog">
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
</style>
|
||||
<style name="FBReader.Transparent" parent="android:Theme.Translucent.NoTitleBar">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
</style>
|
||||
|
|
|
@ -66,7 +66,6 @@ public class ConfigurationActivity extends Activity {
|
|||
setContentView(R.layout.widget_simple_config);
|
||||
|
||||
final ZLResource widgetResource = ZLResource.resource("widget").getResource("simple");
|
||||
setTitle(widgetResource.getValue());
|
||||
|
||||
myWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID;
|
||||
final Bundle extras = getIntent().getExtras();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue