i have weird problem. or maybe got wrong. imageview
has padding. looks this:
so "myimage" supposed align topmost. instead when check graphical layout image adjusted lower. it's whole image green broken line.
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/master_background"> <imageview android:id="@+id/toppage" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/image" /> </relativelayout>
this code. tried change src
background
image adjusted. how can adjust image. application doesn't have window title.
use android:adjustviewbounds="true"
in image view.
<imageview android:id="@+id/toppage" android:layout_width="fill_parent" android:layout_height="wrap_content" android:adjustviewbounds="true" android:src="@drawable/image" />
Comments
Post a Comment