Je voudrais que le scrollview défile, mais pas l'image dans son arrière-plan.Comment mettre un fond d'image fixe pour ScrollView?
2
A
Répondre
2
Un exemple serait:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_image"
android:orientation="vertical">
<ListView
android:id="@+id/category_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cacheColorHint="@android:color/transparent"/>
<TextView
android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
Ici, le LinearLayout détient l'image backround. La liste sera affichée au dessus avec un fond transparent. Pour plus d'informations sur ce sujet jetez un oeil à ListView Backgrounds
6
Ajouter l'image plus haut dans la hiérarchie d'affichage avant de votre cadre de scrollviews
Questions connexes
- 1. UITableView avec un fond d'image fixe
- 2. fond transparent Faux/effets sans positionnement fixe
- 3. Comment mettre un fond d'écran dans un fichier apk?
- 4. image de fond central inférieur fixe
- 5. Comment mettre en fond d'écran dans Android
- 6. Comment mettre en fond d'écran dans Android?
- 7. comment mettre l'image de fond pour la barre de navigation?
- 8. comment mettre l'image PNG avec un fond transparent dans QToolButton
- 9. image dans un scrollview
- 10. Comment mettre un adview admob dans l'écran des paramètres pour un fond d'écran en direct?
- 11. android ListView remplacement pour ScrollView
- 12. Deux enfants pour ScrollView?
- 13. comment écrire un css pour le fond
- 14. Mettre un dégradé sur un fond de cellules tableview
- 15. Comment faire défiler par programme un ScrollView?
- 16. Problème fixe de position de fond de textarea
- 17. Comment fonctionne ContentInset dans un ScrollView?
- 18. Flèche de Popover pour suivre un objet dans un scrollview
- 19. Android Scrollview: Comment détecter début et fin de scrollview
- 20. Comment déclencher manuellement un événement MouseMove pour une souris fixe
- 21. Comment créer un ListView qui n'est pas dans un ScrollView, ou est-ce que le ScrollView est désactivé?
- 22. vol stationnaire CSS sur un lien pour remplir fond
- 23. Comment créer un arrière-plan fixe pour un écran dans Blackberry?
- 24. iPhone Mettre en place une liste de texte stylé personnalisé dans un scrollview
- 25. Comment définir la couleur d'un bord fading Android ScrollView?
- 26. Comment spécifier une hauteur fixe pour un widget SWT?
- 27. Comment sélectionner un nombre fixe de lignes pour chaque groupe?
- 28. Défilement vertical dans scrollview
- 29. Comment contrôler le webview dans la scrollview avec le contrôleur du scrollview?
- 30. TableView ou ScrollView pour le formulaire d'édition?
Je suis désolé: votre réponse m'aider aussi, mais j'ai seulement une "réponse acceptée". Planty de merci à vous :-) – Istao