cache more pages in Pager
This commit is contained in:
parent
818e7cd6b6
commit
75251e3870
2 changed files with 3 additions and 1 deletions
|
@ -190,6 +190,7 @@ class MainActivity : NoSplashAppCompatActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
main_pager.adapter = pageAdapter
|
main_pager.adapter = pageAdapter
|
||||||
|
main_pager.offscreenPageLimit = 8 // This may cause more memory consumption
|
||||||
checkPluginPreferences(main_pager)
|
checkPluginPreferences(main_pager)
|
||||||
|
|
||||||
// Tabs
|
// Tabs
|
||||||
|
|
|
@ -43,7 +43,8 @@
|
||||||
android:id="@+id/overview_pumpstatuslayout"
|
android:id="@+id/overview_pumpstatuslayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/overview_pumpstatus"
|
android:id="@+id/overview_pumpstatus"
|
||||||
|
|
Loading…
Reference in a new issue