15 Oct 2012

Font compatibility for android devices and tablets.

Create Following all folders in Res folder of your Project.


       values-ldpi
       values-mdpi
       values-hdpi
       values-large-mdpi (This is for 7" tablets)
       values-xlarge (This is for 10" tablets)

       Now create xml file in each folder abs__dimens.xml and Give different text size in  <dimen></dimen>

       <?xml version="1.0" encoding="utf-8"?>
       <resources>
              <dimen name="txt_nm">10dip</dimen>
       </resources> 

       Now set this in to text view property-text size
       android:textSize="@dimen/txt_nm" />

       It will work fine for all Android devices and Tablets, Hop It will help you some one !

I will be happy if you will provide your feedback or follow this blog. Any suggestion and help will be appreciated.
Thank you :)
       

No comments:

Post a Comment