How to set CSS gradient for Android? This is all not working (

background-image: -webkit-linear-gradient(top, rgba(177, 184, 200, 0.3) 50%, rgba(177, 184, 200, 0.55) 50%); background-image: linear-gradient(top, rgba(177, 184, 200, 0.3) 50%, rgba(177, 184, 200, 0.55) 50%); background-image: -moz-linear-gradient(top, rgba(177, 184, 200, 0.3) 50%, rgba(177, 184, 200, 0.55) 50%); background-image: -o-linear-gradient(top, rgba(177, 184, 200, 0.3) 50%, rgba(177, 184, 200, 0.55) 50%); 
  • can simply not see css ?? - Gorets pm
  • visible problem of the current gradient - Zow
  • Something tells me that these properties of CSI are simply not supported by the drone’s browser .. =) Just look for a different way ... - Gorets

1 answer 1

I have a gradient

  <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#FF000000" android:centerColor="#FF000000" android:endColor="#FF777777" android:angle="90" /> </shape> 

here its application

 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/layout_bg" android:orientation="vertical" > .... 
  • I use HTML - Zow pm
  • @Gorets Your gradient refers to View elements and the like, the author initially wrote about CSS - BORSHEVIK