<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android: orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android: orientation="vertical">
<android.support.v7.widget.RecyclerView
android: id="@+id/recyclerView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="false"
app:layoutManager="LinearLayoutManager"
tools:listitem="@layout/recyclerItem1"/>
<android.support.v7.widget.RecyclerView
android: id="@+id/recyclerView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="false"
app:layoutManager="LinearLayoutManager"
tools:listitem="@layout/recyclerItem2"/>
</LinearLayout>
<!--Other Layouts...-->
</LinearLayout>
</ScrollView>
I would like to display all items without scrolling through layout like this.
For Android 6.0 only, all items may or may not appear without scrolling.
I don't know the critical difference between what appears and what doesn't, but the same list combination always reproduces the same symptom every time.
Since I use two RecyclerViews, I think there may be problems with calculating the height and the order of calculating the parent's layout. Do you have any ideas about where I can solve this problem?
Thank you for your cooperation.
Android Studio: 2.2.2 Library version: com.android.support:recyclingview-v7:25.0.1
android android-layout
Even if I set the height of RecyclerView to wrap_content myself, there was a phenomenon in which there was not enough space for all child views.
When I changed ScrollView to Android.support.v4.widget.NestedScrollView, it worked as expected.
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
581 PHP ssh2_scp_send fails to send files as intended
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.