J'ai ce vertical ScrollView
avec un titre, sous-titre, texte de synthèse, un bouton et un pied de page.Android: ScrollView ne défile pas après l'ajout de rembourrage bas/haut
Tout a fonctionné jusqu'à ce que j'ajouté à <ScrollView>
:
android:paddingTop="xxxx"
android:paddingBottom="xxx"
android:clipToPadding="false"
Après cela, la page ne défile pas je peux voir le pied de page a été coupée. Quelqu'un peut-il m'aider avec ça sil-vous-plait? Merci!!!!
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:fillViewport="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
android:paddingTop="xxxx"
android:paddingBottom="xxx"
android:clipToPadding="false">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/header"
android:text="header"
android:gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/subheader"
android:layout_below="@+id/header"
android:letterSpacing="-0.04"
android:layout_marginTop="xxx"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/button"
android:layout_below="@id/button"
android:layout_marginTop="xxx"
android:layout_width="xxx"
android:layout_height="xxx"/>
<TextView
android:id="@+id/summary"
android:layout_below="@+id/button"
android:layout_marginTop="xxxx"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/footer"
android:layout_below="@+id/summary"
android:layout_marginTop="xxxx"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RelativeLayout>
je ne peux poster l'image comme celui-ci. La chaîne de résumé peut être très longue, nous devons donc faire défiler toute la page.
Pouvez-vous s'il vous plaît poster une image de votre résultat attendu? – FAT
@FerdousAhamed désolé, je ne peux pas poster de capture d'écran, mais j'ai posté une image pour expliquer. – Zip
u havent fermé la balise scrollview o.O – Rico