Compare commits

...

2 commits

Author SHA1 Message Date
ligi
22433427bf remove connection change from here 2014-07-11 21:36:14 +02:00
ligi
b75fd52909 prepare widget 2014-07-11 21:06:35 +02:00
5 changed files with 46 additions and 2 deletions

View file

@ -20,12 +20,26 @@
-->
<application
android:name=".App"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:name=".App"
android:theme="@style/AppTheme">
<receiver
android:name=".PassWidget"
android:exported="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget" />
</receiver>
<activity
android:name=".ui.TicketListActivity"
android:label="@string/app_name">

View file

@ -0,0 +1,7 @@
package org.ligi.passandroid;
import android.appwidget.AppWidgetProvider;
public class PassWidget extends AppWidgetProvider {
}

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" />
</LinearLayout>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="widget_size">40dp</dimen>
<dimen name="pass_icon_size">64dp</dimen>
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="@dimen/widget_size"
android:minHeight="@dimen/widget_size"
android:updatePeriodMillis="7200000"
android:previewImage="@drawable/ic_launcher"
android:initialLayout="@layout/widget"
android:resizeMode="horizontal|vertical"
android:widgetCategory="keyguard|home_screen"></appwidget-provider>