-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
图片在哪里..? –
我刚编辑他的问题 –
你的问题是什么? –