android-animation,android-5.0-lollipop,android-transitions,circularreveal , Circular Reveal Android Soften Edges


Circular Reveal Android Soften Edges

Question:

Tag: android-animation,android-5.0-lollipop,android-transitions,circularreveal

I'm just experimenting with the new Lollipop transitions and was curious if the following was possible. Right now I have a circular reveal animation working beautifully but it reveals the background with a very hard line. I was wondering if it was possible to soften the line or to fade in the edges so that the transition is less harsh.


Answer:

No, there is no way to do that using the circular reveal animator. You'd have to make your own to soften the edges, but the performance is likely to be horrible.

The typical circular reveal is very fast and it is difficult to see the hard edges.


Related:


Android ViewFlipper with translation animation - not working properly


android-layout,android-animation,translation,viewflipper
I want to display banner(images moving in x direction) in my application. For that i am using ViewFlipper with Translation animation. Please find my below code.. my layout: banner.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <ViewFlipper android:id="@+id/banner_image" android:layout_width="match_parent" android:layout_height="258dp" /> </RelativeLayout> In...

delay slide action when an image is clicked using viewpager android


android,android-viewpager,android-animation
I have created a slideshow in which i have disabled the default swipe action to slide screens. Instead when I click an image the slide performs. But I want to delay the slide for say t milliseconds after the image is clicked. The method of click action is onClickSlideDown. The...

AppCompatActivity crashed at startup on physical mobile devices but not Android emulators


android,android-5.0-lollipop,proguard,acra,appcompat-v7-r22.1
I got the following errors with the AppCompatActivity class: 06-08 06:32:47.441 E/ACRA (7296): java.lang.AbstractMethodError: abstract method "void r.b(java.lang.CharSequence)" 06-08 06:32:47.441 E/ACRA (7296): at r.a(Unknown Source) 06-08 06:32:47.441 E/ACRA (7296): at android.support.v7.app.AppCompatActivity.onTitleChanged(Unknown Source) 06-08 06:32:47.441 E/ACRA (7296): at android.app.Activity.onPostCreate(Activity.java:1197) 06-08 06:32:47.441 E/ACRA (7296): at android.support.v7.app.AppCompatActivity.onPostCreate(Unknown Source)...

None linear activity transition animation


android,android-activity,android-animation,android-transitions
I want to implement a none linear activity transition animation. My current anime xml file <set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="@android:integer/config_mediumAnimTime"/> <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="@android:integer/config_mediumAnimTime" /> </set> What i want to do is animation to start slow end in faster speed....

Android: status bar not theme on transitiong to new activity


android,android-activity,android-5.0-lollipop,statusbar
I have create a simple app with 2 activities. Main (launcher) activity is themed properly where colorPrimaryDark is applied to status bar. But when I transition to new activity, everything seems normal except status bar. It somehow colored white. Any idea why this could be happening? Running this on OnePlus...

Android ActionBar on Lollipop not styling correctly


android,android-5.0-lollipop,material-design,android-styles
I am designing an app with Material Design, but I am having trouble styling the ActionBar. First of all, I can not get the ActionBar to render a shadow. I have tried setting the elevation in multiple ways: In the styles.xml (v21): <item name="android:elevation">4dp</item> <item name="elevation">4dp</item> In the onCreate() method...

Dialog FLAG_DIM_BEHIND doesn't work on Android 5.x (Lollipop)


android,android-5.0-lollipop,android-dialogfragment
I dim the background of a DialogFragment using this code: Window window = getDialog().getWindow(); WindowManager.LayoutParams windowParams = window.getAttributes(); windowParams.dimAmount = 0.75f; windowParams.flags |= WindowManager.LayoutParams.FLAG_DIM_BEHIND; window.setAttributes(windowParams); This works fine on Kitkat and below, but stopped working on Lollipop. I suspect it has to do with the fact that my Activity is...

Android pop in animation


android,button,android-activity,android-animation
I mave a floating action button in my app which I want to sort of pop in, where it is invisible and starts to grow to a size like 60dp and then resizes back to the normal size of 56dp. How can that be done? I know how to do...

Appcompat v7 Material checkbox changing color to default black in Lollipop devices


android,checkbox,android-5.0-lollipop,material-design,appcompat-v7-r22.1
I am using appcompat v7 material checkbox. My project theme is light blue, so I am assigning light blue for my checkbox checked color in styles.xml as follows <!--checked color--> <item name="colorAccent">@color/light_blue</item> <!--un checked color--> <item name="android:textColorSecondary">@color/secondary_text</item> In My layout file <CheckBox android:id="@+id/chk_tick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@drawable/abc_btn_check_material"...

ListView adds empty view to root/parent instead of self?


android,android-listview,android-5.0-lollipop
I'm trying to add a custom empty view to a ListView as shown in this Q&A. But the ListView seems to add the empty view to its parent, or maybe to the root ViewGroup, rather than to itself. Am I doing something wrong here? I created a small layout file...

