歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> Linux編程

Android ListView 分割線漸變色和幾種顏色值定義

Android ListView 分割線漸變色和幾種顏色值定義:

橫線漸變色

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <shape xmlns:android="http://schemas.android.com/apk/res/android"  
  3.     android:shape="rectangle">  
  4.         <gradient   
  5.             android:startColor="#ff111111"   
  6.             android:centerColor="#ffefefef"  
  7.             android:endColor="#ff111111"   
  8.             />  
  9. </shape>  

顏色值

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <resources>  
  3.   <color name="white">#ffffffff</color>  
  4.   <color name="black">#ff000000</color>  
  5.   <color name="gray">#ffbbbbbb</color>  
  6.   
  7.   <color name="title_text_color">#99a8b7</color>  
  8.   <color name="dark_line_color">#1b1c24</color>   
  9.   <color name="dark_to_light_one">#262933</color>  
  10.   <color name="dark_to_light_two">#363c46</color>  
  11.   <color name="dark_to_light_three">#3f4a58</color>  
  12.   <color name="dark_to_light_four">#4a5869</color>  
  13.   <color name="dark_to_light_five">#526374</color>  
  14.   <color name="dark_to_light_six">#516273</color>  
  15.   <color name="light_line_color">#5a6d81</color>  
  16.   <color name="digit_color">#4d86a8</color>  
  17.   <color name="transparent_background">#50000000</color>   
  18.   <color name="delete_title">#5c5d5d</color>  
  19.   <color name="content_text">#2f3030</color>  
  20. </resources>  

更多Android相關信息見Android 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=11

Copyright © Linux教程網 All Rights Reserved