• EditText
  • Programming lesson




    Download 1,48 Mb.
    bet3/3
    Sana07.10.2024
    Hajmi1,48 Mb.
    #273962
    1   2   3
    Bog'liq
    Mobil ilova ishlab chiqish maruza

    TextView


    android:layout_height="wrap_content"
    android:layout_width="0dp"
    android:layout_margin="10dp"
    android:text="Hello Java"
    android:textAllCaps="true"
    android:textSize="26sp"
    android:background="#ede7f6"
    android:textColor="#7e57c2"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintRight_toRightOf="parent"/>

    EditText

    ___

    android:id="@+id/name"

    android:layout_width="0dp"

    android:layout_height="wrap_content"

    android:hint="Введите имя"

    app:layout_constraintLeft_toLeftOf="parent"

    app:layout_constraintTop_toTopOf="parent"

    app:layout_constraintRight_toRightOf="parent"/>

    android:id="@+id/message"

    android:layout_marginTop="16dp"

    android:layout_width="0dp"

    android:layout_height="0dp"

    android:hint="Введите сообщение"

    android:inputType="textMultiLine"

    android:gravity="top"

    app:layout_constraintTop_toBottomOf="@+id/name"

    app:layout_constraintLeft_toLeftOf="parent"

    app:layout_constraintRight_toRightOf="parent"

    app:layout_constraintBottom_toBottomOf="parent" />

    Button

    ___

     

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:text="Ввод"

    android:onClick="sendMessage"

    app:layout_constraintTop_toBottomOf="@+id/editText"

    app:layout_constraintLeft_toLeftOf="parent" />


    Download 1,48 Mb.

    1   2   3




    Download 1,48 Mb.