Skip to content

Commit

Permalink
修复倍数bug
Browse files Browse the repository at this point in the history
  • Loading branch information
StarrySky123123123 committed Feb 2, 2020
1 parent dcf8e6c commit d58bc11
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ private void resh(){
public ZhxDate(Context context, AttributeSet attrs) {
super(context, attrs);
if (context == null) this.context = context;
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.MenuItemLayout);
Constant.MONTH_XHX = a.getString(R.styleable.MenuItemLayout_month_xhxcolor)==null?"#4678ff":a.getString(R.styleable.MenuItemLayout_month_xhxcolor);
Constant.DAYITEM = a.getString(R.styleable.MenuItemLayout_dayitemcolor)==null?"#4678ff":a.getString(R.styleable.MenuItemLayout_dayitemcolor);
bs = a.getInteger(R.styleable.MenuItemLayout_bs,2);
initData();
init(context, attrs);
}

private void init(Context context, AttributeSet attrs) {
inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflater.inflate(R.layout.zhxdate, this, true);
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.MenuItemLayout);
Constant.MONTH_XHX = a.getString(R.styleable.MenuItemLayout_month_xhxcolor)==null?"#4678ff":a.getString(R.styleable.MenuItemLayout_month_xhxcolor);
Constant.DAYITEM = a.getString(R.styleable.MenuItemLayout_dayitemcolor)==null?"#4678ff":a.getString(R.styleable.MenuItemLayout_dayitemcolor);
bs = a.getInteger(R.styleable.MenuItemLayout_bs,2);
initView(view);
initmonth();
initday();
Expand Down

0 comments on commit d58bc11

Please sign in to comment.