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.

LinearLayout côtes à côtes width= 50%

Featured Replies

Posté(e)

Bonjour,

je fait appel a vous car j'aimerais réaliser mon menu qui (sous photoshop) se présente comme ceci:

415241uiop.jpg

J'ai créé un LinearLayout vertical principal.

____Dans celui-ci j'ai inclu un textview pour le titre

____ également un LinearLayout Horizontal pour y placer côte a côte mes menus

________ Dans ce conteneur horizontal j'ai placé mon premièr LinearLayout vertical

________J'y ai également plassé mon deuxième LinearLayout vertical

Pour que ceux-ci aient une taille égale qu'importe la résolution, j'ai utilisé:

____ android:weightSum="1.0" pour le layout horizontal

et

____android:layout_weight="0.5" pour les layouts verticaux.

Mon erreur:"Nested weights are bad for performance".

Cela m’empêche de compiler. Par quoi cela est-il expliqué ? Comment contourner ce problème ? Les RelativeLayout me posent également des soucis.

Merci pour votre aide.

Modifié par pierrow

  • 2 weeks later...
Posté(e)

Cela ne vient il pas du fait qu'il faut mettre layout_height ou layout_width, suivant l'orientation du LinearLayout, a 0dp?

Essaye peut être d'ajouter : android:layout_height=0dp a l'élément ou tu mets android:layout_weight="0.5"

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.