cache more pages in Pager

This commit is contained in:
Milos Kozak 2020-05-03 01:06:36 +02:00
parent 818e7cd6b6
commit 75251e3870
2 changed files with 3 additions and 1 deletions

View file

@ -190,6 +190,7 @@ class MainActivity : NoSplashAppCompatActivity() {
}
}
main_pager.adapter = pageAdapter
main_pager.offscreenPageLimit = 8 // This may cause more memory consumption
checkPluginPreferences(main_pager)
// Tabs

View file

@ -43,7 +43,8 @@
android:id="@+id/overview_pumpstatuslayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:orientation="horizontal"
android:visibility="gone">
<TextView
android:id="@+id/overview_pumpstatus"