私はリサイクルビューを使ってさまざまなコンテンツを読み込んでいます。私はチャットアプリに見られるような振る舞いのようなチャットをしたい。項目は上から下に配置されていますが、要素が大きい場合は、新しいメッセージが下部に添付され、ユーザーは下部に向かってスクロールする必要はありません。リサイクラーBehaivourのようなチャットで見る
私が試してみました:必要な動作を達成するために
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.activity_comments_recycler_view);
LinearLayoutManager manager = LinearLayoutManager(this);
manager.setStackFromEnd(true);
manager.setReverseLayout(true);
recyclerView.setLayoutManager(manager);
<RecyclerView
android:id="@+id/activity_comments_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
まだできません。どのように私はこれを修正します。ありがとう。