diff --git a/demo/src/main/res/layout/activity_tag_editor.xml b/demo/src/main/res/layout/activity_tag_editor.xml
index a767685..6749944 100644
--- a/demo/src/main/res/layout/activity_tag_editor.xml
+++ b/demo/src/main/res/layout/activity_tag_editor.xml
@@ -14,5 +14,5 @@
+ app:atg_isAppendMode="true"/>
\ No newline at end of file
diff --git a/library/src/main/java/me/gujun/android/taggroup/TagGroup.java b/library/src/main/java/me/gujun/android/taggroup/TagGroup.java
index 29e4a64..5f2ae99 100644
--- a/library/src/main/java/me/gujun/android/taggroup/TagGroup.java
+++ b/library/src/main/java/me/gujun/android/taggroup/TagGroup.java
@@ -154,25 +154,25 @@ public TagGroup(Context context, AttributeSet attrs, int defStyleAttr) {
// Load styled attributes.
final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TagGroup, defStyleAttr, R.style.TagGroup);
try {
- isAppendMode = a.getBoolean(R.styleable.TagGroup_isAppendMode, false);
- inputHint = a.getText(R.styleable.TagGroup_inputHint);
- borderColor = a.getColor(R.styleable.TagGroup_borderColor, default_border_color);
- textColor = a.getColor(R.styleable.TagGroup_textColor, default_text_color);
- backgroundColor = a.getColor(R.styleable.TagGroup_backgroundColor, default_background_color);
- dashBorderColor = a.getColor(R.styleable.TagGroup_dashBorderColor, default_dash_border_color);
- inputHintColor = a.getColor(R.styleable.TagGroup_inputHintColor, default_input_hint_color);
- inputTextColor = a.getColor(R.styleable.TagGroup_inputTextColor, default_input_text_color);
- checkedBorderColor = a.getColor(R.styleable.TagGroup_checkedBorderColor, default_checked_border_color);
- checkedTextColor = a.getColor(R.styleable.TagGroup_checkedTextColor, default_checked_text_color);
- checkedMarkerColor = a.getColor(R.styleable.TagGroup_checkedMarkerColor, default_checked_marker_color);
- checkedBackgroundColor = a.getColor(R.styleable.TagGroup_checkedBackgroundColor, default_checked_background_color);
- pressedBackgroundColor = a.getColor(R.styleable.TagGroup_pressedBackgroundColor, default_pressed_background_color);
- borderStrokeWidth = a.getDimension(R.styleable.TagGroup_borderStrokeWidth, default_border_stroke_width);
- textSize = a.getDimension(R.styleable.TagGroup_textSize, default_text_size);
- horizontalSpacing = (int) a.getDimension(R.styleable.TagGroup_horizontalSpacing, default_horizontal_spacing);
- verticalSpacing = (int) a.getDimension(R.styleable.TagGroup_verticalSpacing, default_vertical_spacing);
- horizontalPadding = (int) a.getDimension(R.styleable.TagGroup_horizontalPadding, default_horizontal_padding);
- verticalPadding = (int) a.getDimension(R.styleable.TagGroup_verticalPadding, default_vertical_padding);
+ isAppendMode = a.getBoolean(R.styleable.TagGroup_atg_isAppendMode, false);
+ inputHint = a.getText(R.styleable.TagGroup_atg_inputHint);
+ borderColor = a.getColor(R.styleable.TagGroup_atg_borderColor, default_border_color);
+ textColor = a.getColor(R.styleable.TagGroup_atg_textColor, default_text_color);
+ backgroundColor = a.getColor(R.styleable.TagGroup_atg_backgroundColor, default_background_color);
+ dashBorderColor = a.getColor(R.styleable.TagGroup_atg_dashBorderColor, default_dash_border_color);
+ inputHintColor = a.getColor(R.styleable.TagGroup_atg_inputHintColor, default_input_hint_color);
+ inputTextColor = a.getColor(R.styleable.TagGroup_atg_inputTextColor, default_input_text_color);
+ checkedBorderColor = a.getColor(R.styleable.TagGroup_atg_checkedBorderColor, default_checked_border_color);
+ checkedTextColor = a.getColor(R.styleable.TagGroup_atg_checkedTextColor, default_checked_text_color);
+ checkedMarkerColor = a.getColor(R.styleable.TagGroup_atg_checkedMarkerColor, default_checked_marker_color);
+ checkedBackgroundColor = a.getColor(R.styleable.TagGroup_atg_checkedBackgroundColor, default_checked_background_color);
+ pressedBackgroundColor = a.getColor(R.styleable.TagGroup_atg_pressedBackgroundColor, default_pressed_background_color);
+ borderStrokeWidth = a.getDimension(R.styleable.TagGroup_atg_borderStrokeWidth, default_border_stroke_width);
+ textSize = a.getDimension(R.styleable.TagGroup_atg_textSize, default_text_size);
+ horizontalSpacing = (int) a.getDimension(R.styleable.TagGroup_atg_horizontalSpacing, default_horizontal_spacing);
+ verticalSpacing = (int) a.getDimension(R.styleable.TagGroup_atg_verticalSpacing, default_vertical_spacing);
+ horizontalPadding = (int) a.getDimension(R.styleable.TagGroup_atg_horizontalPadding, default_horizontal_padding);
+ verticalPadding = (int) a.getDimension(R.styleable.TagGroup_atg_verticalPadding, default_vertical_padding);
} finally {
a.recycle();
}
diff --git a/library/src/main/res/values/attrs.xml b/library/src/main/res/values/attrs.xml
index 3cfea7e..3cf9b16 100644
--- a/library/src/main/res/values/attrs.xml
+++ b/library/src/main/res/values/attrs.xml
@@ -1,45 +1,45 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
diff --git a/library/src/main/res/values/styles.xml b/library/src/main/res/values/styles.xml
index 1095b7c..416e530 100644
--- a/library/src/main/res/values/styles.xml
+++ b/library/src/main/res/values/styles.xml
@@ -4,61 +4,61 @@
\ No newline at end of file