1
절대 패널 안에 이미지 설정이 있습니다. 코드를 통해 위치를 설정하려고합니다. 그러나 위치를 설정하는 데 적용 가능한 메소드/속성이 표시되지 않습니다.절대 레이아웃에서 이미지 위치 설정
여기 내 레이아웃입니다.
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/marker" android:src="@drawable/marker" android:layout_y="106dp" android:layout_x="290dp"></ImageView>
</AbsoluteLayout>
다음은 위치
marker = (ImageView)findViewById(R.id.marker);
marker.//Can't find a method or property
이 앱에는 두 개의 이미지가 있습니다. 어떻게 이미지 1을 이미지 2의 특정 위치로 이동시킬 수 있습니까? –
기본 레이아웃에 일부 버튼이 있습니다. –
Framelayout은 하나의 이미지 만 지원합니까? –