Sous android studio mes images s'affichent sous la taille d'un icone
Résolu
rapidegoyes
Messages postés
143
Statut
Membre
-
rapidegoyes Messages postés 143 Statut Membre -
rapidegoyes Messages postés 143 Statut Membre -
Bonjour,
Je réalise une page avec android studio.
J'ai incorporé deux IMAGEVIEW qui recoivent chacun une image .png.
A l'affichage mon image est toute petite , sous la taille et forme d'un icone .
Elle n'occupe pas tout l'espace disponible.
C'est la première fois que j'ai ce problème , depuis la mise à jour de Android studio.
Voici mon code
Merci de bien vouloir m'aider
cordialement
rapidegoyes
Je réalise une page avec android studio.
J'ai incorporé deux IMAGEVIEW qui recoivent chacun une image .png.
A l'affichage mon image est toute petite , sous la taille et forme d'un icone .
Elle n'occupe pas tout l'espace disponible.
C'est la première fois que j'ai ce problème , depuis la mise à jour de Android studio.
Voici mon code
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/titre"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Gest_Débarras"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:textColor="#0000FF"
android:textSize="36sp"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/nomspingoing"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="@string/gestion_par_gus_et_pote"
android:textColor="#E91E63"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/titre" />
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="100dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/nomspingoing"
tools:srcCompat="@tools:sample/avatars" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="60dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView"
tools:srcCompat="@tools:sample/avatars" />
<Button
android:id="@+id/bouton_ouvre_BDD"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="32dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:text="@string/acc_s_la_liste"
android:textColor="#9C27B0"
android:textSize="25sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView2" />
</androidx.constraintlayout.widget.ConstraintLayout>
Merci de bien vouloir m'aider
cordialement
rapidegoyes
Configuration: Windows / Firefox 89.0
A voir également:
- Sous android studio mes images s'affichent sous la taille d'un icone
- Comment réduire la taille d'un fichier - Guide
- Android recovery - Guide
- Reduire taille image - Guide
- Icone - Guide
- Telecharger fl studio 20 pour pc gratuit complet - Télécharger - Édition & Montage