android-support-library

Unable to style action mode when using Toolbar

好久不见. 提交于 2019-12-28 12:28:11
问题 I'm not sure if this is a bug or somehow I'm not using the new Toolbar class properly. I'm able to successfully theme the ActionBar directly using one of the available themes. This also allows me to theme the ActionMode. Everything works perfect as expected. Here is how I'm doing that. <style name="Theme.ActionBar" parent="@style/Theme.AppCompat.Light.DarkActionBar"> <item name="actionModeBackground">@drawable/action_mode_background</item> </style> Now I'm looking for a little more

Back Arrow and Overflow Icons Wrong Color in Pre-Lollipop Devices After Updating to Support Library 23.2.0

给你一囗甜甜゛ 提交于 2019-12-28 09:13:29
问题 On pre-Lollipop devices, the overflow menu icon and back button on actionbar changed to black color after upgrading to Support Library 23.2.0. They are white (which is the right color) before the upgrade. The correct color is: The wrong color appears for pre-Lollipop devices after the upgrade, as shown with the overflow menu icon: The theme in sytle.xml (pre-v21/Lollipop): <resources xmlns:android="http://schemas.android.com/apk/res/android" > <!--Used on the application level by the manifest

No static method setOnApplyWindowInsetsListener exception in Android

巧了我就是萌 提交于 2019-12-28 06:58:32
问题 I downloaded yesterday Android Studio 2.1.3 (before I worked with 1.5) and now I have this exception: java.lang.NoSuchMethodError: No static method setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V in class Landroid/support/v4/view/ViewCompatLollipop; or its super classes (declaration of 'android.support.v4.view.ViewCompatLollipop' that stops my app on setContentView in the MainActivity. How can I solve this? 回答1: I had same issue. I

Setting up Gradle for api 26 (Android)

纵然是瞬间 提交于 2019-12-28 04:53:06
问题 Since I have upgraded my Nexus 5x to Android O DP3 I am not able to test my applications. I get the error for not having configured my Gradle-file to work with the new API-level (26). So I changed this and the dependencies, but I keep getting errors on ALL my support libraries like Failed to resolve: com.android.support:design:26.0.0-beta2 Clicking on Install repository and sync project Pops up a progressdialog for downloading the right dependency but does not remove the error. Cleaning up

FragmentActivity can not be tested via ActivityInstrumentationTestCase2

♀尐吖头ヾ 提交于 2019-12-28 03:43:08
问题 I have a problem executing android unit tests against android applications that utilize the recently released Fragment support API. When the test is run against a FragmentActivity the following error shows up in the log and the class fails to load. When run against an identical class, but one derived from Activity the test works fine. Both classes work correctly as apps! Meaning that when simply invoked they both display their layout and function correctly. The support jar is part of the

Error after updating the Android.Support Library v7 AppCompat to the 21.0.3 version

自闭症网瘾萝莉.ら 提交于 2019-12-28 03:42:07
问题 after updating the Android.Support Library v7 AppCompat to the 21.0.3 version I've got this errors: 1>C:\Program Files (x86)\MSBuild\Xamarin\Androi\Xamarin.Android.Common.targets(236,2): error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file C:\Users...\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded\classes.jar doesn't exist. 1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(236,2): error XA5207:

add 'tools:replace=“Android:value”' to <meta-data> element at AndroidManifest

我的未来我决定 提交于 2019-12-28 02:26:10
问题 I'm following a tutorial in HeadFirst Android development and encountered issues after adding: private ActionBarDrawerToggle drawerToggle; The control was deprecated so I followed instructions on Stack to resolve that issue by adding com.android.support:appcompat-v7:26.0.0-alpha1 to the app modules Dependencies But now I'm getting the following build errors: Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value

How can I install “Android Support Library” to deploy a Gluon Mobile application to Android?

不羁的心 提交于 2019-12-28 02:13:07
问题 I would like to develop an Android app using the Gluon Mobile framework. I installed the Gluon plugin in my Netbeans IDE, created a sample project and built it successfully. Now I would like to deploy the app to an Android device. I'm referring to the online documentation [1]: http://docs.gluonhq.com/charm/4.2.0/#_getting_started As in [1], section "2.1.3. Android", I downloaded Android Studio 2.2.3 and installed the build-tools version 23.0.1 and the SDK Platform for API 21 from the Android

Android error - Caused by: java.lang.NoClassDefFoundError: android.support.v4.util.SparseArrayCompat

别来无恙 提交于 2019-12-28 00:58:31
问题 I have these log errors when launching my app: > 05-20 01:48:35.312: E/AndroidRuntime(23032): FATAL EXCEPTION: main 05-20 01:48:35.312: E/AndroidRuntime(23032): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tomsyweb.suna/com.tomsyweb.suna.MainActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class com.origamilabs.library.views.StaggeredGridView 05-20 01:48:35.312: E/AndroidRuntime(23032): at android.app.ActivityThread

How to handle onContextItemSelected in a multi fragment activity?

一世执手 提交于 2019-12-27 16:40:58
问题 I'm currently trying to adapt my application to use the "Compatibility Libraries for Android v4" to provide the benefits of the usage of fragments even to Android 1.6 users. The implementation of a context menu seems to be tricky: The main activity of the application is extending the FragmentActivity class. The fragments are all based on one class which extends the Fragment class. The fragment class is calling registerForContextMenu() in its onCreateView() method and overrides the methods