-6
A
回答
0
以下是該給你相同的佈局的代碼,但我建議你試試你的自我
<?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_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
app:cardBackgroundColor="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:src="@drawable/trophy1" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="Segual Hotel Cox's bazar"
android:textColor="#2D32FF"
android:textSize="15sp" />
<RatingBar
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Start From :" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="2500BDT-2500BDT" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/lable" />
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
+1
'我建議你嘗試一下你的自我'他不會,因爲你用勺子喂他。類似的問題永遠不應該回答。 –
相關問題
- 1. 自定義Android佈局
- 2. 自定義AutoCompleteTextView佈局android
- 3. Android - 自定義AutoCompleteTextView佈局
- 4. Android自定義ListViewItem佈局
- 5. 自定義佈局的Android
- 6. Android自定義佈局
- 7. Android - 自定義佈局Inflater
- 8. Android ListView自定義佈局
- 9. Android - android widget的自定義佈局
- 10. Android佈局設計特定自定義
- 11. 自定義佈局
- 12. 創建自定義Android鍵盤佈局
- 13. android創建自定義形狀佈局
- 14. Android中的自定義佈局
- 15. 自定義佈局有了Android ViewPager
- 16. 自定義默認的Android佈局
- 17. 自定義視圖的Android佈局
- 18. Android佈局與自定義視圖
- 19. Android ListView自定義行佈局
- 20. Android自定義佈局包裝內容
- 21. ActionBar的Android自定義佈局
- 22. android搜索:自定義建議佈局
- 23. 在android中的自定義佈局
- 24. Android - 自定義刷卡刷新佈局
- 25. 在android中創建自定義佈局
- 26. Android自定義佈局拋出android.view.InflateException
- 27. android使自定義的佈局形狀
- 28. Android PreferenceFragmentCompat自定義佈局list_container錯誤
- 29. Android DialogueFragment設置自定義佈局
- 30. 自定義鍵盤佈局的Android
圖片在哪裏..? –
我剛編輯他的問題 –
你的問題是什麼? –