Android imageView very tiny -
i using relative layout , attempting have image @ top text field , button.
the image ends bring tiny:
<relativelayout 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="com.phppointofsale.phppointofsale.storeurlfragement" > <button android:id="@+id/continue_to_store" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparentright="true" android:layout_alignparenttop="true" android:layout_margintop="118dp" android:text="@string/continue_to_store" /> <edittext android:id="@+id/store_url" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbottom="@+id/continue_to_store" android:layout_alignleft="@+id/continue_to_store" android:layout_alignright="@+id/continue_to_store" android:layout_marginbottom="60dp" android:ems="10" android:hint="@string/store_url_hint" android:inputtype="texturi" /> <imageview android:id="@+id/logo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" android:layout_margintop="19dp" android:contentdescription="@string/logo_desc" android:src="@drawable/logo" /> </relativelayout>
in layout imageview, have mentioned following:
android:layout_width="wrap_content" android:layout_height="wrap_content"
this causing image take actual size, small in case. either replace larger image or change width , height in layout give value this:
android:layout_width="200dp" android:layout_height="200dp"
Comments
Post a Comment