« first day (2485 days earlier)      last day (765 days later) » 

05:57
Good Morning
 
5 hours later…
11:02
Hello all
I have to reduce image opacity by 0.5 on 'on-click' so how can I implement it because after clicking on it, it will redirect to another screen. so I was thinking that I can use ontouch listener but after applying this onclick not calling...any idea?
@Radhey @Bandish?
means onTouchDown it will reduce alpha by 0.5 and when click on it, will redirect to another screen
are you able to change alpha level based ontouch ?
@Radhey yes
doing like this
public static class TouchListener implements View.OnTouchListener {
public boolean onTouch(View v, MotionEvent event) {
switch(event.getAction()) {
case MotionEvent.ACTION_DOWN:
// touch down code
v.setAlpha(0.5f);
isTouched = true;
break;

case MotionEvent.ACTION_MOVE:
// touch move code
isTouched = false;
break;

case MotionEvent.ACTION_UP:
// touch up code
v.setAlpha(1);
isTouched = false;
break;
}
return true;
}
}
what is your expected flow ?
when to click on image, alpha value should be reduce by 0.5
11:18
onClick() ->0.5 , onTouch() dragged or up what should happen?>
@Radhey sorry? but If I set alpha value on 'onclick()' then its very difficult to know that effect.
i'm not clear with your requirement exactly
i suggest to use seekbar over there
I think it should be like hover when to move cursor then it will show some effect and then can performon click
seekbar?
https://programmer.help/blogs/using-seekbar-drag-bar-to-change-image-transparency-in-android.html#:~:text=Change%20the%20layout%20to%20LinearLayout,and%20add%20id%20attributes%20respectively.&text=Then%20set%20transparency%20for%20imageView%20in%20the%20seekBar%20progress%20bar%20change%20event.
visit this, set transparent seekbar at specific position
so user can set tranparency at specific position while touch , not on entire screen
see the first image when we click on it
it will reduce the alpha value
and will redirect to another screen
11:27
you want just alpha effect when on click right?
man.. i thought you want like custome image processing
anyway wait for few mins
https://stackoverflow.com/a/2318528/1848157 // apply this
11:45
@Radhey okay thanks I will check and discuss this effect with client
if he is agree
wc..
 
6 hours later…
18:00
@Radhey did you work with Shimmer effect?
@JaiprakashSoni

« first day (2485 days earlier)      last day (765 days later) »