eclipse - Android Develope: How can I adjust images to the screen? -


why images scale despite observance of rules different screen sizes. can see mean on right side on img.

i image sizes [look @ image on url]. http://s1.directupload.net/file/d/3403/gn3a7t8c_png.htm

how can fix this?

sorry bad english, german , polsih speaking welcome, not must.

<tablelayout 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" >  <tablerow     android:id="@+id/tablerow1"     android:layout_width="fill_parent"     android:layout_height="wrap_content" >      <imageview         android:id="@+id/imageview1"         android:layout_width="100dp"         android:layout_height="wrap_content"         android:src="@drawable/img" />      <imageview         android:id="@+id/imageview2"         android:layout_width="100dp"         android:layout_height="wrap_content"         android:src="@drawable/img" />      <imageview         android:id="@+id/imageview3"         android:layout_width="100dp"         android:layout_height="wrap_content"         android:src="@drawable/img" />      <imageview         android:id="@+id/imageview4"         android:layout_width="100dp"         android:layout_height="wrap_content"         android:src="@drawable/img" />      <imageview         android:id="@+id/imageview5"         android:layout_width="100dp"         android:layout_height="wrap_content"         android:src="@drawable/img" /> </tablerow> 

and how on different screen sizes [look @ image on url]. http://s14.directupload.net/file/d/3403/2wr22nng_png.htm

you can use android:scaletype attribute. fit image in image view can use following

android:scaletype="fitxy" 

also this

<dimen name="activity_horizontal_margin">0dp</dimen> 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -