Devlight / Devlight/InfiniteCycleViewPager
1. adapter.notifyDataSetChanged is not working for all fragments adapter . 2. Issue in setOffscreenPageLimit.
- Lingua principale
- Java
- Stelle
- 5.7k
- Fork
- 821
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**1.** adapter.notifyDataSetChanged() is not working for the active fragments which are viewing. Except the active fragments other fragments dataSet are changed. So there is problem in notifyDataSetChanged() .
**2.** We can even setOffScreenPageLimit to 1 because default is two.
// YOUR CODE
public void setOffscreenPageLimit(int limit) {
super.setOffscreenPageLimit(2);
}
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by locating the adapter's notifyDataSetChanged() handling and the setOffscreenPageLimit(int limit) entry point shown in the issue. Reproduce the behavior with active and inactive fragments, then verify that visible fragments refresh and that a limit of 1 is accepted and applied as intended.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, java
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100