ripple

Lollipop RippleDrawable vs Selector for Pre-Lollipop

主宰稳场 提交于 2019-11-28 15:50:00
问题 I have buttons with different draw9patch png as background. Currently the buttons are controlled by selector which look something like this: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/pressed" android:state_pressed="true"/> <item android:drawable="@drawable/disabled" android:state_enabled="false"/> <item android:drawable="@drawable/focused" android:state_focused="true"/> <item android:drawable="@drawable/default"/> </selector> For

Visual Studio, Ripple Emulator and CORS/Cross Domain Ajax

女生的网名这么多〃 提交于 2019-11-28 13:37:41
I have an issue with Visual Studio when working on a multi device hybrid app. When I try do to an ajax call to an external webservice, and get some errors in ripple. (Cross Domain Security issues). My code works fine when deploying to a mobile device. From research I found the following: Ripple has its own proxy settings In Ripple, go to settings, and choose local, disabled, or remote (depending on your situation) on the proxy setting. This seemed to work for some people, but I now have a different error. (Bad Request) I found more info that Chrome can be started in no web security mode, by

Android, setting background color of button loses ripple effect

前提是你 提交于 2019-11-28 11:55:36
After adding color to an android button, it loses its ripple effect that makes the user feel like there is a responsive click. How do I fix this? I've searched through many solutions but I couldn't find a definite one that wasn't ambiguous. <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" tools:context=".ClockInOutFragment"> <AnalogClock android:id="@+id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout

Create a ripple drawable without transparency

删除回忆录丶 提交于 2019-11-27 16:20:06
问题 I'm a bit lost about how to properly use Ripple Drawable. Let's say I have this drawable : <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="false" android:state_focused="true" android:drawable="@color/accent_color_light" /> <item android:state_pressed="true" android:drawable="@color/accent_color_light" /> <item android:drawable="@android:color/white" /> </selector> So it is a plain white background which

iPhone - having a Ripple effect on a UIImageView

牧云@^-^@ 提交于 2019-11-27 08:08:39
I am attempting to create a ripple like effect on an imageView when it is touched down on, however I do not understand how to implement OpenGL for windows and porting it to iOS. I have attempted to use http://www.codeproject.com/KB/openGL/dsaqua.aspx as well as cocos2d however I find the latter completely and utterly confusing. Would anyone be willing to give some suggestions or can point me in the right direction? Many thanks! Jhaliya Use below for ripple effect in iPhone [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1.0]; [UIView setAnimationTransition:

Visual Studio, Ripple Emulator and CORS/Cross Domain Ajax

跟風遠走 提交于 2019-11-27 07:48:00
问题 I have an issue with Visual Studio when working on a multi device hybrid app. When I try do to an ajax call to an external webservice, and get some errors in ripple. (Cross Domain Security issues). My code works fine when deploying to a mobile device. From research I found the following: Ripple has its own proxy settings In Ripple, go to settings, and choose local, disabled, or remote (depending on your situation) on the proxy setting. This seemed to work for some people, but I now have a

Android, setting background color of button loses ripple effect

你离开我真会死。 提交于 2019-11-27 06:34:58
问题 After adding color to an android button, it loses its ripple effect that makes the user feel like there is a responsive click. How do I fix this? I've searched through many solutions but I couldn't find a definite one that wasn't ambiguous. <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" tools:context=".ClockInOutFragment"> <AnalogClock android:id=

Set ripple effect on Image View

非 Y 不嫁゛ 提交于 2019-11-27 02:10:05
问题 Got the following Image View: <ImageView android:id="@+id/header" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" android:scaleType="centerCrop" app:layout_collapseMode="parallax" android:clickable="true" android:focusable="true" android:background="?android:attr/selectableItemBackground"/> Ripple works great if I don't set a bitmap to the image view. But once I set a bitmap like this, ripple effect is gone: ImageView iv=((ImageView

iPhone - having a Ripple effect on a UIImageView

独自空忆成欢 提交于 2019-11-26 14:06:52
问题 I am attempting to create a ripple like effect on an imageView when it is touched down on, however I do not understand how to implement OpenGL for windows and porting it to iOS. I have attempted to use http://www.codeproject.com/KB/openGL/dsaqua.aspx as well as cocos2d however I find the latter completely and utterly confusing. Would anyone be willing to give some suggestions or can point me in the right direction? Many thanks! 回答1: Use below for ripple effect in iPhone [UIView

Unchecked runtime.lastError while running tabs.executeScript?

ε祈祈猫儿з 提交于 2019-11-26 11:56:16
I managed to build Ripple Emulator open source ( https://github.com/apache/incubator-ripple ). I built it per the instructions (Jake build), which create the Chrome Extension Target that allows me to test my web apps via a chrome extension of my built, as per https://github.com/apache/incubator-ripple/blob/master/doc/chrome_extension.md . I successfully loaded the unpacked extension onto chrome, but when I enable it nothing happens, though the page reloads the extension does not work, instead I get 2 errors: Uncaught ReferenceError: webkitNotifications is not defined webkitNotifications