Не найден идентификатор ресурса для атрибута layout_width в пакете android / новый пакет - PullRequest
0 голосов
/ 14 февраля 2020

Я пытался выяснить, что не так с кодом, но сейчас я ничего не понимаю, почти все проверил, я получаю эту ошибку, когда пытаюсь создать страницу входа для моего приложения. Приносим извинения за неудобства, я довольно ноб в этом.

Не найден идентификатор ресурса для атрибута 'layout_width' в пакете 'android'. (строка 2)

А также ошибка, отличная от java для развертывания темы для приложения:

enter image description here

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">


    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.6"
        android:background="@color/uberPrimary"
        >

        <Refractored.Controls.CircleImageView
            android:id="@+id/circleImageView1"
            android:layout_height="200dp"
            android:layout_width="180dp"
            android:layout_centerInParent="true"
            android:src="@drawable/centerimage" 
        />

        <TextView
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            android:gravity="center"
            android:textSize="20sp"
            android:layout_below="@+id/circleImageView1"
            android:layout_alignParentBottom="true"
            android:textColor="@color/uberwhite"
            />

        </RelativeLayout>


    <LinearLayout
        android:orientation="vertical"
        android:layout_height="0dp"
        android:layout_width="match_parent"
        android:layout_weight="0.4"
        android:padding="10dp"
        >

        <android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/emailText"
        >
            <EditText
                android:layout_height="wrap_content"
                android:layout_widht="match_parent"
                android:hint="Email"
                android:inputType="textEmailAddress"
            />

            </android.support.design.widget.TextInputLayout>

    </LinearLayout>

        <android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/passwordText"
        >
            <EditText
                android:layout_height="wrap_content"
                android:layout_widht="match_parent"
                android:hint="Password"
                android:inputType="textPassword"

            />
            </android.support.design.widget.TextInputLayout>

    <RelativeLayout

        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <Button

            android:id="@+id/loginButton"
            android:layout_height="45dp"
            android:layout_width="300dp"
            android:text="Login"
            android:textColor="@color/uberwhite"
            android:background="@drawable/uberroundbutton"
            android:layout_centerInParent="true"
        />

        </RelativeLayout>


</LinearLayout>


1 Ответ

0 голосов
/ 14 февраля 2020

изменить

    <EditText
            android:layout_height="wrap_content"
            android:layout_widht="match_parent"
            android:hint="Email"
            android:inputType="textEmailAddress"
        />

на

   <EditText
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            android:hint="Email"
            android:inputType="textEmailAddress"
        />

кредит @ laalto

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