diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml
index 516db95e..2298751f 100644
--- a/sample/src/main/AndroidManifest.xml
+++ b/sample/src/main/AndroidManifest.xml
@@ -34,160 +34,39 @@
android:name=".ex.ExamplesActivity"
android:label="@string/examples_title" />
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
diff --git a/sample/src/main/java/com/alexvasilkov/gestures/sample/ex/ExamplesActivity.java b/sample/src/main/java/com/alexvasilkov/gestures/sample/ex/ExamplesActivity.java
index b7712d2d..3871365c 100644
--- a/sample/src/main/java/com/alexvasilkov/gestures/sample/ex/ExamplesActivity.java
+++ b/sample/src/main/java/com/alexvasilkov/gestures/sample/ex/ExamplesActivity.java
@@ -1,25 +1,33 @@
package com.alexvasilkov.gestures.sample.ex;
-import android.content.ComponentName;
-import android.content.Context;
+import android.app.Activity;
import android.content.Intent;
-import android.content.pm.ActivityInfo;
-import android.content.pm.ResolveInfo;
-import android.graphics.drawable.Drawable;
import android.os.Bundle;
-import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
-import androidx.core.content.ContextCompat;
-import androidx.core.graphics.drawable.DrawableCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.alexvasilkov.android.commons.ui.Views;
import com.alexvasilkov.gestures.sample.R;
import com.alexvasilkov.gestures.sample.base.BaseActivity;
+import com.alexvasilkov.gestures.sample.ex.animations.ImageAnimationActivity;
+import com.alexvasilkov.gestures.sample.ex.animations.RoundImageAnimationActivity;
+import com.alexvasilkov.gestures.sample.ex.animations.cross.ImageCrossAnimationActivity;
+import com.alexvasilkov.gestures.sample.ex.image.control.ImageControlActivity;
+import com.alexvasilkov.gestures.sample.ex.image.crop.ImageCropActivity;
+import com.alexvasilkov.gestures.sample.ex.image.pager.ViewPagerActivity;
+import com.alexvasilkov.gestures.sample.ex.image.viewer.ImageViewerActivity;
+import com.alexvasilkov.gestures.sample.ex.layout.pager.LayoutsInPagerActivity;
+import com.alexvasilkov.gestures.sample.ex.layout.viewer.LayoutViewerActivity;
+import com.alexvasilkov.gestures.sample.ex.other.markers.ImageMarkersActivity;
+import com.alexvasilkov.gestures.sample.ex.other.scene.SceneActivity;
+import com.alexvasilkov.gestures.sample.ex.other.text.CustomViewActivity;
+import com.alexvasilkov.gestures.sample.ex.transitions.complex.ListAnyToAllActivity;
+import com.alexvasilkov.gestures.sample.ex.transitions.complex.ListAnyToAnyActivity;
+import com.alexvasilkov.gestures.sample.ex.transitions.recycler.RecyclerToPagerActivity;
import com.alexvasilkov.gestures.sample.ex.utils.Painting;
import com.bumptech.glide.Glide;
@@ -39,7 +47,7 @@ protected void onCreate(Bundle savedInstanceState) {
RecyclerView recyclerView = findViewById(R.id.main_list);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
- recyclerView.setAdapter(new SampleAdapter(getActivitiesList()));
+ recyclerView.setAdapter(new ExamplesAdapter(getExamplesList()));
paintings = Painting.list(getResources());
}
@@ -54,84 +62,198 @@ protected void onResume() {
}
}
- private void onItemClicked(ActivityInfo info) {
- Intent intent = new Intent();
- intent.setComponent(new ComponentName(this, info.name));
- startActivity(intent);
- }
+ private static List> getExamplesList() {
+ List