RecyclerView inside ScrollView is not working

Issue I’m trying to implement a layout which contains RecyclerView and ScrollView at the same layout. Layout template: <RelativeLayout> <ScrollView android:id="@+id/myScrollView"> <unrelated data>…</unrealated data> <android.support.v7.widget.RecyclerView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/my_recycler_view" /> </ScrollView> </RelativeLayout> Problems: I can scroll until the last element of

Continue reading

Android add traslucid overlayer to image

Issue I’m begginer in android. I’m developing an app, and I want this effect: I think it is a background image, an overlay whit traslucid color, and a textView. My layout is this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"

Continue reading

Impossible to add a footer to a ScrollView – Android

Issue I’m currently working on a mobile app and I have a problem when I try to put a footer under a ScrollView. Here is my code: <RelativeLayout android:id="@+id/RelativeLayout01" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <RelativeLayout android:layout_alignParentBottom="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/bottomcontent" android:orientation="vertical" android:background="@drawable/border"> //the

Continue reading

android.widget.Toolbar cannot be converted to android.support.v7.widget.Toolbar

Issue I have a toolbar.xml: <android.support.v7.widget.Toolbar xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:background=”@color/color_primary” android:elevation=”4dp” android:theme=”@style/ThemeOverlay.AppCompat.Dark” /> I have an include tag to another of my activity layouts: <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”match_parent” android:theme=”@style/AppTheme”> <include layout=”@layout/toolbar” android:id=”@+id/tb”> </include> <android.support.v7.widget.RecyclerView android:id=”@+id/grade_list” android:scrollbars=”vertical” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”#FFFFFF”

Continue reading