Android, setting background color of button loses ripple effect

You can add the ripple effect & background color with an additionnal ripple drawable: your layout : <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”match_parent”> <Button android:id=”@+id/button_connect” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_marginTop=”20dip” android:fontFamily=”sans-serif” android:text=”Connect” android:background=”@drawable/ripple” android:textColor=”#FFFFFF” android:textSize=”18sp” /> </LinearLayout> ripple.xml (this is where you can add background color in addition to the ripple effect) : <?xml version=”1.0″ … Read more

Vue.js page transition fade effect with vue-router

Wrap <router-view></router-view> with <transition name=”fade”></transition> and add these styles: .fade-enter-active, .fade-leave-active { transition-property: opacity; transition-duration: .25s; } .fade-enter-active { transition-delay: .25s; } .fade-enter, .fade-leave-active { opacity: 0 } Detailed answer Assuming you have created your application with vue-cli, e.g.: vue init webpack fadetransition cd fadetransition npm install Install the router: npm i vue-router If you … Read more

Fade Effect on Link Hover?

Nowadays people are just using CSS3 transitions because it’s a lot easier than messing with JS, browser support is reasonably good and it’s merely cosmetic so it doesn’t matter if it doesn’t work. Something like this gets the job done: a { color:blue; /* First we need to help some browsers along for this to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)