记录Android

记录Android 点滴

AppCompat Theme Fullscreen

1
2
3
4
5
6
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>

Actiivity 动画

overridePendingTransition方法需要在startAtivity方法或者是finish方法调用之后立即执行

Andoid studio 编码设置

1
2
3
compileOptions {
encoding "GBK"
}
1
2
3
android {
useLibrary 'org.apache.http.legacy'
}

adb

1
2
adb shell getprop
adb shell getprop ro.product.cpu.abi

camera

1
2
3
hw.camera=yes
hw.camera.back: webcam0
hw.camera.front: webcam0

gradle build error

1
2
3
Unsupported major.minor version 52.0

use jdk 8

python 环境工具

1
virtualenv -p python3 test
0%