android - Coordinate Layout in Linear Layout: Component not fixed -


as title described, position of android logo in rounded image view not fixed.

app rendered correctly designed this: layout behave correctly

but layout behave in way: layout behave incorrectly

below attached layout .xml code:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">  <android.support.design.widget.coordinatorlayout     android:layout_width="match_parent"     android:layout_height="275dp">      <imageview         android:id="@+id/profile_iv_background"         android:layout_width="match_parent"         android:layout_height="200dp"         android:scaletype="fitxy"         android:src="@drawable/profile_bg"/>      <com.makeramen.roundedimageview.roundedimageview         android:id="@+id/profile_riv_user"         android:layout_width="150dp"         android:layout_height="150dp"         android:scaletype="fitcenter"         android:src="@mipmap/ic_launcher"         app:layout_anchor="@id/profile_iv_background"         app:layout_anchorgravity="bottom|center"         app:riv_border_color="#333333"         app:riv_border_width="2dip"         app:riv_corner_radius="30dip"         app:riv_oval="true"         app:riv_tile_mode="clamp" />   </android.support.design.widget.coordinatorlayout>  <textview     android:id="@+id/profile_tv_full_name"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:gravity="center"     android:textsize="30sp"/>  <android.support.v7.widget.recyclerview     android:id="@+id/profile_rv_info"     android:layout_width="match_parent"     android:layout_height="match_parent" /> 

any thoughts appreciated.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -