ripple

How can I disable Android Lollipop ripple's alpha value?

时光怂恿深爱的人放手 提交于 2021-02-17 21:25:58
问题 I have a ripple working with a custom color. However, the color is never fully opaque. According to the answers from What should be the color of the Ripple, colorPrimary or colorAccent? (Material Design) it always has an alpha of 40%. Looking at the answers I've tried to use the following v21 specific drawable xml to force an opaque red background once selected: <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#ffff0000">

How can I disable Android Lollipop ripple's alpha value?

喜欢而已 提交于 2021-02-17 21:25:47
问题 I have a ripple working with a custom color. However, the color is never fully opaque. According to the answers from What should be the color of the Ripple, colorPrimary or colorAccent? (Material Design) it always has an alpha of 40%. Looking at the answers I've tried to use the following v21 specific drawable xml to force an opaque red background once selected: <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#ffff0000">

How can I disable Android Lollipop ripple's alpha value?

好久不见. 提交于 2021-02-17 21:25:06
问题 I have a ripple working with a custom color. However, the color is never fully opaque. According to the answers from What should be the color of the Ripple, colorPrimary or colorAccent? (Material Design) it always has an alpha of 40%. Looking at the answers I've tried to use the following v21 specific drawable xml to force an opaque red background once selected: <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#ffff0000">

Getting right position of clicked button (ripple effect)

半世苍凉 提交于 2021-02-07 03:52:19
问题 I have problem with finding the right position of click. I want to make google material design - ripple effect on clicked button. Circle need to be on button not somewhere else. So when you click on button white circle is showing somewhere else not above the wanted button. Where is the mistake i made? $(function () { var btnClick, bWidth, bHeight, x, y, posX, posY,d; $(".btn").click(function (e) { e.preventDefault(); posX = $(this).offset().left; posY = $(this).offset().top; bWidth = $(this)

Getting right position of clicked button (ripple effect)

╄→гoц情女王★ 提交于 2021-02-07 03:48:02
问题 I have problem with finding the right position of click. I want to make google material design - ripple effect on clicked button. Circle need to be on button not somewhere else. So when you click on button white circle is showing somewhere else not above the wanted button. Where is the mistake i made? $(function () { var btnClick, bWidth, bHeight, x, y, posX, posY,d; $(".btn").click(function (e) { e.preventDefault(); posX = $(this).offset().left; posY = $(this).offset().top; bWidth = $(this)

Getting right position of clicked button (ripple effect)

佐手、 提交于 2021-02-07 03:46:23
问题 I have problem with finding the right position of click. I want to make google material design - ripple effect on clicked button. Circle need to be on button not somewhere else. So when you click on button white circle is showing somewhere else not above the wanted button. Where is the mistake i made? $(function () { var btnClick, bWidth, bHeight, x, y, posX, posY,d; $(".btn").click(function (e) { e.preventDefault(); posX = $(this).offset().left; posY = $(this).offset().top; bWidth = $(this)

No ripple effect on recycleview touch event

て烟熏妆下的殇ゞ 提交于 2021-01-28 15:22:47
问题 I have implemented navigation drawer using RecycleView , but when I click on items, no ripple effect shown. My device is running API 22. fragment_navigation.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white"> <RelativeLayout android:id="@+id/nav_header_container" android:layout_width="match_parent" android:layout_height="140dp" android:layout

No ripple effect on recycleview touch event

做~自己de王妃 提交于 2021-01-28 15:18:20
问题 I have implemented navigation drawer using RecycleView , but when I click on items, no ripple effect shown. My device is running API 22. fragment_navigation.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white"> <RelativeLayout android:id="@+id/nav_header_container" android:layout_width="match_parent" android:layout_height="140dp" android:layout

Animation only works on one button (ripple view)

会有一股神秘感。 提交于 2020-03-25 17:43:05
问题 Site used: https://material.io/develop/ios/components/ripple/ Here is my code: import MaterialComponents.MaterialRipple class ViewController: UIViewController { // let rippleView = MDCRippleView() let rippleTouchController = MDCRippleTouchController() @IBOutlet weak var playBtn: UIButton! @IBOutlet weak var levelsBtn: UIButton! @IBOutlet weak var topicsBtn: UIButton! @IBOutlet weak var settingsBtn: UIButton! @IBOutlet weak var instaBtn: UIButton! override func viewDidLoad() { super

Proplem with Visual studio 2015 and Ripple

≯℡__Kan透↙ 提交于 2020-01-17 03:21:09
问题 When I run the application with Visual Studio and ripple, and I click link for other pages from Cordova project( to localhost) comes an error. Ripple notificates: "Instead of the page you'll see an AW, snap!" Chromes DeveloperTools tells: "was disconnected from the page.' Links for some website works good. Before links worked well. What could be the problem? 回答1: We found what appears to be a bug in Chromium and filed this to track it: https://code.google.com/p/chromium/issues/detail?id