Android PopupWindow elevation does not show shadow

As answered by an Android developer. If the inflated view doesn’t have a background set, or the popup window itself doesn’t have a background set (or has a transparent background) then you won’t get a shadow. which was my case and seems to be yours, since you are not using setBackgroundDrawable. This worked for me … Read more

Android Usage Access for Android 5 Samsung devices

Sorry for the late reply, I hope you have found a good solution, but if not or for other people who have this problem, this bug seems to exist in some Samsung models, to avoid the crash of your app, maybe you can check if your intent can be handled PackageManager packageManager = getActivity().getPackageManager(); if … Read more

“android:elevation=” doesn’t work on devices pre-Lollipop with compile API21

UPDATED :: Best Practice to do that is <android.support.v7.widget.CardView> <YourLayout> </android.support.v7.widget.CardView> and add library for cardview dependencies { … compile ‘com.android.support:cardview-v7:21.0.+’ } On Pre-Lollipop you can use this drawable android:background=”@android:drawable/dialog_holo_light_frame” it will give you the look of elevation you can create your own like this <?xml version=”1.0″ encoding=”utf-8″?> <layer-list xmlns:android=”http://schemas.android.com/apk/res/android”> <item> <shape android:shape=”rectangle”> <solid android:color=”#BDBDBD”/> … Read more

Android Lollipop Set Status Bar Text Color

You can not set the status bar text color by specifying any color explicitly But you can try below alternative which is Added in API 23, You can use “android:windowLightStatusBar” attribute in two ways “android:windowLightStatusBar” = true, status bar text color will be compatible (grey) when status bar color is light “android:windowLightStatusBar” = false, status … Read more

Media Session Compat not showing Lockscreen controls on Pre-Lollipop

While not strictly required for MediaSession, RemoteControlClient used on API14-19 devices, does require audio focus and it is 100% strongly recommended for all media playback. Adding lines such as: AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); int result = audioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); if (result != AudioManager.AUDIOFOCUS_GAIN) { return; //Failed to gain audio focus } Before playing any … Read more

Android Material Design Inline Datepicker issue

The calendarViewShown attribute is deprecated in the calendar-style date picker. If you want the spinner-style date picker back, you can set the datePickerMode attribute to spinner. <DatePicker … android:datePickerMode=”spinner” /> As for the scrolling issue, the calendar-style date picker doesn’t support nested scrolling.

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