Do you want to accomplish a search form that looks like this?

The only possible way is to use RelativeLayout. I had no such luck with using a LinearLayout and it seems that it cannot be done using that so RelativeLayout is the way to go.

Check the XML code below.

What if the divider lines of your ListView look like this? You wonder why when you clearly specified in your XML that the divider height should only be 1px. So why is it thick in alternating rows?

I am not saying this is the only solution but there is a big chance that this is the one. Check your AndroidManifest.xml and see if you have set a minimum and maximum version SDK required. If not, then add it. The divider height for your ListView will all be 1px.

Check the code below.

On a side note, this is also the solution for rating stars that are not displayed in crisp detail instead showing you blurred edges.

At some point in your TabHost, you may want to call some methods found in your Activity classes. You can actually but not by instantiating the Activity class.

Using the LocalActivityManager class, you can get a reference to the activity object using this code.

From there, you can call the method. Just make sure it is set to public ;). Oh yeah, be sure you have your tag variables as global so you can get access to those spec tabs anywhere, anytime in case you want to gain access to your Activity classes.

Related Posts Plugin for WordPress, Blogger...