android-support-library

Recyclerview onBindViewHolder called for all items when inside LinearLayout with weights

穿精又带淫゛_ 提交于 2019-12-09 14:14:34
问题 I recently updated from support library recyclerview-v7:23.1.1 to recyclerview-v7:25.1.0. My Layout contains 2 recylerviews splitted 50% on the screen. The xml code is as follows: <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <android.support.v7.widget.RecyclerView android:id="@+id/recyclerView1" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:scrollbars="none"/>

package android.support.v7.internal.view.menu does not exist: cannot find symbol class MenuBuilder

安稳与你 提交于 2019-12-09 07:51:31
问题 I just upgraded my support library from compile 'com.android.support:appcompat-v7:23.1.1' from compile 'com.android.support:appcompat-v7:23.1.0' . It gave me this error: package android.support.v7.internal.view.menu does not exist: cannot find symbol class MenuBuilder I use popupmenu's in my app. According to google, PopUpMenu inherits interface com.android.internal.view.menu.MenuBuilder.Callback and hence I got a list of errors when I gradle build my app: http://developer.android.com

VectorDrawable Backwards Compatibility And Installing Unofficial Support Libraries

本小妞迷上赌 提交于 2019-12-09 06:28:12
问题 Bear with me, I'm new! I want to use vectors in my android app, and I want my app to be backwards compatible. I found this support library that looks pretty cool!* So I'm confused about how I would I 'install' it. It gives you a link to download the .pom, .aar, javadoc.jar, and the sources.jar file. Which one should I download, and where (what folder) should I put the file? (I'm using Android Studio!) *(Anybody know a different VectorDrawable support library? I'd be interested in hearing

How can I refresh my ListFragment when it returns to the layout from back stack?

不想你离开。 提交于 2019-12-09 05:32:27
问题 First I should mention that I am using the ActionBarSherlock library for backwards compatibility. I have an activity which adds a ListFragment when it is first started. I have a custom Loader which I implemented and follows the AsnycTaskLoader example very closely. My ListFragment implements the LoaderCallbacks<Cursor> interface. All the appropriate callback methods are called when the fragment is added ( onCreateLoader() , onLoaderFinished() ) and when it is replaced ( onLoaderReset() ). My

Want to use ViewPager, cannot get android.support.* to be recognized?

偶尔善良 提交于 2019-12-09 03:34:42
问题 EDIT Sorry about all the pictures. I tried to give you the best idea of where I am at. I am trying to get ViewPager working on my application, but it will not recognize the Support Library that I downloaded in the SDK manager. I am coding for SDK Version 10. This is a screen shot of my SDK Manager : After installing the Android Support Library and the most recent Tools , I went to Help >> Check for Updates . After running this I receive the two pop ups shown below. The Problem Occured pop up

CollapsingToolbarLayout setTitle() not working anymore

[亡魂溺海] 提交于 2019-12-09 00:30:18
问题 The setTitle() method from CollapsingToolbarLayout had some bugs already (like showing only after a scroll, fixed in v22.2.1 ). Today I updated to v23.0.0 , and it is simply not working, like no title is shown. By calling it multiple times with a delay, I can see that sometimes the title is there, but it is really not reliable (like, you switch to another fragment, then back to the first, and there's no title anymore). I found there's a new attribute, app:titleEnabled or

How to find every version of android support libraries source code

丶灬走出姿态 提交于 2019-12-09 00:25:30
问题 I meets some problems so I want to find the source code of the Android support libraries . For example , I want to read the ActionBarActivity.java source code in version 19.0.1 and 20.0.0 in support.appcompat-v7 , and find out the difference between the two versions. I found the https://github.com/android/platform_frameworks_base , but the release have named as android-x.x.x_rxx but not like 19.0.1 . 回答1: You can download prebuilt source jars by version from here https://android.googlesource

Appcompat, compatibility, and support libraries for Lollipop if minimum SDK = 14

最后都变了- 提交于 2019-12-08 19:14:48
问题 We have an existing Android app that supports API Level 8 up to 18. We used compatibility libraries 19.1.0. Now we are changing/upgrading to: Minimum SDK = 14 Target = android-22 Now given that there are v4, v7, v13 support, compatibility, and appcompat libraries in different versions, I'm not sure which ones to include and which ones not. We are using maven for dependency management and using Maven SDK deployer 回答1: If you are using a minSDK of 14 then technically you do not need any of them

Android get Support Action Bar always returns NULL

爱⌒轻易说出口 提交于 2019-12-08 17:11:34
问题 I'm using the support library v7 on a certain project. I'm trying to instantiate the support action bar like this: ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); actionBar.setCustomView(R.layout.top_action_bar); actionBar.setDisplayShowCustomEnabled(true); actionBar.setHomeButtonEnabled(true); Everything works fine on Android devices with API lvl below 11. However, while trying to run the same

TextView autoSizeTextType not working in Compat

扶醉桌前 提交于 2019-12-08 17:03:38
问题 I tried using autoSizeTextType . My minSdk is 24, all the tools are 26 and compat ist 26-beta2 as well. Making them adjustable was tried through code: dialogWeight.touchables.filterIsInstance<Button>().forEach { TextViewCompat.setAutoSizeTextTypeWithDefaults(it, TextViewCompat.AUTO_SIZE_TEXT_TYPE_UNIFORM) } And xml: <android.support.v7.widget.AppCompatTextView android:layout_height="match_parent" android:text="7" android:autoSizeTextType="uniform"/> Any ideas ? I'm starting to believe that it