fix background in fragment_grades
continuous-integration/drone/push Build is passing Details

* disable swipe in fragment_grades
This commit is contained in:
Jannik 2020-08-14 21:57:09 +02:00
parent 9d7504bbaf
commit 42d938b0bc
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
2 changed files with 4 additions and 2 deletions

View File

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

View File

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