Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ListView Désactiver le scrooling ?

Featured Replies

Posté(e)

Bonjour à tous !

Voila, comme le titre l'indique j'ai besoin de désactiver le scrooling d'une listview.

En fait il faudrai que la hauteur de la listview s'adapte en fonction du contenu et que meme si elle prend tout la hauteur de l'écran elle ne s'arrete pas.

Il faut aussi que lorsque j'essaye de scroller, rien ne se passe.

En fait j'ai besoin de faire ça pour une listview personalisée qui est entouré d'un layout lui même entouré d'une scroolview.

Comme vous l'aurez compris c'est la scroolview qui permettra de défiler les items.

Je sais que c'est possible car je l'ai déja vu mais impossible de trouver comment faire !

Voici le code de mon interface:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:orientation="vertical" android:background="@drawable/background" android:layout_height="fill_parent">

<LinearLayout android:layout_height="wrap_content"
	android:layout_width="fill_parent" android:id="@+id/LPicker"
	android:orientation="vertical">

	<TextView android:layout_width="fill_parent"
		android:layout_height="wrap_content" android:id="@+id/TVPicker"
		android:text="@string/fiches_picker" android:textSize="20dip"
		android:textColor="@color/blanc" android:gravity="center"></TextView>

	<TextView android:layout_width="fill_parent"
		android:layout_height="wrap_content" android:id="@+id/TVMessage"
		android:text="Message" android:padding="5dip"></TextView>

</LinearLayout>

<LinearLayout android:layout_height="wrap_content"
	android:layout_width="fill_parent" android:id="@+id/LRecherche">

	<ImageButton android:layout_height="wrap_content"
		android:layout_width="wrap_content" android:src="@drawable/icon"
		android:id="@+id/IBResetRecherche"></ImageButton>

	<EditText android:layout_height="wrap_content"
		android:layout_width="fill_parent" android:id="@+id/ETRecherche"
		android:singleLine="true"></EditText>
</LinearLayout>

<LinearLayout android:layout_width="fill_parent"
	android:id="@+id/LFiches" android:layout_height="fill_parent">

	<TextView android:id="@+id/TVAucuneFiche"
		android:layout_width="fill_parent" android:layout_height="fill_parent"
		android:gravity="center" android:textSize="15px"
		android:text="@string/fiches_aucune_fiche" android:visibility="gone"></TextView>

	<LinearLayout android:layout_width="fill_parent"
		android:id="@+id/LayoutLV" android:background="@drawable/listviewborder"
		android:padding="5dip" android:layout_margin="10dip" android:layout_height="fill_parent">

		<ListView android:layout_width="fill_parent" android:id="@+id/LVFiches"
			android:background="#C0C0C0" android:cacheColorHint="#00000000"
			android:fadeScrollbars="false"
			android:scrollbars="none" android:scrollbarStyle="insideInset" android:layout_height="wrap_content"></ListView>

	</LinearLayout>

</LinearLayout>

</LinearLayout>

Voila, si il manque des infos je reste dispo, si quelqu'un a une idée qu'il n'hésite pas ^^

Merci d'avance !

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.