diff --git a/clients/android/NewsBlur/res/drawable/app_widget_background.xml b/clients/android/NewsBlur/res/drawable/app_widget_background.xml index a00ec096b..2c1b7964c 100644 --- a/clients/android/NewsBlur/res/drawable/app_widget_background.xml +++ b/clients/android/NewsBlur/res/drawable/app_widget_background.xml @@ -1,7 +1,7 @@ - + - @@ -15,7 +16,7 @@ android:paddingTop="9dp" android:paddingEnd="8dp" android:paddingBottom="9dp" - android:textColor="@color/white" + android:textColor="@color/black" android:textStyle="bold" tools:text="Coding Horror" /> @@ -23,10 +24,9 @@ android:id="@+id/widget_list" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="46dp" - tools:listitem="@layout/view_widget_item" /> + tools:listitem="@layout/view_widget_story_item" /> - \ No newline at end of file + \ No newline at end of file diff --git a/clients/android/NewsBlur/res/layout/view_widget_item.xml b/clients/android/NewsBlur/res/layout/view_widget_item.xml deleted file mode 100644 index aece96d52..000000000 --- a/clients/android/NewsBlur/res/layout/view_widget_item.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/clients/android/NewsBlur/res/layout/view_widget_story_item.xml b/clients/android/NewsBlur/res/layout/view_widget_story_item.xml new file mode 100644 index 000000000..7865997bf --- /dev/null +++ b/clients/android/NewsBlur/res/layout/view_widget_story_item.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/clients/android/NewsBlur/res/xml/newsblur_appwidget_info.xml b/clients/android/NewsBlur/res/xml/newsblur_appwidget_info.xml index e39f6f4e2..e154c1353 100644 --- a/clients/android/NewsBlur/res/xml/newsblur_appwidget_info.xml +++ b/clients/android/NewsBlur/res/xml/newsblur_appwidget_info.xml @@ -4,7 +4,7 @@ android:minHeight="100dp" android:minResizeWidth="100dp" android:minResizeHeight="60dp" - android:updatePeriodMillis="14400000" + android:updatePeriodMillis="3600000" android:initialLayout="@layout/view_app_widget" android:configure="com.newsblur.widget.WidgetConfigActivity" android:resizeMode="horizontal|vertical" diff --git a/clients/android/NewsBlur/src/com/newsblur/widget/WidgetRemoteViews.java b/clients/android/NewsBlur/src/com/newsblur/widget/WidgetRemoteViews.java new file mode 100644 index 000000000..e772a1d13 --- /dev/null +++ b/clients/android/NewsBlur/src/com/newsblur/widget/WidgetRemoteViews.java @@ -0,0 +1,28 @@ +package com.newsblur.widget; + +import android.os.Parcel; +import android.support.annotation.ColorInt; +import android.widget.RemoteViews; + +public class WidgetRemoteViews extends RemoteViews { + + public WidgetRemoteViews(String packageName, int layoutId) { + super(packageName, layoutId); + } + + public WidgetRemoteViews(RemoteViews landscape, RemoteViews portrait) { + super(landscape, portrait); + } + + public WidgetRemoteViews(Parcel parcel) { + super(parcel); + } + + public void setViewBackgroundColor(int viewId, @ColorInt int color) { + setInt(viewId, "setBackgroundColor", color); + } + + public void getViewById(int viewId) { + + } +}