1
A
回答
1
謝謝你們的答案。
我發現我的UI解決方案是這樣的
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/background_chip"
android:orientation="horizontal"
>
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/rv_profile_pic"
android:layout_width="@dimen/chip_pic_height_width"
android:layout_height="@dimen/chip_pic_height_width"
android:src="@mipmap/ic_account_circle_white_24dp"
app:riv_oval = "true"
android:layout_gravity="center_vertical"/>
<TextView android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:paddingStart="@dimen/padding_half"
android:paddingTop="@dimen/padding_half"
android:paddingBottom="@dimen/padding_half"
android:textColor="@color/app_bg_white"
android:layout_gravity="center_vertical"
style="@style/SecondaryText"/>
<ImageView
android:id="@+id/iv_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_remove_circle_white_24dp"
android:layout_gravity="center_vertical"
android:paddingEnd="@dimen/padding_half"
android:paddingStart="@dimen/padding_half"
/>
</LinearLayout>
MY background_chip lookslike這
<?xml version="1.0" encoding="utf-8"?>
<corners
android:radius="@dimen/chip_pic_radius"/>
<solid
android:color="@color/grey_light"/>
最後它看起來像
招是我給圓角半徑正好一半作爲我的左圖像的寬度。
0
廣場旁邊ImageView的一個TextView。 imageview和textview都應該有帶圓角的背景。您需要與您的UX設計師合作。
textview和圖像視圖應該有相同的高度,以便嘿對齊正確。
相關問題
- 1. 圓角圖像
- 2. 佈局上的圓角
- 3. 圖像的圓角
- 4. CSS - 複合佈局的圓角凹角
- 5. 圓角圓角?
- 6. Javascript圓角圖像
- 7. 畫布上的圖像圓角
- 8. 帶圓角的圖像
- 9. 圖像中的圓角
- 10. 圖像上的圓角
- 11. 設置svg的圓角:圖像
- 12. 帶圓角的css三角形圖像?
- 13. Android的圓角佈局錯誤
- 14. 對話框中的Android圓角佈局
- 15. 自定義的線性佈局,圓角
- 16. 帶圓角的3列布局
- 17. 邊界圖像圓角
- 18. 圖像圓角按鈕JavaFX
- 19. PHP應用圓角圖像
- 20. .NET核心圓角圖像
- 21. Android圖像模糊圓角
- 22. 使用佈局來使圓角對圖像產生影響
- 23. 與圓角XML形狀面膜佈局
- 24. 圓角DataGrid角?
- 25. CSS佈局方法:圓角不是CSS3&圖像沿(不只是角落)
- 26. FabricJS帶圓角的帆布
- 27. 如何設置圖像視角的圓角半徑
- 28. 全局視圖上的圓角
- 29. 圓角
- 30. 圓角