在android xml中有我的布局,但图像不在布局的顶部。可能是什么问题?图像布局android
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView android:id="@+id/description_imageview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/hand"
android:contentDescription="@string/app_version"/>
<TextView android:id="@+id/first_help_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="sdsjkfhsdjkfhsdkjfh skdfjh skjdfh skdjfh skjdfh skjdfh skjdhfk jshdfkjh jskdfh skjdfh skdjfh skdjfh skdjfh skjdfh skjdfh skjdfh kjsdhf kjsdhfk jhs"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
添加scale_type:
你想做什么? – 2014-08-31 11:43:50
图像应该在顶部,但有一些空的空间。 – lazexe 2014-08-31 11:46:09
试过android:adjustViewBounds attr? – pskink 2014-08-31 11:53:09