5 android android-layout android-activity android-actionbar android-studio
我的colors.xml
文件中有一种颜色需要用于toolbar
颜色
<resources>
<color name="MAIN_A">#f16264</color>
</resources>
Run Code Online (Sandbox Code Playgroud)
现在我需要MAIN_A
用作颜色toolbar
.
小智 13
使用此代码
getSupportActionBar().setBackground(new ColorDrawable(getResources().getColor(R.color.white)));
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
12543 次 |
最近记录: |