-
as seen on Geeks with Blogs
- Search for 'Geeks with Blogs'
This post is based on the Tab Layout  tutorial on the Android developers site, with some modifications. I wanted to get rid of the icons (they take up too much screen real estate), and modify the fonts on the tabs.
First, create a new Android project, with an Activity called TabWidget. Then, create…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
when i use the TabActivity in my application it display the error,In below final TabHost tabHost = getTabHost();
tabHost.addTab(tabHost.newTabSpec("tab1")
.setIndicator("tab1")
.setContent(this));
tabHost.addTab(tabHost.newTabSpec("tab2")
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've tried the Tab Layout example, and I've also fixed the few typos in the example (and added all the activities to the manifest). However, when I run it on the emulator I get a NullPointerException on the first line that says
tabHost.addTab(spec);
So my question, of course, is. What is wrong…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to scale my TabWidget background images so they maintain aspect ratio.
I am using a TabHost with a TabWidget. I am then using setBackgroundDrawable to set the images.
I found a close answer here - Background in tab widget ignore scaling. However, I'm not sure just where to add the new Drawable…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have been attempting to implement the 'advanced' tabwidget example from google. But, when it tries to call tabHost.addTab(spec); I get a stack trace from the debugger. Sorry, I don't have the stack trace here, but I'm wondering if others have had this same issue (as this code had a number of typo's…
>>> More