如何使用渐变android制作3D效果

时间:2014-02-21 16:25:23

标签: android xml gradient effects

我正在尝试使用渐变添加3d效果作为TableRow的背景,有没有办法让它看起来像楼梯3D效果:

3d effect stairs

并希望我的文字看起来就像放在每个楼梯上的一个盒子。

目前我正在使用:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <gradient
        android:startColor="#77F3AE1B"
        android:centerColor="#77F3AE1B"
        android:endColor="#77AA893C"
        android:angle="270"/>
    <padding android:left="4dp"
        android:right="4dp" />  
    <corners android:radius="4dp" />
</shape>

但是看起来并不像3d效果,我尝试使用图像背景,但是有很多问题bcs的屏幕尺寸和方向!

0 个答案:

没有答案