0
A
回答
1
下面的代碼給出了這樣的結果:
可以使用一些調整,但基本是有。
- 隔板是
View
對象具有寬度(或高度,這取決於 上取向)的1像素。 - 小綠箭頭(這裏用 表示一個正方形)是
Compound Drawable
屬於TextView
顯示 號碼。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/number" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableLeft="@drawable/smallsquare" android:drawablePadding="8dp" android:text="1-234-567-890" android:textColor="#FFFF" android:textSize="20sp" android:textStyle="bold"/> <TextView android:id="@+id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="3dp" android:layout_toLeftOf="@+id/separator_vert" android:text="13 mins ago" android:layout_below="@+id/number"/> <View android:id="@+id/separator_vert" android:layout_width="1px" android:layout_height="0dp" android:layout_margin="2dp" android:layout_alignParentTop="true" android:layout_toLeftOf="@+id/phoneicon" android:layout_above="@+id/separator_horz" android:background="#FFAAAAAA"/> <View android:id="@+id/separator_horz" android:layout_width="0dp" android:layout_height="1px" android:layout_margin="2dp" android:layout_below="@+id/time" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:background="#FFAAAAAA"/> <ImageView android:id="@+id/phoneicon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_margin="5dp" android:src="@drawable/mediumsquare"/> </RelativeLayout>
相關問題
- 1. 如何在Android ImageView中設置圖像
- 2. 如何在Android中設置圖像
- 3. Android - 如何設置壁紙圖像?
- 4. Android - 如何設置壁紙圖像
- 5. 如何使用paintText設置android中圖像的位置?
- 6. 如何在Android中的ListView中的imageview中設置圖像?
- 7. 如何在Android上的Glide中設置位圖圖像
- 8. 如何在android中設置imageview中的圖像?
- 9. 如何在android程序中設置內存中的圖像?
- 10. 如何在按鈕中設置文本中的圖像 - android?
- 11. 如何在Android中的PagerView中設置FullWidth圖像?
- 12. 在Android中如何將圖像設置爲不同活動的圖像視圖?
- 13. 如何在Android的圖像視圖或按鈕中設置和存儲圖像?
- 14. Android設置listView列表中的圖像
- 15. 如何在Android中設置邊框和旋轉位圖圖像?
- 16. 如何在android中將視圖設置爲圖像背景?
- 17. 如何在Android視圖中動態設置圖像
- 18. Android中的AsyncTask:如何設置背景圖像的ProgressBar?
- 19. 如何在android的webview中的imageview上設置圖像
- 20. 如何從圖像設置圖標(圖庫中的圖像)
- 21. IOS - 如何設置圖像中的UIView
- 22. 我如何設置的setBackground圖像中的Android使用S3圖像URL
- 23. Android ImageView設置圖像源
- 24. 覆蓋android中的兩個圖像來設置圖像視圖
- 25. 如何將背景圖像設置爲android中的textview?
- 26. Android - 如何設置以屏幕爲中心的前景圖像?
- 27. 如何在JSON/Android中設置圖像的URI
- 28. 如何在Android的Imageview中設置BLOB圖像?
- 29. 如何設置Android中特定文件的imageview圖像?
- 30. 如何在適合50%屏幕的android中設置圖像
由於這是我想設計。謝謝 – 2012-03-13 13:01:48