diff --git a/README.md b/README.md index 5b2b909..e76b9db 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## WeserPlaner – University of Bremen Companion App WeserPlaner is a work-in-progress Android app for students at the University of Bremen that allows the user to download their schedule from their Stud.IP account, as well as viewing the offers available in all of the canteens operated by the Studierendenwerk Bremen. Handy features are available, such as adding new events and editing existing events, filtering canteen offers only for such that conform to the user's dietary and ethical preferences (e.g. only displaying vegetarian foods), and filtering out any offers including substances the user is allergic against. -![Screenshots of the WeserPlaner app](https://denizk0461.github.io/weserplaner_showcase.png) +![Screenshots of the WeserPlaner app](https://denizk0461.github.io/resources/weserplaner/weserplaner_showcase_2.png) ## Progress - Downloading and creating events, as well as displaying them. @@ -29,4 +29,4 @@ The colour scheme is inspired by the University of Bremen's colour scheme, as we I admit the Weserstadion idea only came to me after I had created the logo. -![WeserPlaner app icon](https://denizk0461.github.io/weserplaner_app_icon.png) +![WeserPlaner app icon](https://denizk0461.github.io/resources/weserplaner/weserplaner_app_icon.png) diff --git a/app/src/main/java/com/denizk0461/weserplaner/adapter/CanteenOfferItemAdapter.kt b/app/src/main/java/com/denizk0461/weserplaner/adapter/CanteenOfferItemAdapter.kt index f0ee4b6..2a34cd5 100644 --- a/app/src/main/java/com/denizk0461/weserplaner/adapter/CanteenOfferItemAdapter.kt +++ b/app/src/main/java/com/denizk0461/weserplaner/adapter/CanteenOfferItemAdapter.kt @@ -116,7 +116,7 @@ class CanteenOfferItemAdapter( val img = ItemIconBinding.inflate(LayoutInflater.from(context)) // Retrieve data for the dietary preference - val (_, drawableId, colourId) = DietaryPreferences.getData( + val (drawableTextDesc, drawableId, colourId) = DietaryPreferences.getData( DietaryPreferences.ERROR.ordinal, ) @@ -128,6 +128,9 @@ class CanteenOfferItemAdapter( ) ) + // Set content description for the icon + img.imageView.contentDescription = context.getString(drawableTextDesc) + // Set tint of the icon; themed to the preference, if the user has the option enabled img.imageView.imageTintList = ColorStateList.valueOf( context.theme.getThemedColor( @@ -181,7 +184,7 @@ class CanteenOfferItemAdapter( val img = ItemIconBinding.inflate(LayoutInflater.from(context)) // Retrieve data for the dietary preference - val (_, drawableId, colourId) = DietaryPreferences.getData(index) + val (drawableTextDesc, drawableId, colourId) = DietaryPreferences.getData(index) // Set the appropriate icon img.imageView.setImageDrawable( @@ -191,6 +194,9 @@ class CanteenOfferItemAdapter( ) ) + // Set content description for the icon + img.imageView.contentDescription = context.getString(drawableTextDesc) + // Set tint of the icon img.imageView.imageTintList = ColorStateList.valueOf( context.theme.getThemedColor( diff --git a/app/src/main/res/layout/fragment_canteen.xml b/app/src/main/res/layout/fragment_canteen.xml index 1960263..1816a39 100644 --- a/app/src/main/res/layout/fragment_canteen.xml +++ b/app/src/main/res/layout/fragment_canteen.xml @@ -1,6 +1,7 @@ @@ -56,7 +57,9 @@ app:layout_constraintTop_toTopOf="@id/app_title_bar" app:layout_constraintBottom_toBottomOf="@id/app_title_bar" app:layout_constraintEnd_toStartOf="@id/button_notifications" - app:iconTint="?attr/colorOnSurfaceVariant"/> + app:iconTint="?attr/colorOnSurfaceVariant" + tools:ignore="UnusedAttribute" + android:tooltipText="@string/canteen_button_opening_hours_hint"/> + app:iconTint="?attr/colorOnSurfaceVariant" + tools:ignore="UnusedAttribute" + android:tooltipText="@string/canteen_button_notifications_hint"/> @@ -245,11 +250,6 @@ android:layout_height="match_parent" android:orientation="vertical"> - - - - - - + android:tint="?attr/colorText" + android:src="@drawable/visibility_off" + android:importantForAccessibility="no"/> @@ -62,13 +61,14 @@ android:layout_gravity="center_horizontal" android:layout_marginTop="4dp"> - + android:tint="?attr/colorText" + android:src="@drawable/edit_off" + android:importantForAccessibility="no"/> - + android:tint="?attr/colorOnSurfaceVariant"/> \ No newline at end of file diff --git a/app/src/main/res/layout/item_sheet_preference.xml b/app/src/main/res/layout/item_sheet_preference.xml index 05f2a3b..fc08ea1 100644 --- a/app/src/main/res/layout/item_sheet_preference.xml +++ b/app/src/main/res/layout/item_sheet_preference.xml @@ -2,16 +2,16 @@ - + android:tint="?attr/colorOnSurfaceVariant" + android:layout_marginEnd="8dp" + android:importantForAccessibility="no"/> Startzeit der Veranstaltung Schlusszeit der Veranstaltung + Siehe Öffnungszeiten der Mensa + Siehe Neuigkeiten der Mensa + Kein Angebot Für diesen Tag sind keine Angebote vorhanden Neuigkeiten für diese Mensa diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2db38f7..387bc33 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -75,6 +75,9 @@ Event start time Event end time + View canteen opening hours + View canteen notifications + No offers There are no offers available for this day News for this canteen