티스토리 뷰
1. Linear Gradient
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#FFFF00" android:endColor="#FFFFFF" android:angle="270"/>
<corners android:radius="0dp" />
</shape>
<gradient android:startColor="#FFFF00" android:endColor="#FFFFFF" android:angle="270"/>
<corners android:radius="0dp" />
</shape>
2. Radial Gradient
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient android:type="radial"
android:startColor="#ff0000"
android:endColor="#ffff00"
android:gradientRadius="300"
android:centerX="0.5"
android:centerY="0.7"/>
</shape>
<gradient android:type="radial"
android:startColor="#ff0000"
android:endColor="#ffff00"
android:gradientRadius="300"
android:centerX="0.5"
android:centerY="0.7"/>
</shape>
3. Line
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line">
<stroke android:width="1dp" android:color="#FF000000"
android:dashWidth="1dp" android:dashGap="2dp" />
<size android:height="5dp" />
</shape>
<stroke android:width="1dp" android:color="#FF000000"
android:dashWidth="1dp" android:dashGap="2dp" />
<size android:height="5dp" />
</shape>
4. Oval
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<solid android:color="#00000000"/>
<stroke android:width="4dp" android:color="#990000FF"
android:dashWidth="4dp" android:dashGap="2dp" />
<padding android:left="7dp" android:top="7dp"
android:right="7dp" android:bottom="7dp" />
<corners android:radius="4dp" />
</shape>
<solid android:color="#00000000"/>
<stroke android:width="4dp" android:color="#990000FF"
android:dashWidth="4dp" android:dashGap="2dp" />
<padding android:left="7dp" android:top="7dp"
android:right="7dp" android:bottom="7dp" />
<corners android:radius="4dp" />
</shape>
5. Ring & Sweep Gradient
<shape android:shape="ring" xmlns:android="http://schemas.android.com/apk/res/android"
android:innerRadiusRatio="3"
android:thicknessRatio="8"
android:useLevel="false">
<size android:width="48dip"
android:height="48dip" />
<gradient android:type="sweep"
android:useLevel="false"
android:startColor="#4c737373"
android:centerColor="#4c737373"
android:centerY="0.50"
android:endColor="#ffffd300" />
</shape>
android:innerRadiusRatio="3"
android:thicknessRatio="8"
android:useLevel="false">
<size android:width="48dip"
android:height="48dip" />
<gradient android:type="sweep"
android:useLevel="false"
android:startColor="#4c737373"
android:centerColor="#4c737373"
android:centerY="0.50"
android:endColor="#ffffd300" />
</shape>
[원본] http://escomic.net/217
[출처] http://escomic.net/
[작성자] 유야
'Development' 카테고리의 다른 글
[Android] INSTALL_FAILED_INSUFFICIENT_STORAGE (용량부족 오류) (0) | 2010.07.13 |
---|---|
[Android] code상에서 xml shape 적용시키기 (0) | 2010.07.09 |
[Android] 특정언어 키패드 띄우기 (0) | 2010.07.06 |
[Android] 물반사효과 (0) | 2010.07.06 |
[Android] ScrollView 의 이동처리 (0) | 2010.07.06 |
댓글
최근에 올라온 글
글 보관함
- Total
- Today
- Yesterday