Browse Source

fix background in fragment_grades

* disable swipe in fragment_grades
pull/46/head
Jannik 2 years ago
parent
commit
42d938b0bc
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 1
      app/src/main/java/org/mosad/seil0/projectlaogai/fragments/GradesFragment.kt
  2. 5
      app/src/main/res/layouts/fragments/layout/fragment_grades.xml

1
app/src/main/java/org/mosad/seil0/projectlaogai/fragments/GradesFragment.kt

@ -50,6 +50,7 @@ class GradesFragment : Fragment() {
val view: View = inflater.inflate(R.layout.fragment_grades, container, false)
refreshLayoutGrades = view.findViewById(R.id.refreshLayout_Grades)
refreshLayoutGrades.isEnabled = false // disable swipe
GlobalScope.launch(Dispatchers.Default) {
addGrades()

5
app/src/main/res/layouts/fragments/layout/fragment_grades.xml

@ -6,9 +6,10 @@
tools:context=".fragments.GradesFragment">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/refreshLayout_Grades"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/refreshLayout_Grades">
android:background="?themePrimary">
<ScrollView
android:id="@+id/scrollView_Grades"
@ -19,7 +20,7 @@
android:id="@+id/linLayout_Grades"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:orientation="vertical">
<TextView
android:id="@+id/txtView_Loading"

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