Place View On Top And Between Two Views
Trying to figure out to overcome this little problem. Below, on the left side, is a sample of the view that I'm trying to implement for an app. On the right side is the view that I
Solution 1:
try below link hope it will help you :-
TextView above Image view in a layout
Android listview item display text over image using array adapter
how to put text under image view
<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"android:background="@drawable/tmp" ><ImageViewandroid:id="@+id/imageView1"android:layout_width="match_parent"android:layout_height="wrap_content"android:src="@drawable/uph"android:layout_marginTop="-10dp"/><RelativeLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"android:layout_gravity="top|center"><ImageViewandroid:id="@+id/imageView2"android:layout_width="match_parent"android:layout_height="wrap_content"android:src="@drawable/propfile"
/><TextViewandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:text="text"android:layout_centerInParent="true"
/></RelativeLayout></LinearLayout>
Post a Comment for "Place View On Top And Between Two Views"