안드로이드 개발에 새로운입니다. 나는 하나의 안드로이드 응용 프로그램을 작성하고 그 다음 내 main.xml에 암이 다음과 같은 경고를 받고android layout creation issue
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/grid_layout_1"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<Button android:id="@+id/btnLogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_btn_text"/>
<Button android:id="@+id/btnRegister"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reg_btn_text"/>
</LinearLayout>
</RelativeLayout>
입니다했다 :
This LinearLayout layout or its RelativeLayout parent is possibly useless;
transfer the background attribute to the other view
사람이 경고의 이유와이 문제에 대한 해결책을 알 수 있습니다. ?
여기에 멋진 팁 : ** [Android SDK 도구 : 레이아웃 최적화] (http://mobile.tutsplus.com/tutorials/android/android-sdk-tools-layout-optimization/) ** –