diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/DiningWidget.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/DiningWidget.kt index 2745e9c8..3371d047 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/DiningWidget.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/DiningWidget.kt @@ -26,10 +26,8 @@ class DiningWidget : AppWidgetProvider() { } internal fun updateAppWidget(context: Context, appWidgetManager: AppWidgetManager, appWidgetId: Int) { - val widgetText = context.getString(R.string.appwidget_text) // Construct the RemoteViews object val views = RemoteViews(context.packageName, R.layout.dining_widget) - views.setTextViewText(R.id.appwidget_text, widgetText) // Instruct the widget manager to update the widget appWidgetManager.updateAppWidget(appWidgetId, views) diff --git a/PennMobile/src/main/res/layout/dining_widget.xml b/PennMobile/src/main/res/layout/dining_widget.xml index 698518c8..1cb4778d 100644 --- a/PennMobile/src/main/res/layout/dining_widget.xml +++ b/PennMobile/src/main/res/layout/dining_widget.xml @@ -10,23 +10,49 @@ android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentTop="true" - android:layout_margin="5dp" - android:text="@string/swipes" /> + android:text="@string/swipes" + android:layout_margin="5dp"/> + + + android:layout_alignBottom="@id/swipesText" + android:layout_alignTop="@id/swipesText" + android:layout_alignParentEnd="true" + android:indeterminate="false" + android:progress="20"/> + android:layout_marginStart="5dp" + android:layout_marginTop="7dp" + android:layout_marginEnd="5dp" + android:layout_marginBottom="5dp" + android:layout_toEndOf="@id/dollarsText" + android:layout_alignBottom="@id/dollarsText" + android:layout_alignTop="@id/dollarsText" + android:layout_alignParentEnd="true" + android:indeterminate="false" + android:progress="62"/> + \ No newline at end of file