Android手机里也可以通过程序进行屏幕亮度的调节,而这种操作往往就是通过SeekBar组件实现的,而要想实现亮度调节功能就必须android.view.Window类的screenBrightness属性实现,而此属性的取值范围是0~1
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
(由暗到亮)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"