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.

Aide : Adapter l'image a son layout

Featured Replies

Posté(e)

Bonjour tout le monde ,

J'ai un problème avec l'adaptation de la taille de mon image avec celle de son layout .

Voici mon layout :

<LinearLayout android:layout_width="fill_parent" 
	android:gravity="center" android:layout_height="fill_parent"
	android:id="@+id/layoutImgSplash" android:visibility="gone" >
	<ImageView android:id="@+id/splash" android:layout_width="wrap_content"
		android:layout_height="wrap_content" android:visibility="gone" />
</LinearLayout>

le problème c'est que : quand j'utilise un émulateur de 240Px comme largeur , mon layout prend comme largeur 240px normalement, parce qu'il a fill_parent ,

et l'image que je télécharge et je l'affiche dans mon layout a comme largeur : 320px ,

donc lors de l'affichage elle se cache à gauche et à droite ,

Je veux l'adapter ( redimensionnement ou quelque choses d'autre ... ) pour qu'elle ne dépasse pas 240px .

s'il vous pait aidez moi :(

Merci d'avance les amis

Posté(e)
  • Auteur

Résolu ,

j'ai utilisé la méthode : setScaleType(Scale.FitXY);

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.