스크롤 나는 다음과 같은 레이아웃이 있습니다ScrollView가 튀어 나오지 않습니다. 천천히
<?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"
android:layout_marginTop="?android:attr/actionBarSize"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/datatransfer_measure_list_layout_no_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/datatransfer_measure_list_textview_no_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp"
android:layout_marginTop="20dp"
android:gravity="center"
android:padding="5dp"
android:text="@string/measure_data_empty"
android:textColor="@color/textcolorprimary"
android:textSize="18sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="center"
android:layout_marginBottom="20dp"
android:layout_marginEnd="20dp"
android:layout_marginStart="20dp"
android:background="@android:color/darker_gray"
android:importantForAccessibility="no" />
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/datatransfer_measure_list_row_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:clipToPadding="false"
android:importantForAccessibility="no"
android:paddingBottom="5dp"
android:textColor="@color/textcolorprimary" />
<Button
android:id="@+id/datatransfer_measure_list_button_send"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp"
android:background="@drawable/custom_button_ok"
android:gravity="center"
android:padding="10dp"
android:text="@string/common_save"
android:textColor="@drawable/custom_button_positive_text_color"
android:textSize="20sp" />
<Button
android:id="@+id/datatransfer_measure_list_button_reset"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="20dp"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp"
android:background="@drawable/custom_button_cancel"
android:gravity="center"
android:padding="10dp"
android:text="@string/common_cancel"
android:textColor="@drawable/custom_button_negative_text_color"
android:textSize="20sp" />
</LinearLayout>
</ScrollView>
나는 기본적으로이 레이아웃의 세 부분이 있습니다. 첫 번째는 데이터가 설정되지 않았는지 보여주기위한 텍스트 뷰만을 포함하는 레이아웃입니다. 데이터가있을 때 보이지 않게됩니다.
두 번째 부분은 일부 데이터가 설정되어있을 때만 표시되는 내 recyclerview입니다.
마지막 부분은 두 개의 버튼입니다. 이 레이아웃의 문제점은 무엇입니까? 스크롤 속도가 너무 느립니다. 나는 그와 같은 것을 의미하지 않는다. 작은 부분을 스크롤 할 수 있습니다. 그것은 내 scrollviews 어디서 볼 수 있도록 자동으로 스크롤 할 수있는보기가 아닙니다. 이 레이아웃과 다른 점과 왜 다른 레이아웃에서 스크롤보기가 다른지 알 수 없습니다. 거기에 뭔가 scrollview 던지기 또는 그런 것을 차단 무엇입니까?
그게 전부입니다. 고맙습니다! – Mulgard