1
resposta

Somente a <EditText "nome" aparece na tela

Olá,

Adicionei todas as <EditText no código, mas apenas a <EditText "nome" aparece na tela. Como resolver?

<LinearLayout
    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"
    tools:context=".FormularioActivity">

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Nome" />

    <EditText

        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Endereco" />

    <EditText
        android:hint="Telefone"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <EditText
        android:hint="Site"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <RatingBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
        android:numStars="5"
        android:max="10" />


</LinearLayout>
1 resposta

Fala ai Eduardo, de boa ?

Cara você esqueceu de falar qual é a orientação do linear layout, por padrão é horizontal, precisa deixar vertical.