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
Support appcompat-v7 #1446
Comments
Hello @erd , so I guess these fixes to the v7 ActionBarActivity will only be available in 3.0 of Robolectic and not in 2.4? |
Yes, only 3.0. |
The old depricated ActionbarDrawerToggle used android.R.attr.homeAsUpIndicator instead of R.id.home
|
Thanks a ton for documenting a fix @nenick !! |
Sorry, I don't really get it guys.. Has any |
ActionBarActivity and Robolectric works together. Here is a basic example https://github.com/robolectric/robolectric-samples/tree/master/android-appcompat-v7 |
@karlicoss Yes, it should work. Please open issues for anything you find in appcompat that doesn't work as you'd expect. |
Thanks for the link guys, I managed to localize the problem. I was getting weird FileNotFoundExceptiions while inflating the layout for ActionBarActivity, turns out, inflating is ok, the problem is rather in the |
FYI - I filed a new issue re: ActionBarActivity with 3.0-SNAPSHOT: #1636 |
It worked for me after updating the following in the build.gradle file: } android { |
@karlicoss I'm having the same problem with FileNotFoundException when using |
@hidroh not really. Didn't have much time to investigate, so I just inlined this layout. I have a separate flavor for robolectric tests in my project, so it didn't affect the production code, just some copy-pasting. It was the only test that caused crashes, so it's not that bad (at least, yet). |
No description provided.
The text was updated successfully, but these errors were encountered: