Adjust SwipeRefreshLayout height to place View at the bottom of it
问题 I have SwipeRefreshLayout inside a RelativeLayout . The problem is that SwipeRefreshLayout takes all the place on the screen, and I need to put a view after this view. See picture: I have: 1st view, I need: 2nd view at the very bottom of the screen but with some space at a top. My sample XML is: <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="wrap