android-support-library

Error while importing android-support-v7-appcompat error: Error: No resource found

南笙酒味 提交于 2019-12-08 01:50:37
问题 I have followed the eaxct method found at ./sdk/docs/tools/support-library/setup.html but when import v7-appcompat into workspace , it gives the error in the Android Manifest File error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/ Theme.AppCompat'). 回答1: Ok found a way do it. .. I changed the v7-appcompat project's(in the workspace) target sdk version to latest version , then i right clicked the project closed it , and then opened it again ,

BottomNavigationView hides when scrolling up instead of down

本小妞迷上赌 提交于 2019-12-08 00:25:45
问题 The new BottomNavigationView from support library v25.0.0 is supposed to hide when scrolling down, in order to see all the items from a list. However, in my testing scenario, the view hides when scrolling up. Any ideas what can cause this reverse behavior? The inner_fragment is set up as a Fragment inserted inside the activity_main_framelayout_content Framelayout. XML layouts below: main_activity.xml: <android.support.design.widget.CoordinatorLayout android:id="@+id/activity_main

Galaxy S4 SupportActionBar covers whole screen in ActionMode

强颜欢笑 提交于 2019-12-07 15:26:36
问题 The Samsung Galaxy S4 shows a very weird behavior when going into ACtionMode on my app which is using SupportActionBar from Support-v7. Has anyone an idea how to fix this? I guess the issue comes from Samsung custom Android-Rom. 回答1: I solved this changing the parent of my custom actionmode theme from: <style name="MyApp.Widget.ActionMode" parent="@style/Widget.AppCompat.ActionMode"> to: <style name="Apo.Widget.ActionMode" parent="@style/Widget.AppCompat.Light.ActionMode.Inverse"> 回答2: For

Xamarin - Classes not found (android support library)

旧巷老猫 提交于 2019-12-07 14:32:48
问题 I'm trying to implement Material Design with backward compatibility using AppCompat. Following the tutorial. But I'm getting the following error Error 1 error: package android.support.v4.app.FragmentManager does not exist android.support.v4.app.FragmentManager.OnBackStackChangedListener C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\app\FragmentManager_OnBackStackChangedListenerImplementor.java 8 41 TemaMaterial Error 2 error: package

PagerTabStrip not showing in ViewPager in app targeting Android 6.X (N)

一笑奈何 提交于 2019-12-07 10:06:47
问题 I have an existing app that makes use of ViewPager and PagerTabStrip and this has been working for a long time with various releases of the Android SDK and the com.android.support:appcompat-v7 library. I've just bumped up the compile and target SDK versions of my app from 23 to 24 and the com.android.support:appcompat-v7 library version from 23.4.0 to 24.0.0 ... and I now see that the PagerTabStrip is totally missing from the ViewPager . (Not just missing titles in the PagerTabStrip ... the

ActionBarActivity getSupportActionBar().hide() throws NullPointerException

泄露秘密 提交于 2019-12-07 10:05:11
问题 Call if (getSupportActionBar() != null) getSupportActionBar().hide(); or just: getActionBar() in android.support.v7.app.ActionBarActivity I get such exception: ... java.lang.NullPointerException at android.support.v7.app.ActionBarImplICS.hide(ActionBarImplICS.java:302) at android.support.v7.app.ActionBarImplJB.hide(ActionBarImplJB.java:20) ... EDIT: it just happens when activity have Theme: <style name="MyTheme" parent="Theme.AppCompat.Light"> <item name="android:windowNoTitle">true</item>

Travis CI Android - Can't find version that matches

柔情痞子 提交于 2019-12-07 08:13:45
问题 Hy people, I'd like to test my android application with Travis after pushing to Github. Unfortunately, I have an issue I can't solve for days: Could not resolve all dependencies for configuration ':app:_defaultFlavorDebugCompile'. > Could not find any version that matches com.google.android.gms:play-services:5.+. Required by: weightlifting_app_schwedt:app:unspecified > Could not find any version that matches com.android.support:support-v4:20.+. Required by: weightlifting_app_schwedt:app

SwipeRefreshLayout prevents AppBarLayout scrolling down with showing refresh circle after updating support libs to 23.2.0

删除回忆录丶 提交于 2019-12-07 07:51:14
问题 After updating google libs to 23.2.0 faced issue, that was in previous support libs version (as I remember it was 22+ or 23.1.0 ). I have RecyclerView in SwipeRefreshLayout , which is in CoordinatorLayout that have AppBarLayout with CollapsingToolbarLayout . So when I now have CollapsingToolbarLayout not fully expanded and try to expand it the swipeRefresh indicator appears, instead of expanding CollapsingToolbarLayout . What can I do? 回答1: So seems to be that it's an old-new bug in 23.2.0

Customize Padding of ActionBar Tabs Support

半腔热情 提交于 2019-12-07 06:49:14
问题 I want to remove the padding (spaces) between the tabs of the ActionBar. I am using the Android Support Library V7 (Appcompat) to use Fragments and the ActionBar in Android 2.2 API 8 as minSDK and 4.4 API 19 as maxSDK. I have tried the following but it does not change anything. My styles.xml <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light"> </style> <style name="AppTheme" parent="AppBaseTheme"> <item name="

Nested fragment with wrong activity reference after configuration change

久未见 提交于 2019-12-07 05:41:27
问题 I'm finally looking into the new nested fragments APIs in the support library revision 11. Everything It worked pretty well till I tried to use the activity reference held by the nested fragments. After a configuration change the childFragment doesn't seem to get detached and re-attached to the new activity. Basically after an orientation change my childFragment is in an inconsistent state from which I can't get the correct activity instance with getActivity(). I manged to get the correct one