I have managed to make button visible all the time, this is ugly.
According to new material design we should use RecyclerView not ListView, so i wonder how to make buttons only appear when user scrolls to the end of the list, but not visible all the time.
In addition, recycler view can't be rendered in studio because of some open issue 72217. So I can't see how elements buttons and recycler view align with each other
mainActivity.xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include android:id="@+id/app_bar" layout="@layout/toolbar"/>
<ImageButton
android:id="@+id/button_previous"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:minHeight="25dp"
android:minWidth="70dp"
android:src="@android:drawable/ic_media_previous"/>
<ImageButton
android:id="@+id/button_next"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:minHeight="25dp"
android:minWidth="70dp"
android:src="@android:drawable/ic_media_next"/>
<view
android:id="@+id/recycler_view"
android:layout_below="@id/app_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="android.support.v7.widget.RecyclerView"/>
2nd issue: I can only see one FORWARD button, not 2 buttons, even though I declared both in the code above and used attribute alignParentright = true and alignParentLeft=true for both forward backward buttons.