java - Use RelativeLayout outside CoordinatorView -


i have coordinatorlayout, in recyclerview displays cardviews, defined in other layout. under scrollable view, trying add relativelayout, inherits fields text input, buttons sending it, etc.

the problem: coordinatorlayout seems block whole screen, although told wrap contents height. nevertheless, relativelayout added (tested setting coordinator-height = 50dp), off-screen. wrong here?

ps: know how solve android:layout_weight=xx. thats not want achieve, because blocks edittext expand, if bigger texts entered.

<relativelayout 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.support.design.widget.coordinatorlayout         android:id="@+id/data_coordinator_layout"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignparenttop="true">          <android.support.v7.widget.recyclerview             android:layout_width="match_parent"             android:layout_height="wrap_content"             />       </android.support.design.widget.coordinatorlayout>      <relativelayout         android:id="@+id/delete_data_layout"         android:layout_width="wrap_content"         android:layout_height="match_parent"         android:layout_below="@id/data_coordinator_layout">          <edittext/>         <button/>         <button/>         <button/>      </relativelayout>   </relativelayout> 

it's pretty simple. need align relative layout (delete_data_layout) bottom of parent. make coordinator layout above relative layout. causes, coordinator layout stay above relative layout - when edittext expands.

here's xml.

<relativelayout 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.support.design.widget.coordinatorlayout         android:id="@+id/data_coordinator_layout"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignparenttop="true"         android:layout_above="@+id/delete_data_layout">  <---- change here          <android.support.v7.widget.recyclerview             android:layout_width="match_parent"             android:layout_height="wrap_content"/>      </android.support.design.widget.coordinatorlayout>      <relativelayout         android:id="@+id/delete_data_layout"         android:layout_width="wrap_content"         android:layout_height="match_parent"         android:layout_alignparentbottom="true">   <---- change here          <edittext/>         <button/>         <button/>         <button/>      </relativelayout>  </relativelayout> 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -