android-5.0-lollipop

Why is my Button text forced to ALL CAPS on Lollipop?

戏子无情 提交于 2019-12-17 02:28:33
问题 In my app "Tide Now WA" which I recently tested for compatibility using the new Nexus 9 tablet (Lollipop - API 21). It writes some button text. This app writes the text correctly using Android 2.3 and Android 4.0. I.e. mixed capital and lower case letters. When same app is run on my Nexus 9 all the letters in the text are capitalized. FWIW my manifest contains the following statement: uses-sdk android:minSdkVersion="10" android:targetSdkVersion="14" Can I fix this in my code or is it a bug in

Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L Dev Preview

核能气质少年 提交于 2019-12-17 02:09:36
问题 My in-app billing code was working fine until I upgraded to the Android L Dev Preview. Now I get this error when my app starts. Does anyone know what's changed about L that causes this or how I should change my code to fix this? android { compileSdkVersion 'android-L' buildToolsVersion '20' defaultConfig { minSdkVersion 13 targetSdkVersion 'L' ... ... compile 'com.google.android.gms:play-services:5.+' compile 'com.android.support:support-v13:21.+' compile 'com.android.support:appcompat-v7:21.

No shadow by default on Toolbar?

做~自己de王妃 提交于 2019-12-17 02:05:08
问题 I'm updating my app with the new Toolbar from the support library v21. My problem is that the toolbar does not cast any shadow if I don't set the "elevation" attribute. Is that the normal behavior or I'm doing something wrong? My code is: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <android.support.v7.widget.Toolbar xmlns:app="http://schemas.android.com/apk/res

DexIndexOverflowException issue after updating to latest appcompat and support library

…衆ロ難τιáo~ 提交于 2019-12-16 20:13:38
问题 I'm using the below settings through gradle : compileSdkVersion 21 ANDROID_BUILD_MIN_SDK_VERSION=14 ANDROID_BUILD_TARGET_SDK_VERSION=21 ANDROID_BUILD_TOOLS_VERSION=21.0.2 ANDROID_BUILD_SDK_VERSION=21 I also have the following settings in my gradle file: compile 'com.android.support:support-annotations:21.0.0' compile 'com.android.support:appcompat-v7:21.0.0' compile 'com.android.support:support-v4:21.0.0' I always get the error UNEXPECTED TOP LEVEL EXCEPTION . But when I make the 21.0.0 to 20

How to y-offset the Android 5 Lollipop shadow direction

我们两清 提交于 2019-12-14 04:07:57
问题 I used the android material design library to make a tab strip like this. I added a view at the bottom of the screen like so. Right now, I am trying to add the shadow effect from the top widget to the bottom view. I found a solution in the form of an answer to this question. The only way I found to create a top shadow was to modify some of the source of the Android compatibility v7 CardView project. This project brings the CardView class to older Android versions and thus also includes the

Is there any legitimate use for @+android:id?

荒凉一梦 提交于 2019-12-14 03:52:39
问题 After I upgraded my android tools to latest version to work on API21 , trying to compile my project resulted in the following error: update_languages_button_preference_layout.xml:2: note: did you mean to use @+id instead of @+android:id ? update_languages_button_preference_layout.xml:2: error: creating resource for external package android: id/layout. update_languages_button_preference_layout.xml:2: error: Error: No resource found that matches the given name (at 'id' with value '@+android:id

EditText hint not showing in 5.0.1

自闭症网瘾萝莉.ら 提交于 2019-12-14 03:47:57
问题 I have the latest 5.0.1 update and the EditText hint has stopped showing: I have: <EditText android:id="@+id/editTextLocation" android:layout_width="wrap_content" android:layout_marginEnd="5dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:layout_marginStart="5dp" android:layout_weight="80" android:clickable="false" android:focusable="false" android:focusableInTouchMode="false" android:hint="@string/chooseLocationHint" android:longClickable="false" android:textColor

Contextual Action Mode not filtering touches

北慕城南 提交于 2019-12-14 03:46:50
问题 The contextual action mode, when overlayed on top of an android.support.v7.widget.Toolbar, does not appear to filter touches over its entire width, but lets touches "fall through" to (invisible) widgets on the Toolbar. My Toolbar contains a custom widget (one of the declared benefits of Toolbar). I have the contextual action mode styled to overlay the toolbar, and it hides it entirely. However, when I touch where the (now obscured) custom widget was located, the touch passes through to it. I

Morph floating action button into related actions

微笑、不失礼 提交于 2019-12-14 02:47:19
问题 I would like to morph the floating action button into related actions after it is first touched. If one of these buttons gets clicked the corresponding action will be performed and the buttons morph back to the single floating action button. If you touch anywhere else on the screen, no action will be performed and the buttons morph back to the single floating action button. Lets image the example of a simple editor, that implements an action button to create a new file. Clicking this action

Service is not waking up device as it should

戏子无情 提交于 2019-12-14 00:38:35
问题 My application do a repeating request each second - asking the server for a new data, and if there is such - it wakes up the device and run the main application. ( this is by the request from the users, and they does not care about the battery usage, it is mandatory to run each second. It is Highly Critical Operation ) ( any changes to the settings which could help is allowed by the user ) I am curently trying to achieve this by using either AlarmManager or System.Threading.Timer ( tried with