Android中加入水平線和垂直線


1.加入水平線

<View 
android:layout_height="0.5dip"
android:background="#686868"
android:layout_width="match_parent"/>

2.加入垂直線

<View 
android:layout_height="match_parent"
android:background="#686868"
android:layout_width="0.5dip"/>

3.其它 當然,你要像以下這樣寫也是沒有問題的

<TextView 
android:layout_width="fill_parent" 
android:layout_height="0.5dp"  
android:background="#686868"/>

這樣的垂直的就不說了 。大家都懂的


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM