我是新的,实际上这是我对android程序的第一次尝试.我正在关注android开发者培训网站.我activity_main.xml
看起来如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<EditText android:id="@+id/edit_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_hint="@string/edit_message"/>
Run Code Online (Sandbox Code Playgroud)
现在它显示错误和警告,如:
警告 - This text field does not specify an inputType or a hint
错误 - error:Error:No resource found that matches the given name( at 'layout_hint' with the value '@string/edit_message')
归档时间: |
|
查看次数: |
10313 次 |
最近记录: |