チャットルームアクティビティでは、リサイクルビューアイテムがテキストビューに表示されます。データアイテムが増加すると、テキストビュー。リサイクラビューでデータアイテムが増加すると、リサイクルビューデータがテキストビューに表示される
activty_chatroom.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.boosterfoxindia.foxindtracker.ChatRoomActivity">
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="" -->
<!--android:id="@+id/tvChat"/>-->
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/rvCM"
app:stackFromEnd="true"></android.support.v7.widget.RecyclerView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="7"
android:layout_alignParentBottom="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:padding="0dp"
android:gravity="center"
>
<EditText
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/etMessage"
android:layout_weight="6"
android:background="@drawable/chattextbox"
android:padding="10dp"
android:hint="Enter message..."
android:elevation="2dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/btnSend"
android:background="@drawable/circle"
android:orientation="vertical"
android:gravity="center"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="0dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/ic_send_white_24dp"
android:layout_gravity="center"
android:padding="10dp"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
私はので、私はあなたが変更する必要があり、私は、私を助けてください
あなたitem.xmlを投稿してください.... item.xmlにおけるいくつかの変更がitem.xmlが、私はあなたを取得しdid'nt – sushildlh
必要です。.. –