1、创建shape.xml
drawable->new->Drawable resource file
将selectir改为shape
2、禁止横屏
在AndroidManifest.xml中<activity 里面添加
android:screenOrientation="portrait" //初始为竖屏
android:configChanges="orientation|keyboardHidden|screenSize">
1、创建shape.xml
drawable->new->Drawable resource file
将selectir改为shape
2、禁止横屏
在AndroidManifest.xml中<activity 里面添加
android:screenOrientation="portrait" //初始为竖屏
android:configChanges="orientation|keyboardHidden|screenSize">