Guide: Developing on ChromeOS (Part 6)

Debugging with Android Runtime for Chrome

Dynamic Dates with Java

I made a new change for build 48 of Fusion to show the date portion based on time. The difficulty is making it all work with all the different time zones and locales. 24 hours isn’t always a day because of daylight savings time. So I have to use Calendar. Here’s the static code: public... Continue Reading →

ViewTitleIndicator playing nice with Themes

Build 70 incorporates ViewTitleIndicator by default now. The problem with the title indicators is that they don’t natively play nice with themes. Here’s how I fixed it: TypedValue tvBarTabStyle = new TypedValue(); int actionBarStyleResId; int backgroundResId; int actionBarTabTextStyleResId; int actionBarTabStyleResId; if (VERSION.SDK_INT >= 14) { backgroundResId = V14.getBackgroundStackedResId(); actionBarStyleResId = V11.getActionBarStyleResId(); actionBarTabTextStyleResId = V11 .getActionBarTabTextStyleResId();... Continue Reading →

Blog at

Up ↑