Compare commits
2 commits
master
...
lockscreen
Author | SHA1 | Date | |
---|---|---|---|
|
22433427bf | ||
|
b75fd52909 |
5 changed files with 46 additions and 2 deletions
|
@ -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">
|
||||
|
|
7
src/main/java/org/ligi/passandroid/PassWidget.java
Normal file
7
src/main/java/org/ligi/passandroid/PassWidget.java
Normal file
|
@ -0,0 +1,7 @@
|
|||
package org.ligi.passandroid;
|
||||
|
||||
import android.appwidget.AppWidgetProvider;
|
||||
|
||||
public class PassWidget extends AppWidgetProvider {
|
||||
|
||||
}
|
13
src/main/res/layout/widget.xml
Normal file
13
src/main/res/layout/widget.xml
Normal 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>
|
|
@ -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>
|
10
src/main/res/xml/widget.xml
Normal file
10
src/main/res/xml/widget.xml
Normal 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>
|
||||
|
Loading…
Reference in a new issue