2014-11-29 1 views
0

저는 Android app 개발에 익숙하지 않으며 이러한 오류가 발생합니다. 사람이xml 언 바운드 접두사를 구문 분석하는 중 오류가 발생했습니다./

속성이 내 코드

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android="@+id/frontpagelayout" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 

<Button 
    android:id="@+id/ushop" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentTop="true" 
    android:layout_marginLeft="93dp" 
    android:layout_marginTop="38dp" 
    android:text="@string/ushop" /> 

답변

0

이 속성을 안드로이드 네임 스페이스 접두사

을이 실종되는

오류 구문 분석 XML 언 바운드 접두사 제발 도와 수 있습니다

android="@+id/frontpagelayout" 

네임 스페이스 접두사 (예 : android:)가없고 xmlns 특성을 사용하여 네임 스페이스를 명시 적으로 정의하지 않았습니다.

android:id="@+id/frontpagelayout" 
다음 first result I got when googling의 예를 보면

, 그것은 id 속성이어야한다

관련 문제