我試圖陰影文本視圖像這樣: 文本視圖
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="top|center"
android:background="@drawable/gradient">
<TextView
android:layout_width="300dp"
android:layout_height="50dp"
android:text="@string/ph"
style="@style/TextBox"
android:textSize="16sp"/>
</LinearLayout>
gradient.xml
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle">
<gradient
android:endColor="#FFFFFF"
android:startColor="#FFFFFF"
android:type="linear"
android:centerColor="#E3F2FD"
android:angle="90">
</gradient>
</shape>
</item>
此代碼不能得到我的設計。是否有可能像我的照片textview?
http://stackoverflow.com/questions/2486936/android-shadow-on-text –
試圖在9batch圖像9修補圖像 –
是tried.but這樣做不能得到明確這樣的.. – RamChithra