3D形状のボタンを作成したいのですが、形状で試してみましたがうまくいきませんでした。以下のコードが使用されました。結果期待してます
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line" >
<!-- Specify a gradient for the background -->
<gradient
android:angle="45"
android:centerColor="#00000000"
android:centerX="0.75"
android:endColor="#00000000"
android:startColor="#55000066" />
<corners
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadius="10dp" />
<stroke
android:dashGap="0dp"
android:dashWidth="10dp"
android:width="50dp"
android:color="#303030" />
あんなボタンを作りたい androidであんなボタンを持ってくる方法。貴重なアイデアをください。