[英]How to enable the status bar in String.xml in Android Studio that I suddently clicked on Hide Notification
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.