Android: What's wrong with my fragment transition animation?

I just need plain slide in and slide out animation for Fragment transition, below is my code: slide_in_left.xml: <?xml version=”1.0″ encoding=”utf-8″?> <set xmlns:android=”http://schemas.android.com/apk/res/android” android:shareInterpolator=”true”> <translate android:fromXDelta=”-100%” android:toXDelta=”0%” android:fromYDelta=”0%” android:toYDelta=”0%” android:duration=”700″> </translate> </set> slide_out_right.xml: <?xml version=”1.0″ encoding=”utf-8″?> <set xmlns:android=”http://schemas.android.com/apk/res/android” android:shareInterpolator=”false”> <translate android:fromXDelta=”0%” android:toXDelta=”100%” android:fromYDelta=”0%” android:toYDelta=”0%” android:duration=”700″> </translate> </set> the code I used: SomeFragment frag = SomeFragment.newInstance(foo); […]

Android::Webview removes scrollbar for a DIV

I made a small webpage with a scrollable div. When I load it in a browser, it works fine. But when I load it in a webview inside Android, it doesn’t let me scroll the div. Is there a workaround for this or do I have to use a different design? I am talking about […]

How to create a thread in Android NDK?

Can anyone tell me how to create a thread in Android NDK? I’m porting some C++ code from Win32 to Android, I don’t know what’s the NDK API corresponding to Win32 API AfxBeginThread(). Thanks!

Android private fields naming guidelines are ok?

Here http://source.android.com/source/code-style.html#follow-field-naming-conventions it is stated that : Field Names Non-public, non-static field names start with m. Static field names start with s. Other fields start with a lower case letter. Public static final fields (constants) are ALL_CAPS_WITH_UNDERSCORES. It also states that : The rules below are not guidelines or recommendations, but strict rules. You may […]

Android AppCompat requires API level 11

I have an app that uses the AppCompat support libary for ActionBars. Now I tried to create a new themes.xml file with some style for that purpose. <!– Application theme. –> <style name=”AppTheme” parent=”@style/Theme.AppCompat.Light.DarkActionBar”> <item name=”android:actionBarStyle”>@style/MyActionBar</item> <item name=”actionBarStyle”>@style/MyActionBar</item> </style> So just the same way it is done here: http://developer.android.com/guide/topics/ui/actionbar.html#StyleExample However, Eclipse throws an error here […]

WebView doesn't load my HTML the second time?

I’ve created a small Activity which is capable of loading two different HTML strings in a webview. When I run the Activity it starts by loading the String from the page_1 variable. So far so good. The page shows as expected. I’ve added an onFling listener which should make the activity load the content of […]

Android ImageView Zoom-in and Zoom-out Continuously

Is there any way to Zoom-in and Zoom-out an ImageView continuously in Android. I tried using the below code, but only one of the Zoom function is working. zoomin.xml <?xml version=”1.0″ encoding=”utf-8″?> <set xmlns:android=”http://schemas.android.com/apk/res/android” android:fillAfter=”true” > <scale xmlns:android=”http://schemas.android.com/apk/res/android” android:duration=”20000″ android:fromXScale=”1″ android:fromYScale=”1″ android:pivotX=”50%” android:pivotY=”50%” android:toXScale=”3″ android:toYScale=”3″ > </scale> </set> zoomout.xml <?xml version=”1.0″ encoding=”utf-8″?> <set xmlns:android=”http://schemas.android.com/apk/res/android” android:fillAfter=”true” […]

How to force Eclipse to restart an app that has not changed

Is there a way to force Eclipse to restart an Android app that has not changed, even if it has to be re-downloaded and reinstalled? I am in a situation where I’m running an Android app that does stuff on startup that I need to repeat for debugging purposes. What I would like to do […]

how to handle device back button on sencha touch application

In Sencha touch if I use navigation view i can get back button. This is pretty fine. But what if user hit device backbutton? it is direct exiting the applicaiton. In my requirement it should not exit the application it has to go back to previous screen.How can i do this?.

Where is the build.gradle file located for my android project?

Where is the build.gradle file located for my android project? I’m trying to follow along with this tutorial but can’t make necessary changes to my build.gradle file to use 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.