ripple

Ripple effect in pressed state + transparency in normal state

隐身守侯 提交于 2019-12-04 12:11:19
I would like the ImageView in the ViewGroup, when pressed, draws the ripple and this is working ! But when the ViewGroup is pressed, the ImageView inside it, should remain transparent otherwise the ImageView background is visible: (that color alpha-orange, you actually see, is the ripple when pressed). This happens only with devices API 21+. With devices API <21 I use a selector and the image background remains transparent as wanted when the ViewGroup is pressed. layout.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/item_detail_field" android

Is it able to test PhoneGap File API with Ripple emulator

半城伤御伤魂 提交于 2019-12-04 07:32:55
I am working on an application with PhoneGap (now Apache Cordova, with the version of 2.0), and using the PhoneGap File API to write file. The File API I use could be referenced at: http://docs.phonegap.com/en/2.0.0/cordova_file_file.md.html#File I use Ripple Emulator (0.9.9beta) from here: https://developer.blackberry.com/html5/download to test my application in chrome. But I find Ripple could not handle the PhoneGap File API correctly. For example: I want to create a file (root/foo.json) at the PERSISTENT directory function onSuccess(fileSystem) { fileSystem.root.getDirectory("dir", {create:

Internet not accessible from ripple emulator

只谈情不闲聊 提交于 2019-12-04 06:10:17
问题 I created a VS Cordova project, and need to download some data from a web service, but Ripple runs inside Chrome, and Chrome considers that request "cross-domain" and blocks it. Setting ripple proxy option to disabled/local/remote has no effect. I can start another instance of Chrome with --web-security-disabled command line option, point it to the same URL http://localhost:4409/... and application works fine in that second Chrome. Now all I need is to find a way to pass --web-security

《DSP using MATLAB》Problem 8.43

為{幸葍}努か 提交于 2019-12-04 04:52:33
代码: %% ------------------------------------------------------------------------ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 8.43 \n\n'); banner(); %% ------------------------------------------------------------------------ % Digital Highpass Filter Specifications: wphp = 0.4*pi; % digital passband freq in rad wshp = 0.3*pi; % digital stopband freq in rad Rp = 1.0; % passband ripple in dB As = 40; % stopband attenuation in dB Ripple = 10 ^ (-Rp/20) % passband ripple in absolute Attn = 10 ^ (-As

纯css实现Material Design中的水滴动画按钮

人走茶凉 提交于 2019-12-04 02:20:57
前言 大家平时应该经常见到这种特效,很炫酷不是吗 这是谷歌 Material Design 中最常见的特效了,市面上也有很多现成的js库,用来模拟这一特效。但是往往要引入一大堆 js 和 css ,其实在已有的项目中,可能只是想加一个这样的按钮,来增强用户体验,这些 js 库就显得有些过于庞大了,同时由于是 js 实现,很多时候还要注意加载问题。 那么,有没有办法用 css 来实现这一特效呢? 思路 其实就是一个动画,一个正圆从小变大,用 css3 中的动画很容易实现 示例代码 @keyframes ripple{ from { transform: scale(0); opacity: 1; } to { transform: scale(1); opacity: 0; } } 通常用 js 来实现的方式很简单,就是给点击元素添加一个 class ,然后再动画结束后移除该 class 示例代码 var btn = document.getElementById('btn'); btn.addeventlistener('click',function(){ addClass(btn,'animate') },false) btn.addeventlistener('transitionend',function(){//监听css3动画结束 removeClass(btn,

Unable to get launched browser process for Ripple

我的梦境 提交于 2019-12-04 01:59:55
When I create new mobile application in visual studio, I can run it and no problems happen. But when I start running another application (created by other developer, and shared on TFS), I got the following messages: Unable to get launched browser process for Ripple. Unable to get Ripple session info for port 0. No build errors or warnings! just 2 messages!! Any idea? My environment: Visual studio 2013 community edition (with Update 4) Windows 7, x64 * EDIT: It worked by right-clicking project name in solution explorer | Debug | start new instance But still didn't work by hitting F5 or clicking

Unable to get Ripple session info

≯℡__Kan透↙ 提交于 2019-12-03 23:36:15
I created an Ionic (Apache Cordova) app using Visual Studio 2015 RC. I created it in its own solution file, and I can run it using Ripple. Now I want to move the files into the same folder as my server application, so I copied the project folder and added the project to the other solution. If I now try to run the project using Ripple I get this error: Unable to get Ripple session info. Exception: Unable to connect to the remote server. Please close all instances of Chrome and try again. How can I get Ripple running again? The root of this problem appears to be in the project's Solution Options

Why does including this module not override a dynamically-generated method?

巧了我就是萌 提交于 2019-12-03 14:43:58
I'm trying to override a dynamically-generated method by including a module. In the example below, a Ripple association adds a rows= method to Table. I want to call that method, but also do some additional stuff afterwards. I created a module to override the method, thinking that the module's row= would be able to call super to use the existing method. class Table # Ripple association - creates rows= method many :rows, :class_name => Table::Row # Hacky first attempt to use the dynamically-created # method and also do additional stuff - I would actually # move this code elsewhere if it worked

How to build apache cordova project from command line?

ぐ巨炮叔叔 提交于 2019-12-03 12:16:00
I've setup apache cordova on my Windows/Cygwin platform. I can create project using the command - cordova create <app_name> . I have added android platform using the command - cordova platform add android I can run the sample 'html/css/js' using cordova ripple android . I can upload the project to build.phonegap and get the .apk file. I know from docs that I can setup eclipse and do the build. (I'm not looking for this) But I cannot create .apk file using the command cordova build android . When I run the command, there is not output on the command line, the command just finishes. I cannot

How to animated ripple doted effect?

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I would like to prepare animated ripple effect I show you on picture I'm interested in making this doted circles,this doted circles should fade in from one point, become bigger and bigger and in the end, circle should disappear, so this should look like on this screen. It's something like ripple efect For now I write in the code alghoritm which create new circles which become bigger and bigger and then disapear, so instead of this circles I would like to have dotted ones. This is my code threadclass: import android . annotation .