Skip to content

Commit

Permalink
#update toolbar bgcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
meng.wu1 committed May 31, 2023
1 parent 8e70e6d commit 51282e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib_qrcode/src/main/res/layout/qr_activity_qr_scan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
app:backIcon="@drawable/widget_ic_back_white"
app:showLine="false"
app:showStatusBarHeight="true"
android:background="#00000000"
app:title="@string/qr_scan"
app:titleColor="#FFFFFF" />

Expand Down
4 changes: 3 additions & 1 deletion lib_widget/src/main/java/com/mirkowu/lib_widget/Toolbar.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ private void init(Context context, AttributeSet attrs) {
ivRight = view.findViewById(R.id.iv_right);
vLine = view.findViewById(R.id.v_line);

setBackgroundColor(Color.WHITE);
if (getBackground() == null) {
setBackgroundColor(Color.WHITE);
}
setTitle(title);
setTitleColor(mTitleColorId);
setTitleTextSize(TypedValue.COMPLEX_UNIT_PX, mTitleTextSize);
Expand Down

0 comments on commit 51282e9

Please sign in to comment.