android - Layout not showing Properly as needed -
android - Layout not showing Properly as needed -
please see attached screen shot, showing image popups using google maps version2
i looking 3 little changes in popup, , these are:
want show image on finish background, still image covering 50% area of marker
also want cover white area of marker (white @ corners)
and if want show black shadows @ corners
popup.xml:-
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/background_dark" android:orientation="horizontal"> <imageview android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_launcher" android:background="@null" android:adjustviewbounds="true" android:contentdescription="@string/icon"/> <textview android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxlines="1" android:textcolor="@android:color/background_light" android:layout_margintop="5dp" android:textsize="18sp" android:typeface="sans" android:textstyle="bold"/> <textview android:id="@+id/snippet" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/title" android:typeface="sans" android:textstyle="bold" android:textsize="18sp" android:maxlines="1" android:textcolor="@android:color/background_light" /> </relativelayout>
i think have utilize wider image marker's background still using this, , concern these white corners (i don't want see it)
change 4 "wrap_content" in relativelayout , imageview "match_parent". imageview however, might stretched, should consider using wider one.
android android-layout layout
Comments
Post a Comment