├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── layout │ │ │ │ ├── item_sample_swiperoo.xml │ │ │ │ ├── content_main.xml │ │ │ │ └── activity_main.xml │ │ ├── java │ │ │ └── belka │ │ │ │ └── us │ │ │ │ └── sample │ │ │ │ ├── MyAdapter.java │ │ │ │ ├── MyViewHolder.java │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── belka │ │ │ └── us │ │ │ └── sample │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── belka │ │ └── us │ │ └── sample │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── swiperoo-library ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── dimens.xml │ │ │ └── strings.xml │ │ ├── drawable-hdpi │ │ │ └── ic_delete_sweep_black_24dp.png │ │ ├── drawable-mdpi │ │ │ └── ic_delete_sweep_black_24dp.png │ │ ├── drawable-xhdpi │ │ │ └── ic_delete_sweep_black_24dp.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_delete_sweep_black_24dp.png │ │ ├── drawable-xxxhdpi │ │ │ └── ic_delete_sweep_black_24dp.png │ │ └── layout │ │ │ └── button_undo_swiperoo.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── belka │ │ └── us │ │ └── swiperoo │ │ └── library │ │ ├── SwiperooViewHolder.java │ │ └── SwiperooAdapter.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── swiperoo-library-live-demo.gif ├── .gitignore ├── gradle.properties ├── LICENSE ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /swiperoo-library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':swiperoo-library' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /swiperoo-library-live-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/swiperoo-library-live-demo.gif -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Swiperoo 3 | Undo 4 | 5 | -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/drawable-hdpi/ic_delete_sweep_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/swiperoo-library/src/main/res/drawable-hdpi/ic_delete_sweep_black_24dp.png -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/drawable-mdpi/ic_delete_sweep_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/swiperoo-library/src/main/res/drawable-mdpi/ic_delete_sweep_black_24dp.png -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/drawable-xhdpi/ic_delete_sweep_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/swiperoo-library/src/main/res/drawable-xhdpi/ic_delete_sweep_black_24dp.png -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/drawable-xxhdpi/ic_delete_sweep_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/swiperoo-library/src/main/res/drawable-xxhdpi/ic_delete_sweep_black_24dp.png -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/drawable-xxxhdpi/ic_delete_sweep_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BelkaLab/Swiperoo/HEAD/swiperoo-library/src/main/res/drawable-xxxhdpi/ic_delete_sweep_black_24dp.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | *.asc 4 | /local.properties 5 | /gradle/* 6 | /.idea/* 7 | /.idea/workspace.xml 8 | /.idea/libraries 9 | .DS_Store 10 | /build 11 | /captures 12 | .externalNativeBuild 13 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Swiperoo 3 | MainActivity 4 | Swiperoo Sample 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /swiperoo-library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_sample_swiperoo.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/belka/us/sample/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package belka.us.sample; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/java/belka/us/sample/MyAdapter.java: -------------------------------------------------------------------------------- 1 | package belka.us.sample; 2 | 3 | import android.content.Context; 4 | 5 | import java.util.List; 6 | 7 | import belka.us.swiperoo.library.SwiperooAdapter; 8 | import belka.us.swiperoo.library.SwiperooViewHolder; 9 | 10 | /** 11 | * Created by fabriziorizzonelli on 01/04/2017. 12 | */ 13 | 14 | public class MyAdapter extends SwiperooAdapter { 15 | 16 | public MyAdapter(Context context, List items, Listener listener, SwiperooViewHolder.Factory factory) { 17 | super(context, items, listener, factory); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /swiperoo-library/src/main/res/layout/button_undo_swiperoo.xml: -------------------------------------------------------------------------------- 1 | 2 |