Android自定义布局(sneekbar)
我需要帮助,使一个自定义布局类似于这张照片在android工作室Android自定义布局(sneekbar),android,xml,android-layout,android-studio,Android,Xml,Android Layout,Android Studio,我需要帮助,使一个自定义布局类似于这张照片在android工作室 下面的代码给出了相同的布局,但我建议您自己试试 <?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:layo
下面的代码给出了相同的布局,但我建议您自己试试
<?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>
图片在哪里?我刚刚编辑了他的问题你的问题是什么?到目前为止你做了什么?我做不到分级栏,就像我建议你试试你自己
他不会,因为你用勺子喂他。类似的问题永远不应该得到回答。