Android - Updating View's Height on translationY() Animation


android,android-layout,android-animation
I have a layout that I want to expand after button click, as shown below: The problem is I need to use Animation, so I decided to use View.animate.translationY(). Here is my code: private void showBottomThreeLines(boolean show){ if(show) mShiftContainer.animate().translationY(0); else mShiftContainer.animate().translationY(-(mFifthLineContainer.getHeight() * 3)); } However, this is what I get...

Difference between setWindowAnimations and overridePendingTransition?


android,android-activity,android-animation
What is the difference between, getWindow().setWindowAnimations() and Activity.overridePendingTransition() It seems like both have the same functionality....

How to add Ripple effect in RecyclerView


android,android-animation,android-recyclerview
I would like to add this nice effect to my RecyclerView items but I don't know where to start. If somebody knows a good and simple tutorial on this topic I would appreciate sharing it with me.

Android ListView animation material deisgn


android,android-5.0-lollipop,material-design
in material design official guidelines I saw ListView animation - Video link My question: is it some build-in animation or I should manually code it to achieve same effect. If I should code it, which tools/classes are used for this?...

Failed to build android kernel


android,python,kernel,android-5.0-lollipop
I am trying to build the Android kernel for emulator. But the build failed. I am using the android-5.1.1-r1. Here are the error messages: mkdir -p /home/ying/WORKING_DIRECTORY/out/target/product/generic/obj/GYP/shared_intermediates/templates/org/chromium/base; cd external/chromium_org/base; python ../build/android/gyp/gcc_preprocess.py "--include-path=.." "--output=/home/ying/WORKING_DIRECTORY/out/target/product/generic/obj/GYP/shared_intermediates/templates/org/chromium/base/ApplicationState.java"...

Android animations and screen rotation


android,android-animation
I have animated some properties with AnimatorSet (simple fade-in, fade-out etc.) but when I change the screen rotation my activity always goes back to its starting layout. Is there something I'm missing here? ObjectAnimator fadeOut = ObjectAnimator.ofFloat(loginBtn, "alpha", 1f, 0f); fadeOut.setDuration(300); ObjectAnimator fadeIn = ObjectAnimator.ofFloat(backBtn, "alpha", 0f, 1f); fadeIn.setDuration(300); final...

Unable to install apk using adb on device upgraded to Android Lollipop


android,adb,android-5.0-lollipop
I’ve recently upgraded one of my Android devices to Android Lollipop (5.0) and now I can’t debug my application and even install apk on the device using adb. I receive the following error java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.St ring, java.lang.String) (tried Java_android_os_SystemProperties_native_1get and Java_android_os_SystemProperties_native_1get__Lj ava_lang_String_2Ljava_lang_String_2) at android.os.SystemProperties.native_get(Native Method)...

Animations are clipped to ViewGroup bounds in Android 4.3 and below?


android,animation,android-animation,viewgroup,android-viewgroup
I'm working on a custom ViewGroup which draws some animations in the dispatchDraw() method. I came across this in my Google search: https://groups.google.com/forum/#!topic/android-developers/dZ0Yxjz3v7o And I have set clipChildren="false" inside my XML to both the parent and the grandparent view of my custom ViewGroup. However, this fixed the clipping of the...

How to color the status bar with styles attributes in all Android versions?


android,android-5.0-lollipop,compatibility,material-design,android-styles
This is styles.xml <resources> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primaryDark</item> <item name="colorAccent">@color/accent</item> <!-- Other attributes --> </style> While this is v21 styles.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item...

Android Push Notification sevice not start on Lollipop


android,push-notification,broadcastreceiver,android-5.0-lollipop
I am facing an issue while start service for push notifications. On Lollipop my app is crashing on start service for notifications receiver. I don't know how can I fix it. Can anyone help me for that. My start service code is. Intent registrationIntent = new Intent( "com.google.android.c2dm.intent.REGISTER"); registrationIntent.putExtra("app", PendingIntent.getBroadcast(this,...

How can I make the ripple effect look like a circle instead of an oval?


android,android-5.0-lollipop,material-design,rippledrawable
I have the same ripple effect on most of my image buttons and on most of them it looks like a circle when pressed but on some buttons it looks like an oval and I'm just not sure why it looks different. I realize the actual ripple shape is set...

Fragment Transitions: shared elements


java,android,animation,android-5.0-lollipop,android-transitions
easiest way to show you what I'm trying to achive is this video: shared image in fragment transition I have one activity and two fragments (FragA and FragB). Is there a way to do this kind of transitions on Android 5 without changing activity? Cheers...

Touch feedback on menu item with actionLayout


