match_parent yüksekliği çocukla kaydırma olamazdı, ne bekliyoruz geçerli:NestedScrollView böyle NestedScrollView olan bir fragman ile NonSwipeableViewPager uygulamak
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="match_parent"
layout="@layout/header" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="16dp"
android:src="@drawable/ic_up" />
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text 1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text 2" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
Ama kaydırma edemedi Ben Bu LinearLayout android:layout_height="wrap_content"
olmalıdır
scrollview biz match_parent yüksekliği ile bunu yapmak için herhangi bir yolu yok bu yüzden çocuklarının boy yaptığımız, –
@TimCastelijns wrap_content gerekiyor? –
Bu bir scrollviewin nasıl çalıştığıdır, scrollview'i ebeveynle eşleşecek şekilde ayarlayabilirsin, ama scrollview'in çocuğunu değil, içeriği kaydırması gerekiyor –