android-support-library

Galaxy S4 SupportActionBar covers whole screen in ActionMode

北城以北 提交于 2019-12-05 20:58:44
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. 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"> For some reason those themes don't seem valid in the latest AppCompat libraries (I tried Widget.AppCompat.ActionMode

Open navigation drawer when options menu button is pressed

五迷三道 提交于 2019-12-05 19:52:57
问题 I'd like the navigation drawer opened when the options menu button is pressed. So in my Sherlock Fragment activity I added: @Override public boolean onCreateOptionsMenu(Menu menu) { if (!mDrawerLayout.isDrawerOpen(mDrawerLinear)) { mDrawerLayout.openDrawer(mDrawerLinear); } return true; } For some reason nothing happens when the options menu button is pressed. Otherwise the drawer is working fine. It opens when the app icon on the action bar is pressed or when I pull it. So what's wrong? 回答1:

Circular Reveal Android Compat With Design Library 28

蓝咒 提交于 2019-12-05 19:02:19
问题 How To Create A Circular Reveal Animation In Android With Design Library Version 28 I Saw few Classes Which They Are Have Reveal Word Like This Items : android.support.design.circularreveal.CircularRevealFrameLayout android.support.design.circularreveal.CircularRevealGridLayout android.support.design.circularreveal.CircularRevealLinearLayout android.support.design.circularreveal.CircularRevealRelativeLayout android.support.design.circularreveal.cardview.CircularRevealCardView android.support

Xamarin - Classes not found (android support library)

爷,独闯天下 提交于 2019-12-05 18:59:14
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 android.support.v4.content.Loader does not exist android.support.v4.content.Loader

Android TV: VerticalGridFragment shadow dimension and color

ⅰ亾dé卋堺 提交于 2019-12-05 18:33:12
I'm working on an Android TV application but I'm not quite happy with the standard shadow rendered by the VerticalGridFragment , I'd like to have it smaller and a bit less darker. I've searched through the code but I didn't find any full working solution. In my VerticalGridPresenter subclass, the only method I can override is createShadowOverlayOptions but I can't get the result I want. The only workaround I came up with is to define the following dimensions, so that the ones declared in the Support Library are overridden: <dimen name="lb_material_shadow_details_z">3dp</dimen> <dimen name="lb

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

雨燕双飞 提交于 2019-12-05 17:35:16
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? mohax So seems to be that it's an old-new bug in 23.2.0 version of support library. When I change my depencies to older version ( 23.1.1 ) bug dissapears. Now

Has the new Password Visibility Toggle broken existing drawableRight for EditTexts?

♀尐吖头ヾ 提交于 2019-12-05 17:16:08
问题 EDIT I just tried an EditText without a TextInputLayout and it works as expected. So the problem must be with new changes in the TextInputLayout . I have been using a custom EditText class as child of a TextInputLayout for around a month. When the user typed, an x would appear in the drawableRight field. I have successfully displayed images for drawableLeft , drawableTop , and drawableBottom , but setting drawableRight provides me with a blank. Note: Clicking the blank space where the X

Android Support Toolbar: Resizing won't realign menu items

我的未来我决定 提交于 2019-12-05 16:55:03
I try to resize the Android Support Toolbar of my Activity on orientation change as it is too big in landscape mode. It's not automatically resized as I'm using android:configChanges="orientation|screenSize" on my activity and thus the activity won't be recreated. The toolbar XML is like this: <android.support.v7.widget.Toolbar xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/my_awesome_toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" /> in my onConfigurationChanged() I'm resizing the toolbar e

How can I tell which Android Support Library v4 revision I use?

◇◆丶佛笑我妖孽 提交于 2019-12-05 14:31:29
问题 I can see in the Android SDK manager the version installed on my computer (in Android SDK manager), but usually a project uses its own copy from the libs folder. Is there a way I can tell which version is the android-support-v4.jar being used in a specific project besides the file date? Any method is considerable - by code / eclipse / file manager 回答1: in eclipse package explorer right click in your project select android tools -> Add supported Library there you see which supprt library

ActionBarActivity getSupportActionBar().hide() throws NullPointerException

混江龙づ霸主 提交于 2019-12-05 13:49:49
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> <item name="android:windowFullscreen">false</item> </style> note: getSupportActionBar() do not return