Forcing an EditText to accept a number value from a certain range entails the use of filters using the InputFilter class. I created a custom made class that lets you set an EditText to accept only values between a minimum and maximum value.

Here is the class.

To use the class, do it like this which sets an EditText to accept any number between 1 and 100.

There! Now you should be able to have your EditText accept only your desired values. Just be sure you set your EditText widget to accept only numbers.

This is a Sponsored post written by me on behalf of topherligot for SocialSpark. All opinions are 100% mine.

It is such a wonder how one website can actually make you earn big bucks. Making money online is not something new. There are many ways to do so but I believe the big bucks always comes down to marketing products.

Through a single page in your website, it can be all what it takes to make money online and grow your business. Learn how to use the most powerful social media website that takes advantage of the power of social networking to increase sales, profits and success.

Try to considering getting an exclusive free step by step blueprint by Wealthy Web Marketing that explains from start to finish what you need to do to start up your business.

The guide comes with videos and photos to help you give a better visualization that can be easily understood by newbies, beginners and even non technical people.

There may be no shortcuts when trying to make money online, but there are ways to help shorten that process and doing it online is better, faster, quicker and your market exposure is wider when you target audiences online.

I recommend you take advantage by getting the free e-book and software and use it to your advantage to starting earning big and make money online.

Changing themes and styles of Android widgets require you to modify its drawable images. For the Spinner widget, I found it necessary to have the height changed because the default is just too fat.

You need to create your own 9 patch images or you can get the existing one in Android‘s and modify it. A quicker way though is to make use of this great article by Kostya Vasilyev on compact Spinner widgets.

There are already 9 patch images for you to use. If you want it to have a different color then you will have to modify it yourself. But at least there is already a thin image ready for you to use.

This is a screenshot taken from his site showing the slim spinners side-by-side with the regular ones in an HTC Hero smartphone.

And these are his 9 patch images.

To use the images in an XML file, place them in a selector XML file like this and use it in the Spinner tag.

There you have it. Now you have slimmer Spinner widgets for your app! Just make sure when you save these images from my post you replace the -9 in the filename to .9 because all 9 patch images should end with .9.png.

Related Posts Plugin for WordPress, Blogger...