android,android-5.0-lollipop,android-menu,android-toolbar
I'm using a menu item with actionLayout because I need to add a textView along with my icon for the item on the ActionBar. everything shows up correctly but I don't know (and couldn't find anywhere) how to add the animation that shows up when user taps on a menu...

Android - Kill an app when screen turned off or screen times out


android,android-5.0-lollipop,android-4.4-kitkat
I want to kill / fully close an app so it doesn’t run even in the background when I press the screen turn on/off button or if the screen times out. I couldn’t find a solution anywhere on the internet. Can you guys help me out with a code snippet?...

Android: Using the ParcelFileDescriptor returned from UiAutomation.executeShellCommand() in InstrumentationTestCase


java,android,android-5.0-lollipop,android-uiautomator
I've written a generic shellCommand function for my InstrumentationTestCase subclass. The call to executeShellCommand works (the command is executed), but I'm doing something wrong with the returned ParcelFileDescriptor, because it seems to return rubbish. Here's my generic shellCommand function - public String shellCommand(String str) { UiAutomation uia = getInstrumentation().getUiAutomation(); ParcelFileDescriptor...

Fragment Transition not working


android,android-fragments,android-animation
In my app I have 3 tabs(buttons) and on its swipe I am changing the fragment.So for this I am using slide left and slide right animations.But it seems not working for me. Slide_Left <?xml version="1.0" encoding="utf-8"?> <set> <objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" android:duration="1000" android:propertyName="x" android:valueFrom="2000" android:valueTo="0" android:valueType="floatType" /> </set> Fragment Call try...

(Partially Solved) ViewAnimationUtils - No animation occurs


android,animation,android-animation,android-5.0-lollipop,viewanimator
I'm trying to use a Circular Reveal to animate in a LinearLayout on click of a FAB. Onclick, the view changes to become visible after a time delay, but no visible animation runs? In addition, when the function is reversed as an exit animation the view is invisible for the...

Support deprecated and new API


android,android-5.0-lollipop,deprecated
Is there any way I can support both deprecated and new API in the same method call for Android? I'm using the camera API which seems to be deprecated for the Lollipop version, so I tried to handle it like this: if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) { //Before Lollipop, use the...

How to verify android device Screen ON or OFF using adb shell command in “Android 5.0.1 – Lollipop”


android,android-5.0-lollipop
Tried to check device Screen ON or OFF usingmScreenOn=true or mPowerState=SCREEN_BRIGHT_BIT. but following commands are not working in Android 5.0.1 – Lollipop. returning nothing Following commands working fine in Android - 4.3 Jelly Bean using input_method dumpsys adb shell dumpsys input_method | grep mScreenOn using power dumpsys adb shell dumpsys...

Proper way to (animate) show/hide a view in android? [closed]


android,android-layout,android-animation
Imagine having a panel, say an stickers panel (something like Viber or Telegram) in your app which needs to be visible and gone every now and then. What would be the proper way of showing/hiding it? For example I used to change (animate) the height of the wrapper layout but...

Stylizing material buttons in Android v21


android,android-5.0-lollipop,android-button,material-design,android-theme
I am trying to maintain the material design ripple effect for devices with lollipop and above (21+) and stylize the button so that it doesn't have a large margin/space around it. Example 1: Buttons with ripple effect but with margin/gap: Example 2: Buttons with NO ripple effect and without the...

How to adjust Toolbar alignment?


android,android-layout,android-5.0-lollipop
I'm looking over design support library examples in the "Cheesesquare" demo of newer components I want to use. On my OnePlus One, the Toolbar is barely off-screen. I think CheeseDetailActivity.java, activity_detail.xml, and maybe styles.xml are pertinent here but I can't seem to make changes that correct the misalignment....

Animation of imageView in WindowManager does not work in android 4.xx


android,android-animation,window-managers
Hi I need a floating bubble on top of my activity and I decided to use a service for that. Everything works well except that in Android 4.xx devices the imageView is not being animated. I have added listeners to the animation and the animation is run (it starts, repeats......

HTC IR API Lollipop


android,android-5.0-lollipop,htc,infrared,ir
I am trying to get the infrared transmitter to work on the HTC ONE m8 after lollipop update. I am trying to use the HTC Sense IR SDK (addon-htc_ir_api-htc-19) found here: http://www.htcdev.com/devcenter/opensense-sdk/htc-ir-api I import the sample project (HTCConsumerIR) and run the app on my HTC device and the app simply...

Circular Reveal Android Soften Edges


android-animation,android-5.0-lollipop,android-transitions,circularreveal
I'm just experimenting with the new Lollipop transitions and was curious if the following was possible. Right now I have a circular reveal animation working beautifully but it reveals the background with a very hard line. I was wondering if it was possible to soften the line or to fade...

How to repeat an AnimationSet with sequentially added animations


android,android-animation
I am trying to make an animation in my Activity, to be repeated infinite times. I have already tried it in XML file with repeatCount and repeatMode attributes, but it doesn't work. The thing is that myanimation.xml file is constructed of a set of different animations. My XML file for...

Don't understand why OutOfMemory on setImageDrawable


android,imageview,out-of-memory,android-animation
Having a problem with a custom button control which I have made. The button is defined in layout like this: <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" > <ImageView android:layout_width="180dp" android:layout_height="180dp" android:layout_centerInParent="true" android:layout_margin="20dp" android:background="#fff" android:contentDescription="@string/my_button_info"...

MATCH with selectArgs looking like *queryTerm* stopped working on Android 5.0+


android,android-sqlite,android-5.0-lollipop
This is addendum to my question SQLiteDatabase Cursor empty only on Android 5.0+ devices. That one will be closed as I was not sure what is causing the bug - thought it was a cursor note being properly filled. Now I have discovered what is causing empty cursor. Up to...

Translucent Status Bar on Kitkat, Tinted Status Bar on Lollipop


android,android-5.0-lollipop,statusbar,android-4.4-kitkat,material-design
I've searched for a solution, but haven't found one yet. I'm currently in the process of creating an Android app and my team wants to keep the experience of our app the same across the recent Android versions. We're using the Support v7 library, so most of the Material Design...

android lollipop ViewGroup child hierarchy changes?


android,android-5.0-lollipop,viewgroup,android-5.1.1-lollipop
I have an app that has a minSdk of 15 and I'm working out all the bugs that came with the lollipop upgrade. Our software is very complex and it dynamically creates views using custom ViewGroups and then an array of elements that are explicitly sized and placed inside the...

How to add an exit / return TransitionAdapter


android,android-animation,android-transitions
I'm creating a scene transition using to move from Activity A to Activity B: ActivityOptions.makeSceneTransitionAnimation In Activity B I add a TransitionAdapter to perform certain tasks when the scene transition is completed: getWindow().getEnterTransition().addListener(...) Is there a way to add a TransitionAdapter to the exit / return in Activity B so...

Android Lollipop issues with text color


android,android-5.0-lollipop,android-theme,textcolor
I have an app with android:Theme.Holo, navigation bar with black background and white textcolor for Button/TextView. It's fine on OS before Lollipop. In Lollipop I can't see text, I suppose it's black too because, as I said, on previous OS it works fine. Any well-known issues about text color in...

Android design support library with Theme.Material


android,android-5.0-lollipop,android-design-library,androiddesignsupport,material-theme
I would like to use the new design support library in my application beginning with the API 21. I want to use Theme.Material style but it's work only with Theme.AppCompat style. When I use Theme.Material, android return this error: error inflating class android.support.design.widget.textinputlayout" How can I resolve it ? Thank...

Android: iBeacon - read its advertisement (e.g txPower)


bluetooth-lowenergy,android-5.0-lollipop,ibeacon,ibeacon-android
I have a problem here right now as I'm trying to read the tx-Power from my Onyx iBeacon. I've read multiple suggestions and tried so many code on the internet, but I still can't figure this out. I'm using android lollipop and tried the iBeacon tutorial from https://github.com/devunwired/accessory-samples/tree/master/BluetoothGatt for a...

Android Spinner not working on Samsung Devices with Android 5.0


java,android,spinner,android-5.0-lollipop
I'm using a custom Spinner widget with the code below. Everything works fine on most devices except on Samsung's devices with Android 5.0. On click the Spinner should display a list of values but that doesn't happen. On emulators and others brands devices with Android 5.0 it works fine. Has...

Get rid of Android L automatic opacity tint when using windowTranslucentStatus = true


android,android-5.0-lollipop,android-4.4-kitkat,android-statusbar
Anyone know how to get rid of this automatic tint when you use windowTranslucentStatus = true? I already have status bar colour set to transparent but when I enable windowTranslucentStatus, it seems to override that. If I disable windowTranslucentStatus, then I get the desired status bar colour but I can...

size of button and edittext change with android API 21


android,android-5.0-lollipop
I'm developping an android application and it work fine with API 13 to 19, when i test it with API 21 the button size ,edittext and textview change (became bigger).i'm using (match_parent and wrap_content). i find in net that i should add these line android:textAllCaps="false" android:stateListAnimator="@null" but i have the...

RSA decrypt on android lollipop


ssl,rsa,android-5.0-lollipop,android-4.4-kitkat,public-key
I have an error with decryption with RSA. The code works on android 4.4 kit kat, but the same app doesn't work on android 5.0 lollipop. KeyFactory keyFactory = KeyFactory.getInstance("RSA"); RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec(new BigInteger(modulusBytes), new BigInteger(exponentBytes)); RSAPublicKey publicKey = (RSAPublicKey) keyFactory.generatePublic(pubKeySpec); byte[] decrypted = null; try { //...