android-support-library

Collapsing toolbar and nestedscrollview not scrolling smoothly

大兔子大兔子 提交于 2019-12-21 03:25:36
问题 Nested scroll view scrolls smoothly on scrolling down but on scroll up it is sluggish.Collapsing toolbar(with an image view and framelayout) upon scrolling up doesn't renders its content(remains blank). I have tried every flag in collapsing toolbar. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/coordinatorLayout"

FragmentTransation setCustomAnimations not working

大憨熊 提交于 2019-12-21 03:12:22
问题 I trying to use the new android compatibility package to include fragments into my project. I am trying to include a transition animation when I add a new fragment. The thing is only one of my animation work. The In animation works but the Out animation doesn't work. I read somewhere that it is a bug in the compatibility package. But I also read that the bug was fixed in the 3rd revision of the compatibility package. Can anyone help me with this issue In Animation <translate xmlns:android=

How to use layout weight in GridLayout for APIs lower than 21

爷,独闯天下 提交于 2019-12-21 02:35:10
问题 I want to evenly spread 8 buttons using GridLayout . I want to support the APIs lower than 21 (which is the minimum number that supports layout_columnWeight and layout_rowWeight in GridLayout ) Here's my code <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin

How to handle mixed RTL & LTR languages in notifications?

落花浮王杯 提交于 2019-12-20 23:29:32
问题 Background Android 4.3 has added a lot of support for RTL (Right-To-Left) languages, such as Hebrew and Arabic. The problem Even though there is "textDirection", "layoutDirection" and "gravity", I can't find the equivalents for the notification builder, not even in the compatibility library. This means that if there are Hebrew and English words together, the order is wrong. For example (and I write in English for simplicity) : Instead of "X called Y" , you get "Y called X" (suppose "called"

Android SDK Version 25 - android.support v7:25 gives “No resource found that matches @color/hint_foreground_material_light” Adobe Creative SDK?

放肆的年华 提交于 2019-12-20 17:34:25
问题 I get the following error while the gradle sync/build after switching the compileSdkVersion to 25 and using the latest android.support library versions. compile 'com.android.support:appcompat-v7:25.0.0' compile 'com.android.support:design:25.0.0' compile 'com.android.support:recyclerview-v7:25.0.0' Error: No resource found that matches the given name (at 'android:textColorHint' with value '@color/hint_foreground_material_light'). Any idea? EDIT: I think thats because of Adobe Creative SDK...

How do I disable Android @IntDef annotation checks in special cases?

北城余情 提交于 2019-12-20 16:30:07
问题 One such case is reading an int from a Bundle and storing it into the variable restricted by @IndDef annotation: public class MainActivity extends ActionBarActivity { @IntDef({STATE_IDLE, STATE_PLAYING, STATE_RECORDING}) @Retention(RetentionPolicy.SOURCE) public @interface State {} public static final int STATE_IDLE = 0; public static final int STATE_PLAYING = 1; public static final int STATE_RECORDING = 2; @MainActivity.State int fPlayerState = STATE_IDLE; @Override protected void onCreate

How do I disable Android @IntDef annotation checks in special cases?

坚强是说给别人听的谎言 提交于 2019-12-20 16:30:07
问题 One such case is reading an int from a Bundle and storing it into the variable restricted by @IndDef annotation: public class MainActivity extends ActionBarActivity { @IntDef({STATE_IDLE, STATE_PLAYING, STATE_RECORDING}) @Retention(RetentionPolicy.SOURCE) public @interface State {} public static final int STATE_IDLE = 0; public static final int STATE_PLAYING = 1; public static final int STATE_RECORDING = 2; @MainActivity.State int fPlayerState = STATE_IDLE; @Override protected void onCreate

android pdf viewer with vertical paging

白昼怎懂夜的黑 提交于 2019-12-20 15:25:17
问题 I am developing app for android which has pdf to view. The PDF are in build into the app, so I have to just load pdf to view correctly. There should be no option to share and all other stuff, but the user should be able to zoom the pdf. I have used mupdf but the pdf scrolls horizontally (ie. the pages are side-by-side), I want the pdf to scroll vertically. I have tried everything but I am not getting result. 回答1: You can do by changing the horizontal values to vertical ( change all width

including list_content into list layout to retain ListFragment functionality

徘徊边缘 提交于 2019-12-20 12:29:55
问题 First of, I'm using The Android Compatibility Library V4 rev.3 for my 1.6(Donut) When you first create a ListFragment it displays an indeterminant progress indicator untill you use setListAdabpter(). According to the documentation of ListFragment.onCreateView, if I want to use a custom lay out: If you are overriding this method with your own custom content, consider including the standard layout {@link android.R.layout#list_content} in your layout file, so that you continue to retain all of

Vector Drawables flag doesn't work on Support Library 24+

那年仲夏 提交于 2019-12-20 11:21:12
问题 Today, it seems as though Android Nougat was released. Thus, I am more excited than ever to optimize my app for the new features like split-screen. I would like to push a version of my app that targets SDK version 24 so that users aren't notified that my app may not work in split-screen. However, doing so means that I should also update to version 24 of the Support Library. Like many others, I experienced a problem when updating to version 23.2.0 of the Support Library. However, I followed