Partage
  • Partager sur Facebook
  • Partager sur Twitter

AFFICHAGE au niveau de l'écran

disposition des objets

    12 novembre 2019 à 15:13:06

    Bonsoir 

    Je suis débutant avec android 

    j'ai crée mon application calculatrice comme suit

    <LinearLayout
            android:layout_width="406dp"
            android:layout_height="186dp"
            android:orientation="horizontal"
            tools:layout_editor_absoluteX="1dp"
            tools:layout_editor_absoluteY="1dp">
    
            <TextView
                android:id="@+id/textView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="TextView" />
        </LinearLayout>
    
        <TableLayout
            android:layout_width="409dp"
            android:layout_height="542dp"
            tools:layout_editor_absoluteX="1dp"
            tools:layout_editor_absoluteY="188dp">
    
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="match_parent" >
    
                <Button
                    android:id="@+id/button2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Button" />
    
                <Button
                    android:id="@+id/button4"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Button" />
    
                <Button
                    android:id="@+id/button3"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Button" />
            </TableRow>
    
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="match_parent" >
    
                <Button
                    android:id="@+id/button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Button" />
            </TableRow>
    
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="match_parent" />
    
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="match_parent" />
        </TableLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
    

    mais l'affichage est comme ça sur mon HUAWEI

    le text view est caché. j'ai essayé de mettre le texte sans layout et avec mais rien. Ou est l'erreur et pourquoi ça affiche comme ça

    • Partager sur Facebook
    • Partager sur Twitter

    AFFICHAGE au niveau de l'écran

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown