diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index f809d90..6a6db3b 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -4,7 +4,7 @@
-
+
@@ -15,7 +15,6 @@
-
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index a5f05cd..e34606c 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -21,5 +21,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 6199cc2..6e42084 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,5 +1,13 @@
+
+
+
+
+
+
+
+
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
deleted file mode 100644
index 7f68460..0000000
--- a/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index bc9459a..93693af 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -17,12 +17,22 @@ android {
viewBinding true
}
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+
+ kotlinOptions {
+ jvmTarget = "11"
+ }
+
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
+ namespace 'www.sanju.motiontoastapp'
}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index ab005a6..828d8f2 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,6 +1,5 @@
-
+
-
-
diff --git a/app/src/main/java/www/sanju/motiontoastapp/MainActivity.kt b/app/src/main/java/www/sanju/motiontoastapp/MainActivity.kt
index 0843069..684a47e 100644
--- a/app/src/main/java/www/sanju/motiontoastapp/MainActivity.kt
+++ b/app/src/main/java/www/sanju/motiontoastapp/MainActivity.kt
@@ -103,7 +103,7 @@ class MainActivity : AppCompatActivity(), View.OnClickListener, View.OnLongClick
R.id.deleteBtn -> {
MotionToast.createToast(
this, "Profile Deleted!",
- "",
+ "Your profile has been deleted!",
MotionToastStyle.DELETE,
MotionToast.GRAVITY_BOTTOM,
MotionToast.LONG_DURATION,
diff --git a/build.gradle b/build.gradle
index e5cdde2..15ba820 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,7 +8,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:4.2.2'
+ classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
diff --git a/motiontoast/build.gradle b/motiontoast/build.gradle
index 5785bb4..a296ca1 100644
--- a/motiontoast/build.gradle
+++ b/motiontoast/build.gradle
@@ -8,8 +8,6 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
- versionCode 1
- versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
@@ -22,9 +20,19 @@ android {
}
}
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+
+ kotlinOptions {
+ jvmTarget = "11"
+ }
+
buildFeatures {
viewBinding true
}
+ namespace 'www.sanju.motiontoast'
}
diff --git a/motiontoast/src/main/AndroidManifest.xml b/motiontoast/src/main/AndroidManifest.xml
index f589ae3..cc947c5 100644
--- a/motiontoast/src/main/AndroidManifest.xml
+++ b/motiontoast/src/main/AndroidManifest.xml
@@ -1 +1 @@
-
+
diff --git a/motiontoast/src/main/res/layout/full_color_toast.xml b/motiontoast/src/main/res/layout/full_color_toast.xml
index c659967..5c9d1a9 100644
--- a/motiontoast/src/main/res/layout/full_color_toast.xml
+++ b/motiontoast/src/main/res/layout/full_color_toast.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/color_toast_view"
android:layout_width="match_parent"
- android:layout_height="100dp"
+ android:layout_height="wrap_content"
android:layout_margin="@dimen/dimen_24"
android:background="@drawable/toast_round_background"
android:backgroundTint="@color/warning_color">
@@ -50,7 +50,7 @@
@@ -40,16 +41,16 @@
8dp
12dp
16dp
+ 20dp
24dp
32dp
48dp