Android Imagebutton small images -
i have made 3 different images, each sizes of 48x48, 72x72, 96x96 , 144x144. imported them eclipse , set them in folder supposed go (drawable-mdpi etc. )
these images each on imagebutton , of them in linearlayout under seekbar.
but when start app, images small!
<linearlayout android:id="@+id/buttonlayout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignparentbottom="true" android:layout_alignparentleft="true" android:layout_alignparentright="true" android:orientation="horizontal" > <imagebutton android:id="@+id/imagebutton2" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginbottom="5dp" android:layout_weight="0.50" android:background="@android:color/transparent" android:padding="3dp" android:scaletype="centerinside" android:src="@drawable/btn_previous" /> <imagebutton android:id="@+id/imagebutton1" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginbottom="5dp" android:layout_weight="0.5" android:adjustviewbounds="true" android:background="@android:color/transparent" android:minheight="80dp" android:minwidth="80dp" android:padding="3dp" android:scaletype="centerinside" android:src="@drawable/btn_play" /> <imagebutton android:id="@+id/imagebutton3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginbottom="5dp" android:layout_weight="0.5" android:adjustviewbounds="true" android:background="@android:color/transparent" android:padding="3dp" android:scaletype="centerinside" android:src="@drawable/btn_next" /> </linearlayout> <seekbar android:id="@+id/seekbar1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/buttonlayout" android:layout_margin="5dp" /> i want them twice size currently. can create them bigger?
first when have imagebutton click in graphiclayout background set drawable(and pick image folder) think setting src not background, can things scale type , pick fitxy or alter imagebutton width , height, all.
android
No comments:
Post a Comment