标题看起来可能有些不好理解,我下面放上几张我们常用的手机QQ的截图,一看就知道是什么意思
从截图可以了解我要解决的是什么问题了,下面是我模仿QQ做的一个APP截图:
首先是XML布局文件按钮部分的代码,我是用用整个相对布局作为按钮,设置单击事件的:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:background="#ffffff"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/campuscard"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:id="@+id/userimg"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp" />
<TextView
android:id="@+id/text_user"
android:layout_widt