android-support-library

Upgraded to AppCompat v22.1.0 and now onKeyDown and onKeyUp are not triggered when menu key is pressed

柔情痞子 提交于 2020-01-19 05:17:12
问题 I've just upgraded my app to use the newly released v22.1.0 AppCompat and now onKeyDown and onKeyUp are not triggered when menu key is pressed. The other keys correctly trigger onKeyDown and onKeyUp , but when i press the menu key nothing happens. If I downgrade to v22.0.0 everything returns to work properly. How do I fix it? 回答1: Update 23 August This has been fixed again in the v23.0.0 of appcompat-v7 support library. Update to the last version to see this fixed. Update 19 July

package android.support.v4.app does not exist ; in Android studio 0.8

て烟熏妆下的殇ゞ 提交于 2020-01-18 21:37:49
问题 I've recently updated the android studio IDE to 0.8 to work with the new android L SDK. To start I imported a finished android project that receives no errors in the older version of android studio. In version 0.8 i lines such as import android.support.v4.app.Fragment; get: Support cannot be resolved causing the rest of the code to have errors. The logcat returns 101 instances of Error:(8, 30) error: package android.support.v4.app does not exist 1 for each time I call the support library in

package android.support.v4.app does not exist ; in Android studio 0.8

♀尐吖头ヾ 提交于 2020-01-18 21:37:27
问题 I've recently updated the android studio IDE to 0.8 to work with the new android L SDK. To start I imported a finished android project that receives no errors in the older version of android studio. In version 0.8 i lines such as import android.support.v4.app.Fragment; get: Support cannot be resolved causing the rest of the code to have errors. The logcat returns 101 instances of Error:(8, 30) error: package android.support.v4.app does not exist 1 for each time I call the support library in

package android.support.v4.app does not exist ; in Android studio 0.8

余生颓废 提交于 2020-01-18 21:36:10
问题 I've recently updated the android studio IDE to 0.8 to work with the new android L SDK. To start I imported a finished android project that receives no errors in the older version of android studio. In version 0.8 i lines such as import android.support.v4.app.Fragment; get: Support cannot be resolved causing the rest of the code to have errors. The logcat returns 101 instances of Error:(8, 30) error: package android.support.v4.app does not exist 1 for each time I call the support library in

Use Tab with new ToolBar (AppCompat v7-21)

ぃ、小莉子 提交于 2020-01-18 04:10:27
问题 I was using SupportActionBar with tabs and a custom ActionBar theme (created with http://jgilfelt.github.io/android-actionbarstylegenerator/), that show the tabs only when the user expands the search view. public boolean onMenuItemActionExpand(MenuItem item) { actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); return true; } } I migrated from ActionBar to Toolbar. My app really needs to support API 9. Is there a way to use this code to add the tabs back?: Toolbar toolbar = (Toolbar)

cannot find android support library

本秂侑毒 提交于 2020-01-16 19:35:07
问题 please notice that i searched a lot so this is not a duplicated question searched these with no answer Can't find Android Support Package Cant' find Android Support package How to add "Android Design Support Library" to Eclipse with ADT-plugin? https://developer.android.com/topic/libraries/support-library/setup.html#using-apis i just want to be able to use TabLayout as when i use it it says cannot resolve 'TabLayout' symbol. and when i try to import it import android.support.design.widget

Android CardView padding and minHeight

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 14:25:48
问题 Today I updated support dependencies in my project and I found some issues with the new CardView . Previous version: compile 'com.android.support:cardview-v7:21.0.0-rc1@aar' Current version: compile 'com.android.support:cardview-v7:21.0.0@aar' First of all it looks like minHeight doesn't work any more. One of the solutions is to put any ViewGroup inside the card and set the minimum height, but it looks like a bug for me. The second issue for me are paddings. With the new library release

Android CardView padding and minHeight

孤者浪人 提交于 2020-01-15 14:24:24
问题 Today I updated support dependencies in my project and I found some issues with the new CardView . Previous version: compile 'com.android.support:cardview-v7:21.0.0-rc1@aar' Current version: compile 'com.android.support:cardview-v7:21.0.0@aar' First of all it looks like minHeight doesn't work any more. One of the solutions is to put any ViewGroup inside the card and set the minimum height, but it looks like a bug for me. The second issue for me are paddings. With the new library release

Appcompat v7 and ActionBarActivity

邮差的信 提交于 2020-01-15 12:29:11
问题 I'm following this tutorial to make and app with action bar for 2.3.x devices. But i cannot import appcompat-v7 to my projecto... It gives me lots of errors like these: [2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-v21\themes_base.xml:194: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'. [2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-v21\themes_base.xml:195: error: Error: No resource

Error:Execution failed for task ':app:processDebugAndroidTestManifest'

和自甴很熟 提交于 2020-01-15 09:16:09
问题 this is what happened when i update buildToolsVersion from 26.0.1 to 26.0.2 . Error:Execution failed for task ':all:processDebugAndroidTestManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.2) from [com.android.support:cardview-v7:26.0.2] AndroidManifest.xml:25:13-35 is also present at [com.android.support:support-v13:26.0.1] AndroidManifest.xml:28:13-35 value=(26.0.1). Suggestion: add 'tools:replace="android:value"' to element at