이미지보기 및 탐색 바를 가지고있어 이미지보기에 표시되는 이미지를로드 할 수 있으며 탐색 표시 줄은 이미지보기 바로 아래에 있어야합니다. .I는 main.xml에 다음 코드를이미지보기 아래에 Seekbar의 위치 설정
<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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="148dp"
android:src="@drawable/ic_launcher" />
<SeekBar
android:id="@+id/seekBar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView1"
android:layout_marginTop="95dp"
/>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignRight="@+id/imageView1"
android:layout_marginRight="30dp"
android:layout_marginTop="78dp"
android:text="TextView" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="31dp"
android:text="Button"
android:onClick="clickme"
/>
</RelativeLayout>
문제를 내가 SeekBar를 내가 이미지 크기를 조정해야한다고 생각 view.I 이미지에 포함 또는 일부 속성을 설정 다른 크기의 이미지를로드 할 때입니다 C#에서 'Strech'와 같은 이미지 뷰를 사용하여 적절한 레이아웃을 유지할 수 있습니다. 어떤 사람이 올바른 경로를 보여줄 수 있습니까?
시도 안드로이드 : adjustViewBounds 이제 이미지가 커버 슬라이더와 버튼 모두 – techno