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"/>
這種垂直的就不說了 ,大家都懂的
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
新聞熱點
疑難解答