android - Weird view of ImageView with border -
i want set border image padding of 4dp when set background color want black border on top , bottom. how can rid of set border?
as understood question not know if have got want
take linear layout , wrap imageview within linear layout then, give background color linear layout whatever want , in image view give margin whatever width want border
<scrollview> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:padding="10dip" android:layout_width="fill_parent" android:layout_height="wrap_content"> <textview android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margintop="10dip" android:text="@string/dealer_picker" /> <spinner android:id="@+id/spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:prompt="@string/dealer_picker" /> <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#1e1e1e"> <imageview android:id="@+id/mapview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:marginhere 10 dp or whatever /> </linearlayout> <textview android:id="@+id/adresa" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margintop="10dip" /> </linearlayout> </scrollview>
android imageview border
No comments:
Post a Comment