Posted in Android Development

Android Activity Life-cycle

First opens Activity: onCreate(),OnStart(),onResume() User Clicks backButton(): onPause(),onStop(),onDestroy() Navigating to another screen: First Screen:: onPause(),onStop() Second Screen: onCreate(),OnStart(),onResume() Presses Backbutton in Activity2: Second Screen: onPause(),onStop()…

Continue Reading... Android Activity Life-cycle
Posted in Android Development

RecycleView steals focus when inside a NestedScrollView

Reference Link: https://stackoverflow.com/questions/36923948/recycleview-steals-focus-when-inside-a-nestedscrollview add this two line of code in parent or root viewgroup: <android.support.v4.widget.NestedScrollView xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent””> <LinearLayout android:layout_width=”match_parent” android:layout_height=”match_parent” android:focusableInTouchMode=”true” android:orientation=”vertical”> <View android:id=”@+id/someView”…

Continue Reading... RecycleView steals focus when inside a NestedScrollView
Posted in Android Development

file was loaded in the wrong encoding android studio windows

Reference Link: https://stackoverflow.com/questions/53249677/android-studio-shows-wrong-file-contents/54509482#54509482 Thanks to the Answer of Asim, I found deleting folder caches fixed the problem for my case (all gradle files in Android…

Continue Reading... file was loaded in the wrong encoding android studio windows