Giter VIP home page Giter VIP logo

Comments (4)

paul-turner avatar paul-turner commented on June 20, 2024

@JulienSiems could you share your layout xml. This library does not affect layout behaviours, only the adapter and views within the RV.

from expandable-recycler-view.

JulienSiems avatar JulienSiems commented on June 20, 2024

@paul-turner thanks for the answer !

my layout containing the recylerview and button looks like this

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:background="#000000">

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="right|bottom"
        android:layout_marginBottom="16dp"
        android:layout_marginRight="16dp"
        android:src="@drawable/ic_add_white_24dp" />

    <android.support.v7.widget.RecyclerView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/weatherList"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</RelativeLayout>

from expandable-recycler-view.

paul-turner avatar paul-turner commented on June 20, 2024

@JulienSiems Looks like it's because of your use of RelativeLayout. RelativeLayout does not take layout_gravity into account, instead it has parameters like layout_alignParentBottom and layout_alignParentRight that can achieve what you want, see more about the params here.

Alternatively you can use a FrameLayout instead of the RelativeLayout and your layout will work, since that ViewGroup does follow layout_gravity.

from expandable-recycler-view.

JulienSiems avatar JulienSiems commented on June 20, 2024

That solved it! Thank you for taking the time and helping me!

from expandable-recycler-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.