我使用cardview
放置了我想要的图像,请在这里回复。
答案 0 :(得分:1)
答案 1 :(得分:-1)
**Use code like below and you will achieve it**
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:tools="http://schemas.android.com/tools"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/card_view_notification"
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
card_view:cardCornerRadius="20dp"
card_view:contentPadding="7dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iconLead"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/logo" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iconLead1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:src="@drawable/logo1" />
<ImageView
android:id="@+id/iconLead2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:src="@drawable/logo2" />
<ImageView
android:id="@+id/iconLead3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:src="@drawable/log3o" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>