CopyPastor

Detecting plagiarism made easy.

Score: 0.8061707615852356; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2014-01-28
by Nayan Rath

Original Post

Original - Posted on 2010-02-23
by JaVadid



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can try these, it is from my project :

<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha android:fromAlpha = "1.0" android:toAlpha = "0.5" android:duration = "300"> </alpha> <scale android:fromXScale = "1" android:toXScale = "0.9" android:fromYScale = "1" android:toYScale = "0.9" android:pivotX="50%" android:pivotY="50%" android:duration = "50"> </scale> </set>


I don't know if this is the correct method but defining an animation as mentioned did the trick. Now we just have to give
public void onClick(View v) { v.startAnimation(AnimationUtils.loadAnimation(Context, R.anim.image_click)); //Your other coding if present }
Hope it might help you .
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:fromAlpha = "1.0" android:toAlpha = "0.5" android:duration = "300"> </alpha> <scale android:fromXScale = "1" android:toXScale = "0.9" android:fromYScale = "1" android:toYScale = "0.9" android:pivotX="50%" android:pivotY="50%" android:duration = "50"> </scale> </set>
I don't know if this is the correct method but defining an animation as mentioned did the trick. Now we just have to give
public void onClick(View v) { v.startAnimation(AnimationUtils.loadAnimation(Context, R.anim.image_click)); //Your other coding if present }
in the OnClick method and the change will be visible...


        
Present in both answers; Present only in the new answer; Present only in the old answer;