Pivotal Android Tabs
We have published a simple Android project that illustrates how to use tabs in an Android app: TabActivity
, TabHost
, TabWidget
, and android:divider
. Thank you Pivot Ryan, the original author, for taking the time to write and open source this. Check it out, fork it, and enjoy — https://github.com/pivotal/Pivotal-Android-Tabs
See Hex’d Colors
IntelliJ trick: in a colors.xml
file, place your cursor on a hex value and hold down Shift
. You’ll see a large preview of the color.
Colors and States
(Repost from the 6/22/2011 Standup blog): You can use a selector drawable to set Android text color for the various states (focused, selected, etc.) using a drawable xml file. IntelliJ will complain and say this is invalid syntax but the application will use the file as you would expect. This only seems to work for the android:textColor
attribute in TextViews
.
About the Author