1 在AndroidManifest 设置style
<activity android:name=".AdvActivity"
android:exported="true"
android:theme="@style/translucent"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan"
></activity>
2 在layout 父控件设置 background
android:background="#9000"