android-5.0-lollipop

Android ADT 23.0.4 is showing Compile With: API21:Android 4.X(L Preview) Instead of API21:Android 5.0

↘锁芯ラ 提交于 2019-12-19 08:06:44
问题 What I did? I updated my SDK from L preview API 20 to new Android 5.0 API 21 andADT to 23.0.4 in my Ubuntu. Problem: Android ADT 23.0.4 not showing Compile With: API21:Android 4.X(L Preview) Instead of Compile With:API21:Android 5.0 Screenshots: (Files-->New-->Android Application Project-->Compile with/target sdk) Highlighted in red texts should be changed to Compile With:API21:Android 5.0!!` SDK(updated to latest): ADT(updated to latest): it's a bug ? or So I'm only the one facing this or it

Content going behind Navigation Bar

烈酒焚心 提交于 2019-12-19 06:26:54
问题 I am facing a problem with android 5.0 and above. Whenever I align any view to parent bottom, Content is getting hidden behind the soft navigation button. Above attached is the screenshot of the screen generated after creating new project from Android Studio 1.5. I just added an edit text at the bottom of the fragment. as you can see, half of the edit text is behind the navigation bar. Though codes are auto generated by Android Studio, I am still posting the codes below. Manifest.xml <?xml

android art runtime check_jni.cc error on package name

狂风中的少年 提交于 2019-12-19 04:19:08
问题 --EDIT-- i had too many versions of the shared lib floating around due to ambiguous build.gradle... ./src/main/jniLibs/armeabi-v7a/libaudioboo-native.so rob@ app$ rm ./src/main/libs/armeabi-v7a/libaudioboo-native.so rob@ app$ rm ./src/main/obj/local/armeabi-v7a/libaudioboo-native.so rob@ app$ rm ./src/main/jniLibs/armeabi-v7a/libaudioboo-native.so RESOLVED issue - changed build to the following to only use the shared lib in ./src/main/libs sourceSets { main { jni.srcDirs = [] /*disable

Intent Action Call in Android 5

左心房为你撑大大i 提交于 2019-12-19 04:06:14
问题 I have this code, that works fine in Android 4.4 and previous: Intent intent = new Intent(Intent.ACTION_CALL); intent.setPackage("com.android.phone"); intent.setData(Uri.parse("tel:" + number)); context.startActivity(intent); Now, in Android 5.0 Lollipop this code doesn't work, and shows this exception: Fatal Exception: android.content.ActivityNotFoundException No Activity found to handle Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxx pkg=com.android.phone } In the documentation,

primary dark color android under API 21

别等时光非礼了梦想. 提交于 2019-12-19 03:59:59
问题 i want to color the Statusbar, for a better look in Android 5.0. I want to set the three color primarydark,light and accent. But my minimum API is 15. Is there any chance just to use this just under API lvl 21? Or do I have to create a seperate app with min. sdk 21? EDIT: Now i get everything i needed but the statisbar color won't change. This is my values-v21/styles.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppBaseTheme" parent="android:Theme.Material.Light"> <!--

ListView divider not showing in Android 5

佐手、 提交于 2019-12-18 21:17:53
问题 I have a simple listview for which I have defined a custom drawable for the divider. I have defined the divider height to be 1dp. The listview is within a fragment. <shape android:shape="line" > <stroke android:color="@color/custom_color" /> <gradient android:height="1dp" /> </shape> It works great for all Android versions except L. Anything I'm missing? 回答1: You should use android:shape="rectangle" instead of android:shape="line" to make it work on every android version... (also change

How to prevent Snackbar from closing?

我们两清 提交于 2019-12-18 18:54:00
问题 I'm using a control, called Snackbar, from a 3rd party library - github.com/navasmdc/MaterialDesignLibrary. The problem is that it is closing automatically , like a Toast. What i am trying to do: It should stay until i click btn Code snippet i am using new SnackBar(ActSplash.this, "Do you want change color of this button to red?", "yes", new View.OnClickListener() { @Override public void onClick(View v) { ButtonFlat btn = (ButtonFlat) findViewById(R.id.buttonSnackBar); //btn.setTextColor

Lollipop CalenderView DatePicker doesn't call OnDateChanged() method

我的未来我决定 提交于 2019-12-18 12:54:17
问题 I'm working with a DatePicker and finding that under Android 5.0 it will not call the OnDateChanged() method in its OnDateChangedListener when it's in CalendarView mode even though a new date has been selected. If android:datePickerMode="spinner" is set in the DatePicker's xml tag, the DatePicker will appear as spinners and it will call OnDateChanged() when a new date is selected. In earlier versions of Android, a DatePicker calls OnDateChanged() when a new date is selected in both

What is new in Drawable Tinting in Android L Developer Preview compared to previous version?

与世无争的帅哥 提交于 2019-12-18 12:49:28
问题 I am working of new Android L preview and now dealing with tinting concept on drawable. I want to know if there is anything new regarding drawable tinting in Android L Developer Preview. I read this this documentation which says: The Android L Developer Preview enables you to define bitmaps or nine-patches as alpha masks and to tint them using a color resource or a theme attribute that resolves to a color resource (for example, ?android:attr/colorPrimary ). You can create these assets only

Android lollipop shared elements transition blink / flash

不想你离开。 提交于 2019-12-18 12:49:21
问题 I see strange thing in my shared element transition on Lollipop. Shared elements are flickering just before they are starting to animate (please see video https://www.youtube.com/watch?v=DCoyyC_S-9A) I've no idea why it is happening. However when I add <item name="android:windowSharedElementsUseOverlay">false</item> to my theme I don't see flickering but the transition is not looking good (they look like only half of it is animating second half of animation 'hidden'). Other transition