ripple

Disable Ripple on ListView

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In Android 5.0, my ListView produces a ripple effect when clicking a list item. Is there a way to disable this effect? Looking at the docs, I don't see any way ( https://developer.android.com/reference/android/widget/ListView.html ) 回答1: You can remove or replace the list selector using the android:listSelector property. The default list selector under Material is ?android:attr/selectableItemBackground which is a bounded ripple. <ListView ... android:listSelector="@drawable/my_list_selector" /> To completely disable selector, you can use a

How can I modify ripple color when using ?attr/selectableItemBackground as background?

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've seen some SO questions and they gave some possible methods to achieve what I want. For example: Use colorControlHighlight attribute in styles.xml. Here is my styles-v21.xml: */ /*--> */ /*--> */ /*--> */ /*--> */ And my widget: And it doesn't work. I also tried to add parent="Theme.AppCompat to "SelectableItemBackground" style, or change to colorControlHighlight(no android: prefix)" , or change to ?android:attr/selectableItemBackground , neither is useful. Use backgroundTint attribute in layout. So I add android:backgroundTint="#5677FC"

Android: can you have a ripple effect whose default state color is transparent?

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Something like the following, but it doesn't work. If I switch the drawable color to something like blue, it works. <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:colorControlHighlight"> <item android:drawable="@android:color/transparent"/> </ripple> 回答1: It's necessary to add a mask: <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:colorControlHighlight"> <item android:id="@android:id/mask"> <color android:color="@android:color/white" /> </item> </ripple>

Android: Ripple Background Programmatically

匿名 (未验证) 提交于 2019-12-03 02:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am currently creating an Android app where someone can input their name, press a button, and then it just outputs their name back to them. One effect that I would like to achieve with this is an effect where, after they push the button, the input and button will vanish (complete this bit so far), and then the background colour of the MainActivity's view will do a ripple (from the centre) with a new colour, eventually changing the full background colour. How would I go about doing this programatically, since I am only able to find

java.lang.IllegalStateException: Underflow in restore - more restores than saves

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using rippleeffect library for my project. But in Android Nougat and Marshmallow , App crashes due to this library: compile 'com.github.traex.rippleeffect:library:1.3' The error message is: FATAL EXCEPTION: main Process: com.test.testapp, PID: 17713 java.lang.IllegalStateException: Underflow in restore - more restores than saves at android.graphics.Canvas.native_restore(Native Method) at android.graphics.Canvas.restore(Canvas.java:522) at com.andexert.library.RippleView.draw(RippleView.java:170) ........................ ................

Ripple - Uncaught Error: Load timeout for modules: app http://requirejs.org/docs/errors.html#timeout

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using jquery, backbonejs, underscorejs and bootstrap 3 for my mobile app project. I'm run my app in ripple. Sometimes I got this silly error in my console. Uncaught Error: Load timeout for modules: app http://requirejs.org/docs/errors.html#timeout Why it happened? Thanks a lot in advance. 回答1: I have set require js config option waitSeconds to 0 and the error was gone. My Configuration: require.config({ baseUrl: 'app/lib', paths: { app: '../js', tpl: '../tpl' }, urlArgs: "bust=" + (new Date()).getTime(), waitSeconds: 0, shim: { 'zepto':

Ripple requires API level 21 (current min is 11), android?

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have the below drawable <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:colorControlHighlight" > <item> <shape android:shape="oval" > <solid android:color="?android:colorAccent" /> </shape> </item> And I am getting this error <ripple> requires API level 21 (current min is 11) How do I solve it? 回答1: You are using minsdk=11. You can't use this drawable with api<21. You have to use diffent versions of this drawable file. Put this code in res/drawable-v21

Ripple Donates $50 Million to University, Blockchain Focus on Future Development

匿名 (未验证) 提交于 2019-12-03 00:22:01
With the rapid development of blockchain technology, its competition is becoming more and more fierce. But for a blockchian projiect, it will have no competitiveness if it is not innovative. This is why most blockchain projects in the world rise fast and die soon. And the average life expectancy of them is only 1.22 years. In this case, it is very important and urgent to focus on the blockchain innovation and make some efforts. The good news is Ripple has taken some actions first. Although there were continuous positive ripple coin news In this project, Ripple will provide technical resources

《DSP using MATLAB》Problem 8.40

心不动则不痛 提交于 2019-12-02 23:23:59
代码: function [wpLP, wsLP, alpha] = bs2lpfre(wpbs, wsbs) % Band-edge frequency conversion from bandstop to lowpass digital filter % ------------------------------------------------------------------------- % [wpLP, wsLP, alpha] = bs2lpfre(wpbs, wsbs) % wpLP = passband edge for the lowpass digital prototype % wsLP = stopband edge for the lowpass digital prototype % alpha = lowpass to bandstop transformation parameter % wpbs = passband edge frequency array [wp_lower, wp_upper] for the bandstop % wsbs = stopband edge frequency array [ws_lower, ws_upper] for the bandstop % % % Determine the digital

Failed to load resource: the server responded with a status of 404 (Not Found) ripple.js

蓝咒 提交于 2019-12-01 03:06:03
问题 Hello my problem is to develop phonegap application in HTML5 with the Visual Studio tools for apache cordova https://www.visualstudio.com/en-us/features/cordova-vs.aspx the error write when I debug application is Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js (37,13099) Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.> ripple.js (50,28958) Failed to