how to Customize the Contextual Action Bar using appCompat in material design

You can change the ActionMode background through attribute actionModeStyle: <style name=”AppTheme.Base” parent=”Theme.AppCompat.Light”> …. …. <item name=”actionModeStyle”>@style/LStyled.ActionMode</item> </style> <style name=”LStyled.ActionMode” parent=”@style/Widget.AppCompat.ActionMode”> <item name=”background”>@color/color_action_mode_bg</item> </style> You will of course need to define a color named color_action_mode_bg: <color name=”color_action_mode_bg”>#009688</color> There are other things you can change as well. Example: <item name=”titleTextStyle”>…</item> <item name=”subtitleTextStyle”>…</item> <item name=”height”>…</item> To change text … Read more

onPrepareActionMode not called when creating ActionMode

I have created a demo and its working fine,onPrepareActionMode gets called each time the action mode is shown. Always called after onCreateActionMode, but may be called multiple times if the mode is invalidated. [ I request any one to make a small edit. I need status bar color same as that of toolbar but dynamically, … Read more

Display ActionMode over Toolbar

Since you are using the Toolbar, I also assume you are using the AppCompatActivity and have replaced the built in ActionBar with your custom Toolbar using setSupportActionBar(toolbar); First of all ensure you are importing the correct namespace: import androidx.appcompat.view.ActionMode; // Or import android.support.v7.view.ActionMode; and NOT import android.view.ActionMode; then use _actionMode = startSupportActionMode(this); and NOT _actionMode … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)