Comments (17)
From the first look it seems likely that the PreferenceFragment does not like the fact that Crouton is adding itself to the Window of the calling Activitiy.
from crouton.
It only happens if the PreferenceActivity is a single pane. On tablets with dual pane it works fine.
from crouton.
What Activity
are you using?
For me its working fine with SherlockPreferenceActivity
.
from crouton.
I'm using a normal PreferenceActivity, which overwrites onBuildHeaders() .
I'll try to create a sample project in the nexz two hours.
Am 13.10.2012 18:06 schrieb "Arvid Gerstmann" [email protected]:
What Activity are you using?
For me its working fine with SherlockPreferenceActivity.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-9405662.
from crouton.
Try
Activity mActivity = this;
Croutons.showText(mActivity, "Test", Style.INFO);
from crouton.
I call it from my PreferenceFragment and use getActivity().
I first thought the reason is that clicking on a header in singlepane opens
a second instance of the PreferenceActivity, which shows the
PreferenceFragment (because it doesn't happen in multipane). But I couldn't
find any prove for that.
I'm currently on my way back home, I'll test when I'm there.
Am 13.10.2012 18:17 schrieb "Arvid Gerstmann" [email protected]:
Try
Activity mActivity = this;Croutons.showText(mActivity, "Test", Style.INFO);
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-9405770.
from crouton.
If I find some time, I'll write a demo app and try to fix the issue.
from crouton.
I just wrote a demo app: https://github.com/gabrielittner/CroutonTest
from crouton.
What I also noticed is, that the missing views are completly removed, the hierarchy viewer doesn't show them anymore after displaying Crouton.
from crouton.
Using the workaround I introduced in issue #24 might help.
from crouton.
Hi,
the workaround does not help, since in my case. No stucking messages in queue. I'm calling the crouton from the underlying activity (SherlockPreferenceActivity) of the Fragment (PreferenceFragment) and it messes up my fragment.
Any other suggestions? Using latest version of Courton (1.8.2).
Since the images of the originial poster aren#t available anymore, i can provide some to show how it looks like on my devices.
from crouton.
Hi @HerrVoennchen, the information you have provided is too vague for me to actually be able to help.
from crouton.
Hier are some screenshots. Based on the description of gabrielittner it appears to be the same problem.
If you need anything else to know, let me know.
from crouton.
If it helps, i created a test project yesterday to reproduce this behavior. See https://github.com/HerrVoennchen/CroutonTest
from crouton.
Yes, the issue can be reproduced with the code you provided.
I'd have to toy around and see what helps solving it.
It might be that the FrameLayout
within the PreferenceActivity
is causing this behaviour.
Have you tried attaching the Crouton to a specific ViewGroup
?
from crouton.
hmm Tested it on test project with ViewGroup.NO:ID and ViewGroup.TEXT_ALIGNMENT_VIEW_START but has no different effect, as far as i can see.
You mentioned the FrameLayout in the PreferenceActivity.. does this layout comes from the android preference view infrastructure?
from crouton.
See README for further info.
from crouton.
Related Issues (20)
- Where can I find the latest jar?
- Not able to use a white background HOT 4
- Show at bottom HOT 1
- Push view down with crouton HOT 1
- Cant use a custom Style for Crouton
- Memory leak in DefaultAnimationsBuilder HOT 3
- memory leak in DefaultAnimationsBuilder.java HOT 5
- not an issue :) but a question about Snackbar. HOT 2
- Croupton not works on android version 16 HOT 2
- Crouton with custom view and match_parent height HOT 2
- No constructors works HOT 1
- How to use in Fragment? HOT 1
- change position HOT 3
- Visual glitch when using a navigation drawer HOT 2
- show crouton below Toolbar HOT 1
- not working... after changing app theme.
- SpannableString or Html tags ? HOT 2
- Crouton disable auto hide HOT 1
- Crouton Not work when app come background nearly after 2 mins HOT 2
- How to use Crouton.makeText in AsyncTask
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crouton.