Browse Source

fixed course name not being updated on change

* minor GUI improvements
pull/35/head
Jannik 3 years ago
parent
commit
aa69d2242f
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 3
      app/src/main/java/org/mosad/seil0/projectlaogai/fragments/SettingsFragment.kt
  2. 34
      app/src/main/res/layouts/activities/layout/linearlayout_meal.xml

3
app/src/main/java/org/mosad/seil0/projectlaogai/fragments/SettingsFragment.kt

@ -24,7 +24,6 @@ package org.mosad.seil0.projectlaogai.fragments
import android.content.Context
import android.os.Bundle
import android.renderscript.Sampler
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
@ -132,7 +131,6 @@ class SettingsFragment : Fragment() {
linLayoutCourse.setOnClickListener {
selectCourse(context!!)
txtView_Course.text = cCourse.courseName // update txtView
}
linLayoutAbout.setOnClickListener {
@ -263,6 +261,7 @@ class SettingsFragment : Fragment() {
uiThread {
dialog.dismiss()
txtView_Course.text = cCourse.courseName // update txtView
}
}

34
app/src/main/res/layouts/activities/layout/linearlayout_meal.xml

@ -1,23 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" android:id="@+id/linLayout_Meal" android:padding="7dp">
android:id="@+id/linLayout_Meal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingLeft="7dp"
android:paddingTop="2dp"
android:paddingRight="7dp"
android:paddingBottom="2dp">
<TextView
android:text="@string/meal"
android:id="@+id/txtView_MealHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:id="@+id/txtView_MealHeading" android:textSize="18sp"
android:textAlignment="center" android:paddingBottom="5dp"
android:textStyle="bold"/>
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:text="@string/meal"
android:textAlignment="center"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/txtView_Meal"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:id="@+id/txtView_Meal" android:textSize="15sp"
android:textAlignment="center"/>
android:layout_height="wrap_content"
android:textAlignment="center"
android:textSize="15sp" />
<View
android:id="@+id/divider_meal"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?dividerColor"
/>
android:layout_marginTop="3dp"
android:background="?dividerColor" />
</LinearLayout>
Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close