Sunday, 31 August 2014

Image layout android



There is my layout in android xml, but the image does not in the top of the layout. What can be the problem?


enter image description here



<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://ift.tt/nIICcg"
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>


add scale_type: enter image description here


enter image description here


No comments:

Post a Comment