Using xml Syntax Highlighting
- <ImageView android:id="@+id/img1"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="@drawable/shape_1"
- />
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
and in shape_1
Using xml Syntax Highlighting
- <shape xmlns:android="http://schemas.android.com/apk/res/android" type="rectangle">
- <gradient android:startColor="#0000ff" android:endColor="#f0f0"
- android:angle="270"/>
- <padding android:left="40dp" android:top="40dp"
- android:right="40dp" android:bottom="40dp" />
- <corners android:radius="5dp" />
- </shape>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
i want set color of imageview to java code
i use setColorFilter() but it's not work....how to set color of imageview??




