public class MainActivity extends AppCompatActivity {
private TextView mLightTextView;
private SensorManager sensorManager;
private Sensor sensor;
private SensorEventListener listener;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mLightTextView = (TextView) findViewById(R.id.
光线传感器
最新推荐文章于 2024-07-16 18:23:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)