AAPT: ошибка: атрибут android: margin_Bottom не найден - PullRequest
0 голосов
/ 01 августа 2020

Я создаю простые приложения для входа и использую базу данных Firebase Realtime для хранения имени пользователя, пароля и телефона. Для части дизайна XML я использовал LinearLayout, и он также имеет margin_Bottom, но по какой-то причине, когда я запускаю код, он говорит: «AAPT: error: attribute android: margin_Bottom not found». Вот код.

<?xml version="1.0" encoding="utf-8"?>
<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="com.example.communicationappbounceback.MainActivity"
    android:orientation="vertical"
    android:gravity="center"
    android:margin_Bottom="5dp"
    android:layout_gravity="center">


    <EditText
         android:layout_width="200dp"
         android:layout_height="50dp"
         android:hint="Name"
         android:inputType="textPersonName"
         android:margin_Bottom="5dp"
         android:id="@+id/et_name"/>

    <EditText
        android:layout_width="200dp"
        android:layout_height="50dp"
        android:hint="Phone"
        android:inputType="phone"
        android:margin_Bottom="5dp"
        android:id="@+id/et_phone"/>

    <EditText
        android:layout_width="200dp"
        android:layout_height="50dp"
        android:hint="Email"
        android:inputType="textEmailAddress"
        android:margin_Bottom="5dp"
        android:id="@+id/et_email"/>

    <Button
        android:marginTop="10dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Send"
        android:id="@+id/btn_send"/>


</LinearLayout>

1 Ответ

0 голосов
/ 01 августа 2020

Вместо «android: margin_Bottom» вам понадобится «android: layout_marginBottom».

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...