<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="top">
<TextViewandroid:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Type here:"/>
<EditText
android:id="@+id/entry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/label"/>
<Button
android:id="@+id/ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/entry"
android:layout_alignParentRight="true"
android:layout_marginLeft="10dip"
android:text="OK" />
<Button
android:layout_alignTop="@id/ok"
android:text="Cancel"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toLeftOf="@+id/ok"
android:layout_below="@+id/entry"/>
</RelativeLayout>
Я только начал изучать программирование Android apk, и я столкнулся с этой проблемой: «Атрибуту не хватает префикса пространства имен». Как я могу это исправить? Пожалуйста, ответьте. Любой ответ был бы замечательным спасибоАтрибут не указан префикс пространства имен
сделать один пробел перед 'андроида: id' в'
ааа да его мой плохой, я не видел, что .. хехе спасибо – Ethanhunt