diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..89f4b6e
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+CustomMaterialChipWidget
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 7e0cd6f..55a6544 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -5,7 +5,7 @@
diff --git a/app/src/main/java/com/justin/custommaterialchipwidget/MainActivity.kt b/app/src/main/java/com/justin/custommaterialchipwidget/MainActivity.kt
index 34e0150..0ef9e27 100644
--- a/app/src/main/java/com/justin/custommaterialchipwidget/MainActivity.kt
+++ b/app/src/main/java/com/justin/custommaterialchipwidget/MainActivity.kt
@@ -16,24 +16,30 @@ class MainActivity : AppCompatActivity() {
setContentView(R.layout.activity_main)
findViewById(R.id.materialChipSetsContainer).apply {
- chipSetSolidColorUnselected = ContextCompat.getColor(context, android.R.color.white)
- chipSetSolidColorSelected = ContextCompat.getColor(context, R.color.selected_blue)
- chipSetStrokeWidth = Utils.convertDpToPx(this@MainActivity, 2)
+ chipSetSolidColorUnselected = ContextCompat.getColor(context, android.R.color.black)
+ chipSetSolidColorSelected = ContextCompat.getColor(context, R.color.green)
+ chipSetStrokeWidth = Utils.convertDpToPx(this@MainActivity, 3)
chipSetStrokeColorUnselected =
- ColorStateList.valueOf(ContextCompat.getColor(context, R.color.light_gray))
+ ColorStateList.valueOf(ContextCompat.getColor(context, R.color.green))
chipSetStrokeColorSelected =
- ColorStateList.valueOf(ContextCompat.getColor(context, R.color.selected_blue))
+ ColorStateList.valueOf(ContextCompat.getColor(context, R.color.green))
- chipTextColorUnselected = ContextCompat.getColor(context, android.R.color.black)
+ chipTextColorUnselected = ContextCompat.getColor(context, android.R.color.white)
chipTextColorSelected = ContextCompat.getColor(context, android.R.color.white)
chipTextDividerColorUnselected =
- ContextCompat.getColor(context, android.R.color.darker_gray)
+ ContextCompat.getColor(context, R.color.green)
dataSet = createDataSet()
listener = object: MaterialChipsetWidgetListener {
- override fun onChipSelectionChanged(name: String?, checked: Boolean) {
+
+ override fun onChipSelectionChanged(
+ name: String?,
+ chipSelectionGroup: String,
+ checked: Boolean,
+ ) {
Toast.makeText(this@MainActivity,"onChipSelectionChanged --> $name || $checked",Toast.LENGTH_SHORT).show()
+
}
override fun onChipsetsResetClicked() {
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 39b251e..45c1aba 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -6,11 +6,22 @@
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal"
+ android:background="@color/black_04"
+ android:paddingStart="20dp"
+ android:paddingTop="50dp"
tools:context=".MainActivity">
+
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index c47f829..4d36618 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -1,16 +1,18 @@
-
- #FFBB86FC
- #FF6200EE
- #FF3700B3
+
+ @color/black
+ @color/black
+ @color/black
#FF03DAC5
#FF018786
#FF000000
#FFFFFFFF
- #E98FE792
+ #54A442
#44EA2A
#E9165FD3
@android:color/darker_gray
+ #FF040404
+
\ No newline at end of file
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index d46f42d..7b4a56e 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -1,6 +1,6 @@
-