android
隐藏状态栏:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
ActionBar actionBar=getSupportActionBar();
if(actionBar!=null) {
actionBar.hide();
}
此段需在setContentView(R.layout.activity_main);前
控件圆角:
-
-
<!--自定义的控件圆角背景-->
-
<shape xmlns:android="http://schemas.android.com/apk/res/android">
-
<solid android:color="@color/white"/>
-
<padding android:top="10px" android:bottom="10px"/>
-
<corners android:radius="50px"/>
-
<stroke android:width="1px" android:color="#f08200"/>
-
</shape>
corners ----------圆角
gradient ----------渐变
padding ----------内容离边界距离
size ------------大小
solid ----------填充颜色
stroke ----------描边
来自https://blog.csdn.net/shine_qstm/article/details/51698934
android 颜色渐变
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="45"
android:startColor="#00DFFF"
android:endColor="#008FFF"/>
</shape>
来自https://blog.csdn.net/shine_qstm/article/details/51698934android studio 自带图标库 开源图标库:
自带图标:new—>image asset
来自https://jingyan.baidu.com/article/6d704a133a1d5f28db51cacc.html
-

浙公网安备 33010602011771号