Month: March 2020

Git Commands

Problem 1: rejected master -> master (non-fast-forward) you have a readme file inside git remote repo. but you don’t have that in your local repo. ;;;;; I created a github repository after creating my local git repository so I needed to accept the changes into local before pushing to github. In this case the only …

Git Commands Read More »

Automatic popping up keyboard on start Activity

android:focusable=”true” android:focusableInTouchMode=”true” add these two line in parent of the Edittext …in example we added into cardview. <androidx.cardview.widget.CardView android:id=”@+id/note_search_layout” android:layout_width=”0dp” android:layout_height=”wrap_content” android:padding=”5dp” app:cardBackgroundColor=”@color/whiteBgcolor” app:cardCornerRadius=”5dp” app:cardElevation=”3dp” app:cardUseCompatPadding=”true” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent” android:focusable=”true” android:focusableInTouchMode=”true”> <EditText android:id=”@+id/note_search” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_margin=”5dp” android:background=”@drawable/bg_white_border_no” android:hint=”Search Note by title..” android:imeOptions=”actionSearch” android:inputType=”text” android:padding=”8dp” android:textSize=”15sp” /> </androidx.cardview.widget.CardView> Auto focus on edittext inside scrollview autofocus inside …

Automatic popping up keyboard on start Activity Read More »

Android MVVM (JAVA)

1. view ( activity , fragments, adapter etc.) 2. view-model 3. repository (viewmodel collects data from here) 4. model (collect data from web server or local db.) prerequisite We will develop a simple note app. prerequisite: basic knowledge of android development,such as 1. activity 2.recyclerview 3.adapter 4. paper database. (library for local nosql database ) …

Android MVVM (JAVA) Read More »