Skip to content

Commit f87dee5

Browse files
committed
color
1 parent 4515ef0 commit f87dee5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</h1>
77

88
<div align="center">
9-
<a><img src="https://img.shields.io/badge/Version-2.1.0-brightgreen.svg?style=flat"></a>
9+
<a><img src="https://img.shields.io/badge/Version-2.1.1-brightgreen.svg?style=flat"></a>
1010
<a><img src="https://img.shields.io/badge/ID-gzeinnumer-blue.svg?style=flat"></a>
1111
<a><img src="https://img.shields.io/badge/Java-Suport-green?logo=java&style=flat"></a>
1212
<a><img src="https://img.shields.io/badge/Koltin-Suport-green?logo=kotlin&style=flat"></a>
@@ -284,6 +284,8 @@ You can Customize your dialog UI. [**ReadMore**](https://github.com/gzeinnumer/M
284284
- Bug Fixing
285285
- **2.1.0**
286286
- Bug Fixing Color
287+
- **2.1.1**
288+
- Bug Fixing Color
287289

288290
---
289291

README_1.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ You can change UI with this configuration.
9797
- `Gravity.START`
9898
- etc.
9999
- Change Button Background Color
100-
- `.setButtonColor(R.color.amber_200)` you can use this only if you use `.setButtonStyle(ButtonStyle.ButtonContained)`
101-
100+
- `.setButtonColor(getResources().getColor(R.color.colorPrimary))` or `.setButtonColor(Color.parseColor("#03DAC5"))` you can use this only if you use .setButtonStyle(ButtonStyle.ButtonContained)
102101
##
103102

104103
**Look At Orange Arrow.** you can set shape/canvas from `drawable` to `dialog` with `shape.xml`->`<shape></shape>`. in my example i am using `rounded_corner_2.xml`.

lib/src/main/java/com/gzeinnumer/mylibsearchviewdialog/dialog/searchViewDialogNew/SearchViewDialogSetting.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ private void initDesign() {
216216
}
217217

218218
if (buttonColor!=0 && btnStyle == ButtonStyle.ButtonContained){
219-
_dBtnCancelMBC.setBackgroundColor(getResources().getColor(buttonColor));
220-
_dBtnOkMBC.setBackgroundColor(getResources().getColor(buttonColor));
219+
_dBtnCancelMBC.setBackgroundColor(buttonColor);
220+
_dBtnOkMBC.setBackgroundColor(buttonColor);
221221
}
222222

223223
if (listFromUser.size()>0){
224224
for (int i = 0; i<listFromUser.size(); i++){
225-
list.add((T) listFromUser.get(i));
225+
list.add(listFromUser.get(i));
226226
}
227227
_adapter = new RvItemAdapter<T>(type, this, list);
228228

0 commit comments

Comments
 (0)