Android Left,Center and Right Alignment

I am pretty new to android and trying to do a sample app where 3 elements (2 buttons and 1 text view ) are placed horizontally. I need the text to be in the center with two buttons aligned left and right of the view. E.g. |<Button> <Text> <Button>| Appreciate if you could help me […]

Data Binding Android – Type parameter T has incompatible upper bounds : ViewDataBinding and MainActivity

I am using Android Studio 2.0 Preview 4. I’m using Android SDK tools 25 rc1. This error persists no matter how many times I clean / rebuild project. File->Invalidate Caches and restart also doesn’t work. I’m not able to run the most basic example of data binding. build.gradle file apply plugin: ‘’ android { compileSdkVersion […]

How to feed DatePicker widget with other calendar sytems?

Is there anyway to use DatePicker widget with other calendar systems ? I need a picker for Jalali (Persian) Calendar system, but i dont know how to feed DatePicker with my data. I’ve studied methods related to DatePicker but couldn’t find anything that allows me to do that. I also found a custom widget called […]

How to specify RTL specific drawables

I have few images that looks different on right-to-left. Is it possible to create rtl specific drawable directory or some rtl post-fix for file names to auto-load relevant images? Looks like ldrtl post-fix, added from 17 lvl, is good only for layouts directory.

FloatingActionButton hide on list scroll

Im using the FloatingActionButton from the package: < android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_alignParentBottom=”true” android:layout_alignParentEnd=”true” android:layout_marginBottom=”20dp” android:layout_marginEnd=”16dp” android:clickable=”true” android:backgroundTint=”@color/primaryColor” android:src=”@drawable/ic_search_white_24dp” app:borderWidth=”0dp” app:elevation=”6dp” app:backgroundTint=”@color/primaryColorDark” app:rippleColor=”@color/accentColor” /> Is it possible to configure that button to hide with an animation when the listview is scrolling down and to show it again when listview is scrolling up to the top?

How can I see the error log (logcat) for Android in Eclipse?

How / where can I see what happened when my Android application crashes in Eclipse (using Run, not Debug)?

SDK Manager failed to install 'java.exe' locking directory

I have ran into a curious error when trying to update Android SDK Tools to revision 21 from revision 20.0.3. The ADT plug-in updated properly so now I am at a stand still until resolved. The initial error I got listed cmd.exe & java.exe as locking the directory, I forced closed cmd.exe and got this: […]

Can values defined in MANIFEST.MF be accessed programmatically?

Can I access the values defined in a java manifest from code?

Android ICS-like input field in CSS

I want to create an input field like Android Ice Cream Sandwich’s one in HTML/CSS only and without using images. I’m stuck with making these small borders (the image below), It would be great if anybody could help.

adb.exe start server failed android studio

i type adb nodaemon server error: could not install smartsocket listener: cannot bind to Only one u sage of each socket address (protocol/network address/port) is normally permitted. (10048) netstat -ano | findstr 5037 TCP LISTENING 5652 TCP ESTABLISHED 5652 TCP ESTABLISHED 5652 TCP ESTABLISHED 1620 TCP […]

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