java - 在包“android”/新 pacakge 中找不到属性“layout_width”的资源标识符
问题描述
我一直在尝试找出代码有什么问题,但是,我现在一无所知,几乎检查了所有内容,当我尝试为我的应用程序构建登录页面时出现此错误。很抱歉给您带来不便,我对此很陌生。
在包“android”中找不到属性“layout_width”的资源标识符。(第 2 行)
以及从 java 为应用程序部署主题的不同错误:
<?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>
解决方案
改变
<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
推荐阅读
- javascript - React 没有重新渲染
- javascript - 数据表不想从 API 中提取数据
- arduino-uno - 使用数组时arduino冻结
- c# - 如何设置redirect_uri登录google .Net Core 2,Docker
- f# - 对象同步异常仅在使用断点时,在 F#
- javascript - 使用 Regex 和 Jquery 替换页面内多
- go - 从偏移量获取时区名称
- angular - 在 Angular 8 构建中创建大量构建文件的 import() 语句的问题
- macaulay2 - 如何以表格格式枚举所有Grassmannian及其索引以及k和n?
- html - HTML 文件不理解 Django 内容