Recent Posts

Posted in Android Development

Android Studio Settings

Android Studio Setup Font Style 1.  Apperence Font : Segoe UI semibold 2.  Apperence Font Size : 11px 3. Code Font: Monospaced. 4. Code Font…

Continue Reading... Android Studio Settings
Posted in git

Git Commands

problem: 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. ;;;;;…

Continue Reading... Git Commands
Posted in Android Development

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”…

Continue Reading... Automatic popping up keyboard on start Activity
Posted in Android Development

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…

Continue Reading... Android MVVM (JAVA)
Posted in wordpress wp theme development

word press theme Dev basic things

1. get the post categories… //$categories = get_categories(); //all category $categories = get_the_category($post->ID); //post category if($categories !=null){ foreach($categories as $category) { echo ‘<a href=”‘ ….

Continue Reading... word press theme Dev basic things
Posted in wordpress

How to Fix Custom Fields Not Showing in WordPress

REF: https://www.wpbeginner.com/wp-tutorials/how-to-fix-custom-fields-not-showing-in-wordpress/   The Custom Fields option was missing from the WordPress screen options. After some investigation, we were able to find the cause of…

Continue Reading... How to Fix Custom Fields Not Showing in WordPress
Posted in Android Development

Non Swipeable ViewPager

REF: https://stackoverflow.com/questions/9650265/how-do-disable-paging-by-swiping-with-finger-in-viewpager-but-still-be-able-to-s package com.m27lab.messmanagerpro.app.classes; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.animation.DecelerateInterpolator; import android.widget.Scroller; import androidx.viewpager.widget.ViewPager; import java.lang.reflect.Field; public class NonSwipeableViewPager extends ViewPager { public…

Continue Reading... Non Swipeable ViewPager
Posted in Android Development

Option menu or Popup menu change background

  Ref: https://stackoverflow.com/questions/21231404/how-to-change-background-color-popup-menu-android/30731151 Add Popup-Menu style to your App-Theme: <style name=”AppTheme” parent=”android:Theme.Light”> <item name=”android:popupMenuStyle”>@style/PopupMenu</item> </style> <style name=”PopupMenu” parent=”@android:style/Widget.PopupMenu”> <item name=”android:popupBackground”>@android:color/white</item> </style>  

Continue Reading... Option menu or Popup menu change background
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