android-support-library

String types not allowed (at 'blue' with value '')

旧城冷巷雨未停 提交于 2019-12-29 09:34:10
问题 I am getting following error in appcompat-v7 library building the project. Error:(380, 5) String types not allowed (at 'blue' with value ''). \app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.1.1\res\values\values.xml appcompat-v7 library values.xml file where this error is occuring: <!-- this line --> <style name="Base.TextAppearance.AppCompat.SearchResult" parent=""> <item name="android:textStyle">normal</item> <item name="android:textColor">?android:textColorPrimary

Gridview v7 support for older api android.support.v7.widget.Gridlayout failed to instaniate

老子叫甜甜 提交于 2019-12-29 09:06:10
问题 I've been trying to use the v7 support library to use a grid layout in my android project. I've seen that many people have had the same issues that I'm having but all of their fixes don't work for me. I've updated java. I've updated the latest support library. I've added the support package to the build path. I've tried dragging a gridview onto a view and allow eclipse import the package. Non of these work. I continue to get android.support.v7.widget.GridLayout failed to instantiate. I even

Gridview v7 support for older api android.support.v7.widget.Gridlayout failed to instaniate

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 09:06:05
问题 I've been trying to use the v7 support library to use a grid layout in my android project. I've seen that many people have had the same issues that I'm having but all of their fixes don't work for me. I've updated java. I've updated the latest support library. I've added the support package to the build path. I've tried dragging a gridview onto a view and allow eclipse import the package. Non of these work. I continue to get android.support.v7.widget.GridLayout failed to instantiate. I even

Android fragments setRetainInstance(true) not works (Android support library)

爷,独闯天下 提交于 2019-12-29 08:08:13
问题 I have a problem with saving fragment state. I try to use setRetainInstance, but cant make it work((( I change a state to 2 using button1, but after changing screen orientation i see 1 when pressing on button2. Where is my mistake? public class TestFragment extends Fragment { @Override public void onCreate(Bundle savedInstanceState) { setRetainInstance(true); super.onCreate(savedInstanceState); } private String state = "1"; @Override public View onCreateView(LayoutInflater inflater, ViewGroup

Android: Compilation error with v7 support lib 27.1.0 “Program type already present” android.support.v7.recyclerview.extensions.ListAdapter

喜夏-厌秋 提交于 2019-12-29 07:32:27
问题 I think there must be a bug with the 27.1.0 v7 support lib, just released. After updating my project to use it (from 26.1.0), I keep getting this compilation error: Task :app:transformDexArchiveWithDexMergerForRegularDebug FAILED D8 is used to merge dex. Program type already present: android.support.v7.recyclerview.extensions.ListAdapter FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:transformDexArchiveWithDexMergerForRegularDebug'. com.android.build

Exception : android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.CardView

断了今生、忘了曾经 提交于 2019-12-29 06:21:08
问题 I am using CardView of support library in my android app. I tried 4-5 hours to resolve this but i could not get success. I have added CardView as a library in my project & v7 appcompat also <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="5dp" android:orientation="horizontal" app:cardCornerRadius="4dp"

Recycler view inside NestedScrollView causes scroll to start in the middle

吃可爱长大的小学妹 提交于 2019-12-29 02:21:11
问题 I am getting a weird scrolling behavior when I add a RecyclerView inside a NestedScrollView. What happens is that whenever the scrollview has more rows than can be shown in the screen, as soon as the activity is launched, the NestedScrollView starts with an offset from the top (image 1). If there are few items in the scroll view so that they can all be shown at once, this doesn't happen (image 2). I am using version 23.2.0 of the support library. Image 1 : WRONG - starts with offset from the

Recycler view inside NestedScrollView causes scroll to start in the middle

微笑、不失礼 提交于 2019-12-29 02:20:24
问题 I am getting a weird scrolling behavior when I add a RecyclerView inside a NestedScrollView. What happens is that whenever the scrollview has more rows than can be shown in the screen, as soon as the activity is launched, the NestedScrollView starts with an offset from the top (image 1). If there are few items in the scroll view so that they can all be shown at once, this doesn't happen (image 2). I am using version 23.2.0 of the support library. Image 1 : WRONG - starts with offset from the

android-support-v7-appcompat library project won't work

徘徊边缘 提交于 2019-12-29 01:40:08
问题 I am trying to add Support Library v7 to my clean android project as support library (with resources). I followed every instruction here: http://developer.android.com/tools/support-library/setup.html#download and android.support.v7.* package is not visible in my main project. Here is library reference in main project: Support library project tree: Support library project build path: And finally, my main project tree I don't see any errors in Problems tab, app compiles and runs normally but i

Android Proguard configuration for the v7 Support Library ActionBar

余生颓废 提交于 2019-12-28 16:45:48
问题 I'm using the v7 Support Library to show an ActionBar on Android 2.x. It works well enough but I had to fix a few class/method not found errors after enabling Proguard. Are there any guidelines on which classes need to be preserved? So far I have these: -keep public class android.support.v7.internal.widget.ActionBarContainer -keep class android.support.v7.internal.widget.ActionBarView$HomeView -keep public class android.support.v7.internal.widget.ActionBarContextView It seems to work now but