Tag: android-support-library

Android project complaining “The type bolts.Task cannot be resolved. It is indirectly referenced from required .class files”

I’m trying to go through the Parse Mealspotting tutorial, but after adding the Parse library I’m getting weird errors. I’ve found other similar errors while googling, but nothing that has worked. Here’s one. I also read to look at Adding the Support Libraries, but that didn’t fix it. Exact text is: Multiple markers at this […]

NullPointerException: with ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference

strong textI get this nullPointerException on runtime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘void android.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)’ on a null object reference code from mainActivity: package com.example.vasilis.spangreek; import android.app.ActionBar; import android.app.Activity; import android.content.res.Configuration; import android.content.res.TypedArray; import android.os.Bundle; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.app.AppCompatActivity; import android.util.DisplayMetrics; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.ExpandableListView; import java.util.ArrayList; […]

Access the ActionBar from within a Fragment

How do you access the ActionBar from within a Fragment (android.support.v4.app.Fragment). I am using the Android Support Library v4 and v7. I’m not using the Sherlock library’s. The activity hosting the fragment is an ActionBarActivity. I have read the Android help section Fragment which led me too getActivity() but there is no getSupportActionBar() method. ActionBar […]

How to avoid DEX 64K LIMIT by importing the right library

I had this issue where I overflow the 64k method limit in Dalvik when compiling all the library I used. I started to have this issue when I imported the Support Library, as some are already contained in others, it ended up overflowing the limit. Is there a way to verify if a library is […]

Remove BottomNavigationView labels

Google released new support library v25 with BottomNavigationView is there any way to remove items labels ?

No resource identifier found for attribute 'layoutManager' in package 'android.support.design'

I added ‘android.support.design’ library as a dependency in my project but the following error was found. No resource identifier found for attribute ‘layoutManager’ in package ‘android.support.design’ What I have done so far.. Update to latest support library version Add appcompat as its dependency (of “design library”) Check “design library” as a Library Module Please help.

AnimatedVectorDrawable in Support Library and animation of “pathData”

I am using animated vectors from Support Library 23.2.0, like this: compile ‘com.android.support:support-vector-drawable:23.2.0’ compile ‘com.android.support:animated-vector-drawable:23.2.0’ I am trying to animate “pathData” (morphing lines one to another). My code looks like this. drawable/ic_done.xml: <?xml version=”1.0″ encoding=”utf-8″?> <vector xmlns:android=”http://schemas.android.com/apk/res/android” android:width=”24dp” android:height=”24dp” android:viewportHeight=”24.0″ android:viewportWidth=”24.0″> <path android:name=”tick” android:pathData=”M4.8,12L9,16.2L20,8″ android:strokeColor=”#FF000000″ /> </vector> drawable/ic_done_animated.xml: <?xml version=”1.0″ encoding=”utf-8″?> <animated-vector xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:drawable=”@drawable/ic_done”> […]

NavigationDrawer using only Android Support Library

is there any example project which use only Android Support Library (revision 18) to implement Navigation Drawer on Android +2.2 without using any additional library (ABS etc.) ? Here is the example which use ASL but it’s work only on API +14 : http://developer.android.com/training/implementing-navigation/nav-drawer.html . Here is my MainActivity: package com.example.android.navigationdrawerexample; import java.util.Locale; import android.app.Activity; […]

How to use or workaround searchManager.getSearchableInfo() on Android API 7?

I can’t find anywhere how to use the support v7 appcompat library with searchManager.getSearchableInfo(). @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); MenuItem menuItem = (MenuItem) menu.findItem(R.id.search_widget); SearchView searchView = (SearchView) MenuItemCompat.getActionView(menuItem); searchView.setSubmitButtonEnabled(true); SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); searchView.setSearchableInfo( searchManager.getSearchableInfo(getComponentName())); […]

BetterPickers without a support library

I am using https://github.com/derekbrameyer/android-betterpickers to use time- and date pickers for my app. However, my app does not need a support library and it seems like I need SupportFragmentManager when setting a FragmentManager to the Time- and DatePickerBuilder :/ Is there a way to avoid the Support library?

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