android-support-library

can't access to TextView

怎甘沉沦 提交于 2020-01-06 05:01:33
问题 I have MainActivite. And I try to set text to TextView tvUserName. Until today everything was Ok, but now I can't access to this variable by findViewById. Value of this variable is null. Maybe it's a wrong code, and it's stopped to work correctly after system libs update. I didn't do anything special, and don't understand what to do. Caused by: java.lang.NullPointerException when I try to set text to this variable private static TextView tvUserName; @Override protected void onCreate(Bundle

Incompatible libraries in gradle

社会主义新天地 提交于 2020-01-06 03:10:05
问题 i want to use gcm in my app, but while adding dependancies in gradle file i got error of incompatible libraries. my app level gradle file have dependancies as follows .. apply plugin: 'com.google.gms.google-services' . . . . . dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.android.support:cardview-v7:23.1.1' compile 'com.android.support

Spinner black text color in dark theme AppCompat v23

社会主义新天地 提交于 2020-01-06 01:45:14
问题 My theme extends from Theme.AppCompat but the text color is black like the background with the light theme works perfect this problem is only in API 10 (2.3.6) with above version works perfect. i use a AppCompatSpinner and my activity extends from AppCompatActivity 来源: https://stackoverflow.com/questions/32661614/spinner-black-text-color-in-dark-theme-appcompat-v23

ViewPager.PageTransformer showing error ViewPager cant rersolved to a type i am using androidsupportv4 jar revision 9

99封情书 提交于 2020-01-05 04:30:10
问题 I am unable to get the androidsupportv4 revision 11 from eclipse by using AndroidTools enter AddSupportLibrary can anyone please tell me how to get it from Eclipse why i am not able to get it.I know its ViewPager.PageTransformer added in androidsupportv4.jar revision 11.is there any way to fix it..Because i have some problem with my network i am not able to get or install new version. 回答1: Well i fixed this problem i downloaded a new version of Android SDK ADT Bundle and i extract the android

How to support API levels < 14?

自闭症网瘾萝莉.ら 提交于 2020-01-04 10:59:05
问题 As it is known, the minimum API level for using the Android support library is 14 now. I would like to release a new version of my app (currently minSdk 15 and targetSdk 27) to support API < 14 (down to Froyo at the minimum if possible). Why you ask? I do not plan to keep supporting for these old system versions, but rather just to fix one critical bug to help the numerous users I have on these platforms - a bug which will actually help them export their data to newer versions. When changing

inflate android.support.v4.widget.CircleImageView inflateException

女生的网名这么多〃 提交于 2020-01-04 02:53:11
问题 I started migrating my app to material design so I changed one of my ImageViews to android.support.v4.widget.CircleImageView and the app crashes the fact is that it can't inflate it but if I use the same as CircleImageView from android v21 on a lollipop device works perfectly with the same attributtes. so to test it alone I've created a new project with only this View under the layout and still crashes. <android.support.v4.widget.CircleImageView android:id="@+id/activity_lists_user_profile

TextInputLayout Crashing in Android Lollipop and Above

不羁的心 提交于 2020-01-03 18:54:09
问题 I am using TextInputLayout in one of my app layouts. My app is crashing on user's devices with Lollipop(5.1) version and above. Below is the error android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused by android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused

TextInputLayout Crashing in Android Lollipop and Above

人盡茶涼 提交于 2020-01-03 18:54:07
问题 I am using TextInputLayout in one of my app layouts. My app is crashing on user's devices with Lollipop(5.1) version and above. Below is the error android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused by android.view.InflateException: Binary XML file line #34: Binary XML file line #2: Error inflating class android.support.design.widget.TextInputLayout arrow_drop_down Caused

Set tab indicator position programatically in TabLayout support library

怎甘沉沦 提交于 2020-01-03 16:49:41
问题 In my application i am using TabLayout from support library with view pager.I have 3 fragments in it.Suppose i am in fragA which has a button which on clicked takes me to fragB.I am sucessfully going to fragB but only problem is that the tab indicator remains at fragA. Code private void setupTablayout() { tabLayout = (TabLayout) findViewById(R.id.tabLayout); tabLayout.setTabGravity(TabLayout.GRAVITY_FILL); tabLayout.setupWithViewPager(viewPager); viewPager.setCurrentItem(1, true); tabLayout

Dependencies are up-to-date but Gradle thinks not

余生颓废 提交于 2020-01-03 13:40:10
问题 Why does Gradle give this error about dependencies when I have used the latest and same version? This has only just started today and I'm lost as to how to fix this: All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-media-compat:26.1.0 dependencies { implementation fileTree(include: ['*