有没有办法为 android Settings.Panel.ACTION_WIFI 创建自定义 UI
我试图使用 wifi 开/关选项。我通过 Settings.Panel.ACTION_WIFI 进入,它按预期工作。然而,系统 UI 在某些设备上存在问题。它在平板电脑中变得扭曲。现在我正在尝试将此 UI 修复到设备的中心。是否有任何选项可以覆盖默认系统窗口并将此对话框放置到设备的中心?我使用的代码是 Intent wifiIntent = new Intent(Settings.Panel.ACTION_WIFI); 启动活动(wifiIntent);
I was trying to use the wifi on/off option. I came through Settings.Panel.ACTION_WIFI and it is working as expected. However the system UI has issues in some of the devices. It is getting distorted in tablets. Now I'm trying to fix this UI to the center of the device. Is there any option to override the default system window and place this dialog to the center of device ? The code I used is
Intent wifiIntent = new Intent(Settings.Panel.ACTION_WIFI);
startActivity(wifiIntent);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论