Skip to main content

Posts

Recent posts
 Android Notification show  public static void shownotification ( Context context , int id , String title , String Content , Intent intent ) { PendingIntent pendingIntent= null; if ( intent != null ) { pendingIntent= PendingIntent . getActivities ( context , id , new Intent[]{ intent } , PendingIntent . FLAG_UPDATE_CURRENT ) ; String NOTIIFCATION_CHANNEL_ID = "UClone android" ; NotificationManager notificationManager = ( NotificationManager ) context .getSystemService( Context . NOTIFICATION_SERVICE ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . O ) { NotificationChannel notificationChannel = new NotificationChannel( NOTIIFCATION_CHANNEL_ID , "" , NotificationManager . IMPORTANCE_HIGH ) ; notificationChannel .setDescription( "" ) ; notificationChannel .enableLights( true ) ; notificationChannel .setLightColor( Color . RED ) ; no
AppBar ViewPager with  Tab layout in android  XML : <? xml version ="1.0" encoding ="utf-8" ?> <RelativeLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" xmlns: app ="http://schemas.android.com/apk/res-auto" android :id ="@+id/mainrelative_layout_id" android :background ="@color/colorPrimary" android :theme ="@style/Appthemnoactionbar" android :layout_height ="match_parent" tools :context ="com.ruhul.scanner.Fragment_Activity.ListFragment" > <com.google.android.material.appbar.AppBarLayout android :id ="@+id/tablayoutid" android :layout_width ="match_parent" android :background ="@color/colorPrimary" android :layout_height ="?actionBarSize" >
Profile UI design xml: layout   <? xml version ="1.0" encoding ="utf-8" ?> < RelativeLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" tools :context =".view.fragment.ProfileFragment" > < LinearLayout android :id ="@+id/linear_top_id" android :layout_width ="match_parent" android :layout_height ="?actionBarSize" android :layout_gravity ="center_vertical" android :gravity ="center_vertical" android :orientation ="horizontal" android :weightSum ="3" > < androidx.appcompat.widget.AppCompatImageView android :id ="@+id/back_p