android - Resize views in a layout -


i have horizontal linear layout multiple image views. there way resize these views automatically, of them fit inside screen? code:

<linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <imageview      android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/cinnamon"/> <imageview      android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_torightof="@+id/cinnamon"/> <imageview      android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ham"/> 

best regards

with image views make sure set layout whatever best fits needs. try "fill_parent". width , height. provide code , better description of layout want appear user , can give better example of need. if helps, let know.

solution

set layout_weight 1 every image view.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -