In my application i have one black and white image, now to want to change the black and white image into colored image like where ever i click on that image only that portion become colored
Thanks
In my application i have one black and white image, now to want to change the black and white image into colored image like where ever i click on that image only that portion become colored
Thanks
try this take two different images one is normal image another one is focus image
main.xml code:
<ImageView
android:id="@+id/emailsendimage"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:clickable="true"
android:focusable="true"
android:src="@drawable/sendchat_normal_icon" />
next codefile:
Submit.setOnFocusChangeListener(new OnFocusChangeListener() {
public void onFocusChange(View v, boolean hasFocus) {
// TODO Auto-generated method stub
if(hasFocus){
Submit.setImageResource(R.drawable.sendchat_over_icon);
}else{
Submit.setImageResource(R.drawable.sendchat_normal_icon);
}
}
});