CopyPastor

Detecting plagiarism made easy.

Score: 1.7539532780647278; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2017-02-27
by Jitesh Dalsaniya

Original Post

Original - Posted on 2016-04-20
by Ahmad Aghazadeh



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

Use Following code.
<?xml version="1.0" encoding="utf-8"?> <ripple android:color="@color/COLOR_WHILE_PRESSING" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/round_corner"></item> </ripple>

round_corner.xml

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/BACKGROUND_COLOR" /> <corners android:radius="6dp" /> </shape>
Try that one:
ripple.xml
<?xml version="1.0" encoding="utf-8"?> <ripple android:color="@color/COLOR_WHILE_PRESSING" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/background"></item> </ripple>
background.xml
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/BACKGROUND_COLOR" /> <corners android:radius="6dp" /> </shape>

You have to use diffent versions of this `drawable` file. Put this code in `res/drawable-v21/ripple.xml` and create a different `res/drawable/ripple.xml`

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