fixed course name not being updated on change

* minor GUI improvements
This commit is contained in:
Jannik 2019-09-23 22:44:03 +02:00
parent 6e6c9f71a0
commit aa69d2242f
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
2 changed files with 24 additions and 13 deletions

View File

@ -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
}
}

View File

@ -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:id="@+id/txtView_MealHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:text="@string/meal"
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: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>