방향이나 화면 크기에 관계없이이 그림을 전체 화면에 표시하는 방법에 대한 힌트를 제공해주세요.스크롤 할 수있는 relativeLayout의 배경 이미지
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
tools:context="com.gadgetcatch.alex.cardcelebration.MainActivity"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/background" />
</RelativeLayout>
</ScrollView>
위 그림은 Nexus4와 Nexus 10에 대한 설명이 없습니다. 넥서스 10에서는 그림이 주 이미지에 있지 않아서 시작됩니다.
추가 adjustViewBounds = "사실은"화면으로 넓은 화면을 수행하지만 여전히 넥서스의 하단에 빈 스트립 잎 (10) 장치를 사용해야합니다 무엇 atribute
사용 된 장치에 관계없이 그림이 전체 화면을 차지하게됩니다. 도움을 줄 수있는 사람에게 미리 감사드립니다.
그것이 가지고있는 문제가 해결되면 답이 좋습니다. 그것은 내가 원했던 것이 아니라 작동합니다. 감사! –