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.

problème de fixation des buttons dans une UI

Featured Replies

Posté(e)

Bonjour,

j'ai un problème de fixation des buttons dans une UI,

le button droit il n'est pas fixe, des fois il est affiché, des fois il est caché, des fois il est petit ...

je veux aussi fixe les dimensions d'imageviw et adapté les photos avec ce imageview

le botton droit il est affiché

principauxsites1.png

le botton droit il est caché

principauxsites2.png

voila le fichier xml :

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

<Button
	android:id="@+id/Prior"
	android:layout_height="205dp"
	android:layout_width="28dp"
	android:textSize ="18sp"
	android:textStyle ="bold"
	android:text="@string/Prior"/>

<ImageView
	android:id="@+id/Image"
	android:layout_width="wrap_content"
	android:layout_height="200dp"
	android:layout_toRightOf="@id/Prior"/>

<Button 
	android:id="@+id/Next"
	android:layout_height="205dp"
	android:layout_width="28dp"
	android:textSize ="18sp"
	android:textStyle ="bold"		
	android:text="@string/Next"
	android:layout_toRightOf="@id/Image"/>

<WebView 
	android:id="@+id/webkit"
	android:layout_height="wrap_content"
	android:layout_width="wrap_content"
	android:layout_below="@id/Image"/>					

</RelativeLayout>

j'attende votre aide,

merci d'avance pour votre aide

bonne journée

a+

Posté(e)
  • Auteur

le botton droit il est caché

principauxsites2.png

Bonjour,

j'ai règle le problème

infoalgerie5.png

j'ai ajouter :

android:layout_alignParentLeft="true"

android:layout_alignParentRight="true"

voila le fichier xml :

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

<Button
	android:id="@+id/Prior"
	android:layout_alignParentLeft="true"
	android:layout_height="200dp"
	android:layout_width="32dp"
	android:textSize ="25sp"
	android:textStyle ="bold"
	android:text="@string/Prior"/>

<ImageView
	android:id="@+id/Image"
	android:layout_width="255dp"
	android:layout_height="200dp"
	android:scaleType="fitXY"
	android:layout_toRightOf="@id/Prior"/>

<Button 
	android:id="@+id/Next"
	android:layout_alignParentRight="true"
	android:layout_height="200dp"
	android:layout_width="32dp"
	android:textSize ="25sp"
	android:textStyle ="bold"		
	android:text="@string/Next"
	android:layout_toRightOf="@id/Image"/>

<WebView 
	android:id="@+id/webkit"
	android:layout_height="wrap_content"
	android:layout_width="wrap_content"
	android:layout_below="@id/Image"/>					

</RelativeLayout>

Posté(e)

le LinearLayout est beaucoup plus facile à utiliser que le RelativeLayout ceci dit...

Posté(e)
  • Auteur

le LinearLayout est beaucoup plus facile à utiliser que le RelativeLayout ceci dit...

bonjour,

je pense que le RelativeLayout il est mieux adapté pour les versions multi écran (mutli-screen)

a+

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.