diff --git a/example/src/main/java/com/ancient/example/MainActivity.kt b/example/src/main/java/com/ancient/example/MainActivity.kt
index e7d87d8..d786ce3 100644
--- a/example/src/main/java/com/ancient/example/MainActivity.kt
+++ b/example/src/main/java/com/ancient/example/MainActivity.kt
@@ -4,6 +4,8 @@ import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Button
+import android.widget.ImageView
+import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.ancient.country.model.CountryModel
import com.ancient.country.utils.RequestCode
@@ -14,12 +16,16 @@ import com.google.android.material.snackbar.Snackbar
class MainActivity : AppCompatActivity() {
private lateinit var button: Button
+ private lateinit var countryImageView: ImageView
+ private lateinit var countryName: TextView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.main_activity)
button = findViewById(R.id.search_activity)
+ countryImageView = findViewById(R.id.country_image)
+ countryName = findViewById(R.id.country_name)
button.setOnClickListener {
startActivityForResult(
@@ -39,6 +45,10 @@ class MainActivity : AppCompatActivity() {
val country: CountryModel? = getParcelableExtra(RequestParam.SELECTED_VALUE)
if (country != null) {
+
+ countryImageView.setImageDrawable(country.getImage(this@MainActivity))
+ countryName.text = country.countryName
+
Snackbar.make(
button,
"Selected Country [ name, code ] [${country.countryName} , ${country.countryCode}]",
diff --git a/example/src/main/res/layout/main_activity.xml b/example/src/main/res/layout/main_activity.xml
index 710997e..5d9b8f6 100644
--- a/example/src/main/res/layout/main_activity.xml
+++ b/example/src/main/res/layout/main_activity.xml
@@ -1,5 +1,6 @@
-
-
+ android:backgroundTint="@color/colorAccent"
+ android:text="@string/country_search_as_activity"
+ android:textColor="@color/icon_white_color"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+
+
+
+
+
diff --git a/example/src/main/res/values/strings.xml b/example/src/main/res/values/strings.xml
index 07f8e6f..2e96e5f 100644
--- a/example/src/main/res/values/strings.xml
+++ b/example/src/main/res/values/strings.xml
@@ -1,4 +1,6 @@
Country Example
Country Search As Activity
+ country
+ [Country Name]
diff --git a/screenshots/country.gif b/screenshots/country.gif
new file mode 100644
index 0000000..d56bc16
Binary files /dev/null and b/screenshots/country.gif differ