commit de82c8b774ed93d2693cf04fbc0933e630ca3d85
Author: Leszek Koltunski <leszek@distoretedandroid.org>
Date:   Thu Nov 10 17:32:18 2016 +0000

    Effects3D: beginnings of support for removing arbitrary effect

diff --git a/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java b/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
index defde80..ab907ff 100644
--- a/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
+++ b/src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
@@ -536,6 +536,13 @@ public class Effects3DActivity extends Activity
     renderer.mQuat2.set(0,0,0,1);
     }
 
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+  public void remove(View v)
+    {
+    android.util.Log.e("effects3D", "removing!");
+    }
+
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 // Overrides
 
diff --git a/src/main/res/layout/effect1d.xml b/src/main/res/layout/effect1d.xml
index 68bf791..31da0de 100644
--- a/src/main/res/layout/effect1d.xml
+++ b/src/main/res/layout/effect1d.xml
@@ -5,14 +5,30 @@
               android:layout_height="wrap_content"
               android:orientation="vertical">
 
-        <TextView
-            android:id="@+id/effect1dText"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginEnd="5dp"
-            android:layout_marginStart="5dp"
-            android:layout_marginTop="3dp"
-            />
+        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:id="@+id/button1dLayout"
+              android:layout_width="match_parent"
+              android:layout_height="match_parent"
+              android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/effect1dText"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginEnd="5dp"
+                    android:layout_marginStart="5dp"
+                    android:layout_marginTop="3dp"
+                    android:layout_weight="1"/>
+
+                <Button
+                    android:text="@string/removebut"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:id="@+id/button"
+                    android:layout_weight="0.2"
+                    android:layout_marginTop="3dp"
+                    android:onClick="remove"/>
+        </LinearLayout>
 
         <SeekBar
             android:id="@+id/effect1dbar1"
diff --git a/src/main/res/layout/effect2d.xml b/src/main/res/layout/effect2d.xml
index 5d5730b..cec8907 100644
--- a/src/main/res/layout/effect2d.xml
+++ b/src/main/res/layout/effect2d.xml
@@ -5,14 +5,30 @@
               android:layout_height="wrap_content"
               android:orientation="vertical">
 
-        <TextView
-            android:id="@+id/effect2dText"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginEnd="5dp"
-            android:layout_marginStart="5dp"
-            android:layout_marginTop="3dp"
-            />
+        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:id="@+id/button2dLayout"
+              android:layout_width="match_parent"
+              android:layout_height="match_parent"
+              android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/effect2dText"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginEnd="5dp"
+                    android:layout_marginStart="5dp"
+                    android:layout_marginTop="3dp"
+                    android:layout_weight="1"/>
+
+                <Button
+                    android:text="@string/removebut"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:id="@+id/button"
+                    android:layout_weight="0.2"
+                    android:layout_marginTop="3dp"
+                    android:onClick="remove"/>
+        </LinearLayout>
 
         <SeekBar
             android:id="@+id/effect2dbar1"
diff --git a/src/main/res/layout/effect3d.xml b/src/main/res/layout/effect3d.xml
index eb67df5..ac49466 100644
--- a/src/main/res/layout/effect3d.xml
+++ b/src/main/res/layout/effect3d.xml
@@ -5,13 +5,30 @@
               android:layout_height="wrap_content"
               android:orientation="vertical">
 
-        <TextView
-            android:id="@+id/effect3dText"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginEnd="5dp"
-            android:layout_marginStart="5dp"
-            android:layout_marginTop="3dp" />
+        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:id="@+id/button3dLayout"
+              android:layout_width="match_parent"
+              android:layout_height="match_parent"
+              android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/effect3dText"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginEnd="5dp"
+                    android:layout_marginStart="5dp"
+                    android:layout_marginTop="3dp"
+                    android:layout_weight="1"/>
+
+                <Button
+                    android:text="@string/removebut"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:id="@+id/button"
+                    android:layout_weight="0.2"
+                    android:layout_marginTop="3dp"
+                    android:onClick="remove"/>
+        </LinearLayout>
 
         <SeekBar
             android:id="@+id/effect3dbar1"
diff --git a/src/main/res/layout/effect4d.xml b/src/main/res/layout/effect4d.xml
index 38cdb2f..c7f17c1 100644
--- a/src/main/res/layout/effect4d.xml
+++ b/src/main/res/layout/effect4d.xml
@@ -5,13 +5,30 @@
               android:layout_height="wrap_content"
               android:orientation="vertical">
 
-        <TextView
-            android:id="@+id/effect4dText"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginEnd="5dp"
-            android:layout_marginStart="5dp"
-            android:layout_marginTop="3dp" />
+        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:id="@+id/button4dLayout"
+              android:layout_width="match_parent"
+              android:layout_height="match_parent"
+              android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/effect4dText"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginEnd="5dp"
+                    android:layout_marginStart="5dp"
+                    android:layout_marginTop="3dp"
+                    android:layout_weight="1"/>
+
+                <Button
+                    android:text="@string/removebut"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:id="@+id/button"
+                    android:layout_weight="0.2"
+                    android:layout_marginTop="3dp"
+                    android:onClick="remove"/>
+        </LinearLayout>
 
         <SeekBar
             android:id="@+id/effect4dbar1"
diff --git a/src/main/res/layout/effect5d.xml b/src/main/res/layout/effect5d.xml
index 4f56e5c..0339e9b 100644
--- a/src/main/res/layout/effect5d.xml
+++ b/src/main/res/layout/effect5d.xml
@@ -5,13 +5,30 @@
               android:layout_height="wrap_content"
               android:orientation="vertical">
 
-        <TextView
-            android:id="@+id/effect5dText"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginEnd="5dp"
-            android:layout_marginStart="5dp"
-            android:layout_marginTop="3dp" />
+        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:id="@+id/button5dLayout"
+              android:layout_width="match_parent"
+              android:layout_height="match_parent"
+              android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/effect5dText"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginEnd="5dp"
+                    android:layout_marginStart="5dp"
+                    android:layout_marginTop="3dp"
+                    android:layout_weight="1"/>
+
+                <Button
+                    android:text="@string/removebut"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:id="@+id/button"
+                    android:layout_weight="0.2"
+                    android:layout_marginTop="3dp"
+                    android:onClick="remove"/>
+        </LinearLayout>
 
         <SeekBar
             android:id="@+id/effect5dbar1"
