<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
------------------------------------------------------------------------------
android:descendantFocusability="blocksDescendants"
------------------------------------------------------------------------------
>
<ImageView
android:id="@+id/image_library"
android:layout_width="match_parent"
android:layout_height="140dp"
android:background="@drawable/color_white_yellow"/>
<TextView
android:id="@+id/text_library"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="大众书局"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:textColor="@color/white"/>
<TextView
android:id="@+id/text_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/text_library"
android:text="东城汇 | 仙林"
android:layout_centerHorizontal="true"
android:textSize="15sp"
android:textColor="@color/white"/>
<ImageButton
android:id="@+id/btn_star"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_margin="10dp"/>
</RelativeLayout>
解决ListView的OnItemClickListener无效问题
最新推荐文章于 2018-06-05 18:07:25 发布