為什么有的地方顏色設置需要后面帶0有的不需要?
rightTextColor=ta.getColor(R.styleable.Topbar_rightTextColor,0); rightBackground=ta.getDrawable(R.styleable.Topbar_rightBackground);
rightTextColor=ta.getColor(R.styleable.Topbar_rightTextColor,0); rightBackground=ta.getDrawable(R.styleable.Topbar_rightBackground);
2019-02-20
舉報
2019-02-25
這是所在的類中定義的public帶參方法所決定的,根據public帶參方法所定義的傳遞參數的數據類型以及參數個數一一對應。