Wednesday, May 28, 2014

custom shapes

shadow for your views using custom shapes





It’s easy to create a shadow for your views using custom shapes.
The idea it’s that you create the shadow layer as background first and the content layers on top of that.
But you also need to displace the layers in order to create the shadow effect.
For example:
1
2
3
4
5
6
7
8
9
10
11
12
13
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <layer-list>
            <item android:bottom="4dp" android:bottom="4dp">

                <!-- SHADOW LAYER -->
            </item>
            <item android:left="4dp" android:top="4dp">
                <!-- CONTENT LAYER-->
            </item>
        </layer-list>
    </item>
</selector>
You can control the shadow direction n and size through the top, bottom, right and leftparameters.

Tuesday, November 27, 2012

Android Resolution ...................

Hi,
 if cannot see the following details please go through the doc attached
Singapore
Default O.S
Resolution
Samsung GalaxyS3                       
4.0  Ice Cream Sandwich
xhdpi 
Galaxy Note     
4.0 ICS
xhdpi 
HTC One X                                
4.0 ICS
xhdpi 
LG Optimus 4X HD
4.0 ICS
xhdpi 
Thailand


Samsung GTI9100 Galaxy S II
2.3
hdpi
SonyEricsson LT15i Xperia Arc s 
2.3
hdpi
.Samsung GTN7000 Galaxy Note         -
4.0
Xhdpi
Samsung GTS5830 Galaxy Ace
2.2
mdpi
Samsung  Galaxy Tab 10.1                   
4.0
xhdpi
. Indonesia


Samsung GalaxyS3                       
4.0
xhdpi
Sony Xperia S                 
2.3
xhdpi
HTC One X                                
4.0
xhdpi
Samsung GTI9100 Galaxy S II
2.3
hdpi
Samsung Galaxy Nexus  s
4.0
hdpi
Malaysia


Samsung Galaxy S3
4.0
xhdpi
Samsung Galaxy S2
2.3
hdpi
Galaxy Note
4.0
xhdpi
UAE


Galaxy Note
4.0
xhdpi
Samsung Galaxy S3
4.0
xhdpi
Galaxy S 4G    
2.2
mdpi
HTC One S
4.0
hdpi
HTC One V


HTC One X
4.0
xhdpi
MOTOROLA ATRIX™
2.2
mdpi
Xperia™ T
4.0
xhdpi
Xperia™ TX
4.0
xhdpi
Xperia™ miro
2.2
ldpi
LG Viper 4G LTE
2.3
hdpi
LG Lucid
2.3
hdpi
LG Spectrum 
4.0
xhdpi