Posts

Showing posts from March, 2024

To Do List

Image
 TO DO LIST Colour.xml <color name="colorPrimary">#0b6c7e</color> <color name="colorPrimaryDark">#11262a</color> <color name="colorAccent">#03DAC5</color> activity_main.xml <androidx.recyclerview.widget.RecyclerView         android:id="@+id/recycler"         android:layout_width="0dp"         android:layout_height="0dp"         app:layout_constraintBottom_toBottomOf="parent"         app:layout_constraintEnd_toEndOf="parent"         app:layout_constraintStart_toStartOf="parent"         app:layout_constraintTop_toTopOf="parent" />     <ImageButton         android:id="@+id/img_add"         android:layout_width="55dp"         android:layout_height="55dp"         android:layout_marginEnd="16dp"       ...

Animal App

Image
 ANIMAL APP Recycler View and Adapter OUPUT Set the Colour in Resources  <?xml version="1.0" encoding="utf-8"?> <resources>     <color name="colorPrimary">#095922</color>     <color name="colorPrimaryDark">#002f11</color>     <color name="colorAccent">#79119900</color> </resources> Crete Layout Activity - animal_row Download CardView <?xml version="1.0" encoding="utf-8"?> <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:elevation="8dp"     app:cardCornerRadius="9dp"     android:layout_margin="10dp"     xmlns:app="http://schemas.android.com/apk/res-auto">     <LinearLayout         android:layout_width="match_parent"         android:layo...

Android Basic

Image
 Saving state, shared preferences and Switch UI component Link :  https://www.geeksforgeeks.org/how-to-save-switch-button-state-in-android/ Output