简体   繁体   English

如何在我突然单击“隐藏通知”的Android Studio中启用String.xml中的状态栏

[英]How to enable the status bar in String.xml in Android Studio that I suddently clicked on Hide Notification

在此处输入图片说明

I've been stuck with this issue, please help me. 我一直被这个问题困扰,请帮助我。 I right clicked on string.xml file but it did not open the file editor. 我右键单击了string.xml文件,但未打开文件编辑器。

Firstly, rename your string.xml file to strings.xml 首先,将您的string.xml文件重命名为strings.xml

then delete this line in your string.xml file, save it. 然后在您的string.xml文件中删除此行,将其保存。

<?xml version="1.0" encoding="utf-8"?> //delete this line

now click menu File---Close Project and reopen your project and open strings.xml file again. 现在单击菜单File --- Close Project,然后重新打开您的项目,然后再次打开strings.xml文件。

From Android official site Android官方网站

Note: If you click the Hide notification link, the Open editor link goes away. 注意:如果单击“隐藏通知”链接,则“打开编辑器”链接将消失。 To bring it back, close and reopen the project. 要将其恢复,请关闭并重新打开该项目。

All you need to do is close and reopen your project. 您需要做的就是关闭并重新打开项目。

If the above solution is not working then use it. 如果上述解决方案不起作用,请使用它。

Click on File -> Settings and type Translation Editor into search bar. 单击File -> Settings然后在搜索栏中键入Translation Editor

在此处输入图片说明

then right click on Open Translation Editor and click Add Keyboard Shortcut 然后右键单击“ Open Translation Editor ,然后单击“ Add Keyboard Shortcut

在此处输入图片说明

Press any shortcut key that you want to open the Translation Editor , in my case I use Ctrl + Alt + 0 because it does not conflict with another hotkey. 按下要打开“ Translation Editor任何快捷键,在本例中,我使用Ctrl + Alt + 0因为它与另一个热键不冲突。 Then save it by click on OK -> Apply -> OK . 然后通过单击OK -> Apply -> OK保存它。

Now back to you string.xml , try to press the hotkey Ctrl + Alt + 0 . 现在回到string.xml ,尝试按热键Ctrl + Alt + 0 The Translation Editor will be opened. Translation Editor将打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM