-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi selction chip group #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check file name standards.
val typedArray = context.theme.obtainStyledAttributes(attrs, R.styleable.SingleLineChipGroup, 0, 0) | ||
try { | ||
orientation = typedArray.getInt(R.styleable.SingleLineChipGroup_cg_sl_orientation, Orientation.VERTICAL) | ||
chipBGColor = typedArray.getColorStateList(R.styleable.SingleLineChipGroup_cg_sl_background) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default color should be set here while we fetch color using style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applySelector() will execute
try { | ||
orientation = typedArray.getInt(R.styleable.SingleLineChipGroup_cg_sl_orientation, Orientation.VERTICAL) | ||
chipBGColor = typedArray.getColorStateList(R.styleable.SingleLineChipGroup_cg_sl_background) | ||
chipTextColor = typedArray.getColorStateList(R.styleable.SingleLineChipGroup_cg_sl_textselector) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default color should be set here while we fetch color using style. Also, check in other classes for the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applySelector() will execute
} | ||
} | ||
|
||
private fun addRadioButtonView(data: RadioGroupData?) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we define variable as nullable when we are already passing not nullable data in function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File name should be Params
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,29 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<resources> | |||
<style name="item_title"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give the name "itemTitleStyle". Because you already created the below styles name like that. So that it makes consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my comments.
# Conflicts: # .idea/.gitignore # app/src/main/java/com/ss/smartfilter/MainActivity.kt # app/src/main/java/com/ss/smartfilter/Utils.kt # ss-smart-filter/src/main/java/com/ss/smartfilterlib/SmartFilter.kt # ss-smart-filter/src/main/java/com/ss/smartfilterlib/singlechoice/radiogroup/MultiLineRadioGroup.kt # ss-smart-filter/src/main/java/com/ss/smartfilterlib/singlechoice/radiogroup/RowItemRadioGroup.kt # ss-smart-filter/src/main/java/com/ss/smartfilterlib/singlechoice/radiogroup/SingleLineRadioGroup.kt # ss-smart-filter/src/main/res/color/single_text_color_selector.xml # ss-smart-filter/src/main/res/drawable/multiline_default.xml # ss-smart-filter/src/main/res/drawable/singleline_rb_selector.xml # ss-smart-filter/src/main/res/values/attrs.xml # ss-smart-filter/src/main/res/values/colors.xml # ss-smart-filter/src/main/res/values/strings.xml # ss-smart-filter/src/main/res/values/themes.xml
Features: