android - How to put imageview above xml layout -


i'm using popup window constraint layout , need put image above layout.what best way it?

enter image description here

use xml file...set round image in imageview.

<?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="match_parent"     android:layout_gravity="center_horizontal"     android:layout_margintop="@dimen/diam10"     android:orientation="vertical">      <relativelayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_centerhorizontal="true"         android:layout_margintop="@dimen/diam40dp">           <textview              android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_margin="@dimen/diam15dp"             android:background="@drawable/edittext_bottom_line"             android:drawablepadding="@dimen/diam5dp"             android:maxlength="15"             android:maxlines="1"             android:paddingbottom="@dimen/diam5dp"             android:text="sample example"             android:textcolor="@android:color/black"             android:textcolorhint="@android:color/darker_gray" />       </relativelayout>      <imageview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_centerhorizontal="true"         android:background="@drawable/custom_round_shape_drawable"         android:contentdescription="@string/app_name"         android:padding="@dimen/diam15dp"         android:src="@mipmap/ic_launcher" />   </relativelayout> 

hope you...if issue let me know.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -