New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ViewRootImpl CalledFromWrongThreadException #31
Comments
I'm rewriting a big part of the backend which will hopefully be finished this weekend and which will hopefully take care of that problem. I'll try and do it tonight if possible. |
I use design:23.2.0 Thanks for your quickly response. |
À l'avenir, si c'est plus facile je parle français :) |
Ah super, ça sera plus simple. |
J'espere (et je pense) que j'ai decouvert l'erreur. Demain quand j'ai téléchargé la MAJ vers GitHub, si tu la testes et elle marche pas quand même, dis-moi et je vais essayer de la réparer. Mais comme j'ai dit, je crois bien que je l'ai réparée. Pour l'autre erreur, quelle version d'Android utilises-tu ? |
Je suis sur un Nexus 5X donc Android 6.0.1 Alors je voulais compilé avec le numéro de version de ta lib, mais ca ne marche qu'avec le "+" Et là avec "com.turingtechnologies.materialscrollbar:lib:8.+" j'ai toujours l'erreur: Par contre plus de problème avec l'indicator, sauf à sa création où il est affiché tout en haut tant qu'on ne scroll pas. C'est normal ? |
Alors j'ai téléchargé hier une nouvelle version vers GitHub mais j'ai découvert qu'il y avait des erreurs dedans (par exemple avec l'indicateur). Change le gradle à "8.0.0" et ça va marcher. Cet après-midi je vais télécharger les correctifs. |
Toujours le "CalledFromWrongThreadException" :/ |
Si tu peux, teste-le et dis-moi si c'est meilleur maintenant. |
Alors, désolé qu'il y a si beaucoup de problèmes :/ C'est frustrant pour moi aussi :P Est-ce que tu l'ajoutes avec XML ou code ? |
Pardon de répondre que maintenant. |
À moi il me semble que tu essais d'ajouter l'indicateur avant que le recyclerView ne soit chargé/attaché à la fenêtre, oui ? Sinon, quand exactement invoques-tu "addIndicator()" ? |
Puis-je voir aussi le onCreate pour l'activité qui contient le fragment ? |
J'ai verifié qu'on peut utiliser le ScrollBar avec des fragments. Il n'y a rien d'autre auquel je peux penser qui provoquerait cette erreur. Si tu voudrais, vous pouvez m'envoyer ton projet en privé et je peux le debugger. Désolé que je ne pouvais pas trouver l'erreur... Mon adresse courriel c'est wynneplaga@gmail.com |
J'aimerais bien, mais je n'ai pas eu l'autorisation de t'envoyer mon projet :/ |
-----------------------------------------------------------------------------
Home Page : WWW.MasterEffect.Ir
From: Turing Technologies <notifications@github.com>
To: turing-tech/MaterialScrollBar <MaterialScrollBar@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Sent: Monday, December 19, 2016 1:51 AM
Subject: Re: [turing-tech/MaterialScrollBar] ViewRootImpl CalledFromWrongThreadException (#31)
Closed #31.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi,
I randomly got a force close in my application.
In my fragment:
recyclerView.setAdapter(adapter);
TouchScrollBar touchScrollBar = (TouchScrollBar) view.findViewById(R.id.touch_scroll_bar);
touchScrollBar.addIndicator(new CustomIndicator(getContext()), true);
(without xml is identically)
An idea ?
The text was updated successfully, but these errors were encountered: