From cfc55040332ec8bb53cc02ade5a6da6da46c325e Mon Sep 17 00:00:00 2001
From: Emmanuel <emmanuelbendavid@gmail.com>
Date: Mon, 29 Feb 2016 22:47:59 -0300
Subject: [PATCH 1/5] Fixes

Deleted unused import, localized strings and ignored AllowBackup and
GoogleAppIndexing
---
 sample/src/main/AndroidManifest.xml                                 | 6 ++++--
 sample/src/main/res/layout/activity_main.xml                        | 6 +++---
 sample/src/main/res/values/strings.xml                              | 3 +++
 .../src/main/java/com/roughike/swipeselector/SwipeSelector.java     | 1 -
 4 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml
index 81cc2f2..9c25acb 100644
--- a/sample/src/main/AndroidManifest.xml
+++ b/sample/src/main/AndroidManifest.xml
@@ -1,13 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.example.swipeselector">
+          xmlns:tools="http://schemas.android.com/tools"
+          package="com.example.swipeselector">
 
     <application
         android:allowBackup="true"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
         android:supportsRtl="true"
-        android:theme="@style/AppTheme">
+        android:theme="@style/AppTheme"
+        tools:ignore="AllowBackup,GoogleAppIndexingWarning">
         <activity android:name="com.example.swipeselector.MainActivity">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
diff --git a/sample/src/main/res/layout/activity_main.xml b/sample/src/main/res/layout/activity_main.xml
index 8765f13..f8842bd 100644
--- a/sample/src/main/res/layout/activity_main.xml
+++ b/sample/src/main/res/layout/activity_main.xml
@@ -16,7 +16,7 @@
             android:layout_marginLeft="16dp"
             android:layout_marginRight="16dp"
             android:layout_marginTop="16dp"
-            android:text="Example Pizza"
+            android:text="@string/pizza"
             android:textAppearance="@style/TextAppearance.AppCompat.Title" />
 
         <TextView
@@ -25,7 +25,7 @@
             android:layout_marginLeft="16dp"
             android:layout_marginRight="16dp"
             android:layout_marginBottom="16dp"
-            android:text="Mamma mia! Now you can order Example Pizzas delicious pizzas also by mobile.\n\nChoose a size, toppings and delivery method and you're good to go!"
+            android:text="@string/pizza_order"
             android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
 
         <View
@@ -79,7 +79,7 @@
             android:layout_margin="16dp"
             android:background="@color/colorAccent"
             android:textColor="#FFFFFF"
-            android:text="I'm hungry, make me some pizza!"/>
+            android:text="@string/pizza_make"/>
 
     </LinearLayout>
 
diff --git a/sample/src/main/res/values/strings.xml b/sample/src/main/res/values/strings.xml
index 53d3426..835dc5d 100644
--- a/sample/src/main/res/values/strings.xml
+++ b/sample/src/main/res/values/strings.xml
@@ -1,3 +1,6 @@
 <resources>
     <string name="app_name">SwipeSelector Demo</string>
+    <string name="pizza">Example Pizza</string>
+    <string name="pizza_order">Mamma mia! Now you can order Example Pizzas delicious pizzas also by mobile.\n\nChoose a size, toppings and delivery method and you\'re good to go!</string>
+    <string name="pizza_make">I\'m hungry, make me some pizza!</string>
 </resources>
diff --git a/swipe-selector/src/main/java/com/roughike/swipeselector/SwipeSelector.java b/swipe-selector/src/main/java/com/roughike/swipeselector/SwipeSelector.java
index 7cf40ec..e85f52c 100644
--- a/swipe-selector/src/main/java/com/roughike/swipeselector/SwipeSelector.java
+++ b/swipe-selector/src/main/java/com/roughike/swipeselector/SwipeSelector.java
@@ -3,7 +3,6 @@
 import android.annotation.TargetApi;
 import android.content.Context;
 import android.content.res.TypedArray;
-import android.graphics.Typeface;
 import android.os.Build;
 import android.os.Bundle;
 import android.os.Parcelable;

From b61784ee186301aa0f0257bdd2974fa629845094 Mon Sep 17 00:00:00 2001
From: Emmanuel <emmanuelbendavid@gmail.com>
Date: Mon, 29 Feb 2016 22:49:17 -0300
Subject: [PATCH 2/5] Deleted unused resources

---
 sample/src/main/res/values-w820dp/dimens.xml | 6 ------
 sample/src/main/res/values/dimens.xml        | 5 -----
 2 files changed, 11 deletions(-)
 delete mode 100644 sample/src/main/res/values-w820dp/dimens.xml
 delete mode 100644 sample/src/main/res/values/dimens.xml

diff --git a/sample/src/main/res/values-w820dp/dimens.xml b/sample/src/main/res/values-w820dp/dimens.xml
deleted file mode 100644
index 63fc816..0000000
--- a/sample/src/main/res/values-w820dp/dimens.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<resources>
-    <!-- Example customization of dimensions originally defined in res/values/dimens.xml
-         (such as screen margins) for screens with more than 820dp of available width. This
-         would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
-    <dimen name="activity_horizontal_margin">64dp</dimen>
-</resources>
diff --git a/sample/src/main/res/values/dimens.xml b/sample/src/main/res/values/dimens.xml
deleted file mode 100644
index 47c8224..0000000
--- a/sample/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<resources>
-    <!-- Default screen margins, per the Android Design guidelines. -->
-    <dimen name="activity_horizontal_margin">16dp</dimen>
-    <dimen name="activity_vertical_margin">16dp</dimen>
-</resources>

From f488107691922a35b278b96abe7f9636ea77dc43 Mon Sep 17 00:00:00 2001
From: Emmanuel <emmanuelbendavid@gmail.com>
Date: Mon, 29 Feb 2016 22:56:12 -0300
Subject: [PATCH 3/5] Fixes

Ignored animations element for API < 11 & added description to move left
and right images.
---
 .../src/main/res/layout/swipeselector_circle_item.xml        |  4 +++-
 swipe-selector/src/main/res/layout/swipeselector_layout.xml  | 12 ++++++++----
 swipe-selector/src/main/res/values/strings.xml               |  2 ++
 3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml b/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml
index 5713116..ad90719 100644
--- a/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml
+++ b/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml
@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <ImageView
+    xmlns:tools="http://schemas.android.com/tools"
     android:layout_marginLeft="8dp"
     android:layout_marginStart="8dp"
     android:layout_width="6dp"
     android:layout_height="6dp"
-    xmlns:android="http://schemas.android.com/apk/res/android" />
\ No newline at end of file
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    tools:ignore="ContentDescription"/>
\ No newline at end of file
diff --git a/swipe-selector/src/main/res/layout/swipeselector_layout.xml b/swipe-selector/src/main/res/layout/swipeselector_layout.xml
index 38bcd1c..c6c7470 100644
--- a/swipe-selector/src/main/res/layout/swipeselector_layout.xml
+++ b/swipe-selector/src/main/res/layout/swipeselector_layout.xml
@@ -1,8 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
+                xmlns:tools="http://schemas.android.com/tools"
+                android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:animateLayoutChanges="true">
+    android:animateLayoutChanges="true"
+                tools:ignore="UnusedAttribute">
 
     <LinearLayout
         android:layout_width="wrap_content"
@@ -34,7 +36,8 @@
         android:paddingRight="8dp"
         android:paddingEnd="8dp"
         android:paddingTop="16dp"
-        android:paddingBottom="16dp" />
+        android:paddingBottom="16dp"
+        android:contentDescription="@string/move_left"/>
 
     <ImageView
         android:id="@+id/swipeselector_layout_rightButton"
@@ -49,6 +52,7 @@
         android:paddingRight="8dp"
         android:paddingEnd="8dp"
         android:paddingTop="16dp"
-        android:paddingBottom="16dp" />
+        android:paddingBottom="16dp"
+        android:contentDescription="@string/move_right"/>
 
 </RelativeLayout>
\ No newline at end of file
diff --git a/swipe-selector/src/main/res/values/strings.xml b/swipe-selector/src/main/res/values/strings.xml
index c2687dd..2d8bad8 100644
--- a/swipe-selector/src/main/res/values/strings.xml
+++ b/swipe-selector/src/main/res/values/strings.xml
@@ -1,3 +1,5 @@
 <resources>
     <string name="app_name">SwipeSelector</string>
+    <string name="move_left">Move left</string>
+    <string name="move_right">Move right</string>
 </resources>

From 2c5493f7915451b37cc9c7f6550b4ea95b768307 Mon Sep 17 00:00:00 2001
From: Iiro <iiro.krankka@gmail.com>
Date: Thu, 10 Mar 2016 14:53:27 +0200
Subject: [PATCH 4/5] Move namespace declaration to the top.

---
 swipe-selector/src/main/res/layout/swipeselector_circle_item.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml b/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml
index ad90719..330853b 100644
--- a/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml
+++ b/swipe-selector/src/main/res/layout/swipeselector_circle_item.xml
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <ImageView
+    xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_marginLeft="8dp"
     android:layout_marginStart="8dp"
     android:layout_width="6dp"
     android:layout_height="6dp"
-    xmlns:android="http://schemas.android.com/apk/res/android"
     tools:ignore="ContentDescription"/>
\ No newline at end of file

From 7655f4a0a8e4e5bef609c5b03da100d15fdacb76 Mon Sep 17 00:00:00 2001
From: Iiro <iiro.krankka@gmail.com>
Date: Thu, 10 Mar 2016 14:54:33 +0200
Subject: [PATCH 5/5] Fixed formatting.

---
 .../src/main/res/layout/swipeselector_layout.xml   | 42 +++++++++++-----------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/swipe-selector/src/main/res/layout/swipeselector_layout.xml b/swipe-selector/src/main/res/layout/swipeselector_layout.xml
index c6c7470..e435880 100644
--- a/swipe-selector/src/main/res/layout/swipeselector_layout.xml
+++ b/swipe-selector/src/main/res/layout/swipeselector_layout.xml
@@ -1,21 +1,21 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-                xmlns:tools="http://schemas.android.com/tools"
-                android:layout_width="match_parent"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:animateLayoutChanges="true"
-                tools:ignore="UnusedAttribute">
+    tools:ignore="UnusedAttribute">
 
     <LinearLayout
+        android:id="@+id/swipeselector_layout_circleContainer"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:orientation="horizontal"
-        android:layout_centerHorizontal="true"
         android:layout_alignParentBottom="true"
-        android:id="@+id/swipeselector_layout_circleContainer"
-        android:paddingRight="8dp"
+        android:layout_centerHorizontal="true"
+        android:orientation="horizontal"
+        android:paddingBottom="16dp"
         android:paddingEnd="8dp"
-        android:paddingBottom="16dp"/>
+        android:paddingRight="8dp" />
 
     <com.roughike.swipeselector.WrappingPager
         android:id="@+id/swipeselector_layout_swipePager"
@@ -25,34 +25,34 @@
 
     <ImageView
         android:id="@+id/swipeselector_layout_leftButton"
-        android:background="?attr/selectableItemBackgroundBorderless"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignParentLeft="true"
         android:layout_alignParentStart="true"
         android:layout_centerVertical="true"
+        android:background="?attr/selectableItemBackgroundBorderless"
+        android:contentDescription="@string/move_left"
+        android:paddingBottom="16dp"
+        android:paddingEnd="8dp"
         android:paddingLeft="8dp"
-        android:paddingStart="8dp"
         android:paddingRight="8dp"
-        android:paddingEnd="8dp"
-        android:paddingTop="16dp"
-        android:paddingBottom="16dp"
-        android:contentDescription="@string/move_left"/>
+        android:paddingStart="8dp"
+        android:paddingTop="16dp" />
 
     <ImageView
         android:id="@+id/swipeselector_layout_rightButton"
-        android:background="?attr/selectableItemBackgroundBorderless"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_alignParentRight="true"
         android:layout_alignParentEnd="true"
+        android:layout_alignParentRight="true"
         android:layout_centerVertical="true"
+        android:background="?attr/selectableItemBackgroundBorderless"
+        android:contentDescription="@string/move_right"
+        android:paddingBottom="16dp"
+        android:paddingEnd="8dp"
         android:paddingLeft="8dp"
-        android:paddingStart="8dp"
         android:paddingRight="8dp"
-        android:paddingEnd="8dp"
-        android:paddingTop="16dp"
-        android:paddingBottom="16dp"
-        android:contentDescription="@string/move_right"/>
+        android:paddingStart="8dp"
+        android:paddingTop="16dp" />
 
 </RelativeLayout>
\ No newline at end of file
