setContentView(R.layout.activity_main); TextView tv_phone=(TextView)findViewById(R.id.tv_phone); String brand = android.os.Build.BRAND; tv_phone.setText(brand);
android 获取手机品牌
最新推荐文章于 2023-07-27 16:24:57 发布
本文介绍如何在Android应用中设置并显示设备的品牌名称。通过使用`setContentView`加载布局文件,并利用`findViewById`获取视图组件,最终将设备品牌名设置到文本视图上。
1214

被折叠的 条评论
为什么被折叠?



