หน้าเว็บ

วันพฤหัสบดีที่ 9 กุมภาพันธ์ พ.ศ. 2555

set font shadow

  • android:shadowColor Shadow color in the same format as textColor.
  • android:shadowRadius Radius of the shadow specified as a floating point number.
  • android:shadowDx The shadow’s horizontal offset specified as a floating point number.
  • android:shadowDy The shadow’s vertical offset specified as a floating point number.
The floating point numbers don’t have a specific unit – they are merely arbitrary factors.
  1. <TextView  
  2.         android:layout_width="fill_parent"  
  3.         android:layout_height="wrap_content"  
  4.         android:text="A light blue shadow."  
  5.         android:shadowColor="#00ccff"  
  6.         android:shadowRadius="1.5"  
  7.         android:shadowDx="1"  
  8.         android:shadowDy="1"  
  9.         />  


ไม่มีความคิดเห็น:

แสดงความคิดเห็น