May
7
comment Backward compatible break (MenuItem.getActionView) after upgrading to latest build tools & target SDK
I ran into the same exact issue. For now I'm just going to stick with buildToolsVersion 21.1.2 because it doesn't exhibit this problem. Also, I think that changing only the buildToolsVersion can get it to crash without touching the targetSdkVersion but I didn't throughly test all of these possibilities.
Oct
31
awarded Announcer
Jul
12
awarded Critic
Feb
21
accepted How to save Fragment state across orientation changes using FragmentStatePagerAdapter?
Feb
21
answered How to save Fragment state across orientation changes using FragmentStatePagerAdapter?
Jan
19
comment Find out whether the current activity will be task root eventually, after pending finishing activities have disappeared
You could check the value in onPostResume(). developer.android.com/reference/android/app/…() I'm not sure if it will be any different, though.
Jan
18
answered Android gradle define method not found
Oct
9
comment android 4.0, text on the action bar NEVER shows
This approach is pretty straightforward but it's tricky to get the styling just right. I found the style attributes that are used in ABS so it is identical to the native styling. I put it into this gist in case anybody else finds it useful: gist.github.com/marczych/6908324
Jun
5
awarded Popular Question
Jan
2
answered HoloEverywhere xml parsing error/Application crashing
Nov
29
awarded Self-Learner
Apr
24
answered How to: gridview inside a fragment?
Apr
23
asked How to save Fragment state across orientation changes using FragmentStatePagerAdapter?
Apr
21
awarded Editor
Apr
21
revised How do I get six buttons to resize based on the screen size?
deleted 1 characters in body
Apr
21
comment How do I get six buttons to resize based on the screen size?
Sorry about that, I meant GridView instead of GridLayout. Yes you can use a GridView if it's not full screen. You can position and size it just like any other view and all of its children will fill the entire GridView.
Apr
20
answered How do I get six buttons to resize based on the screen size?
Mar
17
comment Swipe to switch tabs on Android, like the YouTube/Google Music apps
A comment at the top of Workspace.java: "ATTENTION: Consider using the 'ViewPager' widget, available in the Android Compatibility Package, r3." It would be nice to see an example of using the ViewPager with ActionBar tabs.
Mar
14
comment How to setOnTouchListener for an item in a ListView
I've had problems with touch events before and the issue was that the parent view was stealing them so the child never saw them. So in your case the ListView is stealing the touch events so the ListView elements never get them. Unfortunately I don't have any suggestions for how to fix it.
Mar
14
comment How to make git mark a deleted and a new file as a file move?
Something that hung me up for a few minutes: if the renamed files and deleted files are not staged for committing then they will show up as a delete and a new file. Once you add them to the staging index it will recognize it as a rename.
1 2