skip to Main Content

Android Studio – Problems with a xml Android layout. The layout overlaps the toolbar

I am programming an Android application in Java. I have the following xml layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" tools:context="com.geologyapplications.minerals.Ficha" android:theme="@android:style/Holo.Light.ButtonBar" android:descendantFocusability="beforeDescendants" android:focusableInTouchMode="true"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" android:theme="@style/ToolbarTheme"> <TextView android:id="@+id/toolbarTextView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:ellipsize="end"…

VIEW QUESTION

Android Studio – How to link a ProfileModel to a SharedPreference

I have stored data with SharedPreference, I would like to retrieve them now by going through functions The stored data: dataUser = getApplicationContext().getSharedPreferences("userData", Context.MODE_PRIVATE); SharedPreferences.Editor editor = dataUser.edit(); editor.putString("date", dateString); editor.commit(); My ProfileModel: public class ProfileModel { private String date;…

VIEW QUESTION
Back To Top
Search