나는 안드로이드에서 초보자입니다. Eclipse를 사용하여 내 앱을 프로그래밍합니다. .xml 클래스를 만들고 버튼의 특정 위치를 설정하려면 다음 코드를 사용하십시오.relativelayout의 오브젝트 포스팅
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/fm"
android:baselineAligned="false"
android:gravity="end" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollX="100dp"
android:scrollY="30dp"
android:text="@string/edad" />
</RelativeLayout>
...하지만 아무 반응이 없습니다. 모서리에 단추를 설정합니다. 다른 곳에 나타나게하려면 어떻게해야합니까? layout_below :
질문하기 전에 문서를 읽으십시오. http://developer.android.com/guide/topics/ui/layout/relative.html – toadzky