1
我是新來的Android.It是我的新。我嘗試了很多修改我的用戶界面,但我cannt.i需要一些幫助來修復我的用戶界面顯示image.my代碼,我做了努力。我希望有人幫我解決我的問題....................................... .........................構建Android用戶界面修改
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent">
<RelativeLayout
a:id="@+id/buttonsLayout"
a:layout_alignParentBottom="true"
a:layout_width="wrap_content"
a:layout_height="wrap_content"
a:layout_centerInParent="true">
<Button
a:text="^"
a:id="@+id/up"
a:layout_height="wrap_content"
a:layout_width="wrap_content"
a:layout_alignParentTop="true"
a:layout_centerHorizontal="true" />
<Button
a:text="<"
a:id="@+id/left"
a:layout_height="wrap_content"
a:layout_width="wrap_content"
a:layout_toLeftOf="@+id/center"
a:layout_centerVertical="true" />
<Button
a:text="0"
a:id="@+id/center"
a:layout_height="wrap_content"
a:layout_width="wrap_content"
a:layout_below="@+id/up"
a:layout_centerHorizontal="true"
a:layout_centerVertical="true" />
<Button
a:text=">"
a:id="@+id/right"
a:layout_height="wrap_content"
a:layout_width="wrap_content"
a:layout_toRightOf="@+id/center"
a:layout_centerVertical="true" />
<Button
a:text="v"
a:id="@+id/down"
a:layout_height="wrap_content"
a:layout_width="wrap_content"
a:layout_below="@+id/center"
a:layout_centerHorizontal="true" />
</RelativeLayout>
<ImageView
a:src="@android:drawable/ic_menu_gallery"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:layout_alignParentTop="true"
a:layout_above="@+id/buttonsLayout"
a:id="@+id/imageView1" />
</RelativeLayout>
我要像我的UI看到鏈接
爲什麼你在整個佈局中寫了'a:'? – GrIsHu