Tag: android-support-library

TextInputLayout animation overlaps the text when the text is set programmatically

I am using TextInputLayout with the design support library 22.2.1. I set the value of the EditText programmatically, and when the screen appears, I can see that the hint of the TextInputLayout overlaps the text inside, before moving in the floating position. Here a simple layout: <android.support.design.widget.TextInputLayout android:layout_width=”match_parent” android:layout_height=”wrap_content”> <EditText android:id=”@+id/editText1″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:hint=”hint1″ /> […]

Defect of image with ScriptIntrinsicBlur from support library

I am trying to blur an image with ScriptIntrinsicBlur from the RenderScript support library. I am using gradle and I have used this approach to use the Support Library version of RenderScript. On my Nexus 4, everything works fine and is really fast, but when I try it on my Samsung Galaxy S with Android […]

Using android support library 23.2 in build.gradle crashes app (XmlPullParserException: XmlPullParserException: invalid drawable tag vector)

The app is working just fine when using support library v23.1.1 plugin and run under Android 4.4.4 (API 19): compile ‘com.android.support:appcompat-v7:23.1.1’ compile ‘com.android.support:design:23.1.1’ compile ‘com.android.support:support-v4:23.1.1’ however when I build it using newer version (23.2) of android support library it crashes: XmlPullParserException: Binary XML file line #17: invalid drawable tag vector This happens when the app […]

Should I use AppCompat v7 if minsdk is 14

should I still use app compat v7 if my app has minSdk = 14? Is there any advantage with ActionBar in Android L ? Should I use android.support.v4.app.FragmentActivity from support v4 or should I use the android.app.Activity class (which has support for fragments since honeycomb)? Should I also use android.app.Fragment or android.support.v4.app.Fragment? I guess that […]

View can not be anchored to the the parent CoordinatorLayout

this is not my app, this is nordic app that put its source on github and I am trying to run the soutce on my machine. but i keep having this error : 03-07 07:12:13.641 12622-12622/com.noxel.apppaneladmintry2 E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.noxel.apppaneladmintry2, PID: 12622 java.lang.IllegalStateException: View can not be anchored to the the parent CoordinatorLayout […]

Can't find android.support.design.widget.Snackbar in support design library

I develop own library module where I use Snackbar. Here is my Gradle file: apply plugin: ‘com.android.library’ android { compileSdkVersion 23 buildToolsVersion “23.0.2” defaultConfig { minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName “1.0” } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } } } dependencies { compile fileTree(include: [‘*.jar’], dir: ‘libs’) testCompile ‘junit:junit:4.12’ […]

IllegalStateException: Fragment <ThisFragment> is not currently in the FragmentManager

I have trouble of tracing the cause of the crash in my app. I have a fragment that displays a ListView, I also have SlidingMenu for a search field. And when I search, the ListView items are repopulated basing from the search results. Now, my app crashes when I try to open a ListView item […]

“Field can be converted to a local variable” message appearing when setting action bar colour

After setting the colour of the action bar, actionBarColor in private String actionBarColor = “#B36305”; gets highlighted yellow and a warning is returned for some reason. What can be done to get rid of this warning? Field can be converted to a local variable public class MainActivity extends AppCompatActivity { private String actionBarColor = “#B36305”; […]

How to add “Android Design Support Library” to Eclipse with ADT-plugin?

The Android Developers Blog announced in May 2015: The Design library is available now, so make sure to update the Android Support Repository in the SDK Manager. I am using Eclipse (Version: Luna 4.4.2) with latest ADT-plugin and don’t see anything “design” in the SDK manager: When trying to use android.support.design.widget.FloatingActionButton or android.support.design.widget.NavigationView in my […]

DrawerLayout – Exception dispatching input event

I recently started using the DrawerLayout in a new project about a week ago and it’s all working fine. Apart from the odd times when swiping it in and out with my finger it’ll crash. If I use the ActionBar Up/Home MenuItem though, it’ll work fine every time. In LogCat i get two stacktraces that […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.