Hãy thử mã này ... nó giúp bạn ....
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/imageviewMain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="Path "
/>
<Button android:id="@+id/but2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
Cố Bộ luật này .....
Trong đó cung cấp cho paramater trong nút để thiết lập vị trí nút của bạn ....
android:layout_margin or android:layout_alignParent
Và cũng cung cấp đường dẫn của ảnh ....
Nguồn
2011-09-05 10:15:10
bạn có thể đăng mã của mình không? –