我的活动类变成了一个xml文件 [英] My Activity Class turn into an xml file

查看:66
本文介绍了我的活动类变成了一个xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我睡觉之前刚完成了我的学校项目的应用程序,但我还没有建立它,因为我认为第二天早上我仍会对其进行一些更改,然后我的同学请求我帮忙他的项目我打开了我的android工作室,这就是我的活动,我所做的所有代码都在那里,我已经尝试检查当地的历史,但他们没有显示。任何人都可以帮助我

i recently just finished my app for my school project before i go to sleep but i didn't build it yet for i thought that i will still put some changes in it the next morning then when my classmate ask me for help for their project i opened my android studio and this is what happens to my activity where all the codes that i made is in there i already try to check on the local history but their nothing shown. anyone could help me

<application>
  <component name="StatisticsApplicationUsages">
    <group name="run-configuration-type">
      <project id="MoniDroid" values="AndroidRunConfigurationType" collectionTime="1508377527412" />
    </group>
    <group name="frameworks">
      <project id="MoniDroid" values="android-gradle,java-gradle,android" collectionTime="1508377527256" />
    </group>
    <group name="run-configuration-type-temp">
      <project id="MoniDroid" values="AndroidRunConfigurationType" collectionTime="1508377527412" />
    </group>
    <group name="file-type">
      <project id="MoniDroid" values="Properties,Groovy,JAVA,ProGuard File,ARCHIVE,PLAIN_TEXT,UNKNOWN,Images,IDEA_MODULE,XML" collectionTime="1508377535538" />
    </group>
    <group name="images.ide.background">
      <project id="MoniDroid" values="frame=0,editor=0" collectionTime="1508377539101" />
    </group>
    <group name="module type">
      <project id="MoniDroid" values="JAVA_MODULE" collectionTime="1508377527318" />
    </group>
    <group name="Git">
      <project id="MoniDroid" values="config.ssh.enabled,config.repo.sync.NOT_DECIDED,config.warn.about.detached.enabled,config.save.policy.STASH,config.push.autoupdate.disabled,config.force.push.enabled,config.push.update.all.roots.enabled,config.warn.about.crlf.enabled,config.update.type.BRANCH_DEFAULT,config.cherry-pick.autocommit.disabled" collectionTime="1508377540992" />
    </group>
    <group name="language-level">
      <project id="MoniDroid" values="JDK_1_7" collectionTime="1508377540570" />
    </group>
  </component>
  <component name="UsageTrigger">
    <counts>
      <entry feature="CreateFile.CreateFileAction" count="4" />
      <entry feature="execute.AndroidRunConfigurationType.Debug" count="2" />
      <entry feature="execute.AndroidRunConfigurationType.Run" count="1451" />
      <entry feature="ide.settings.Appearance" count="1" />
      <entry feature="ide.settings.Plugins" count="1" />
      <entry feature="ideaapp.started" count="140" />
      <entry feature="terminal.win" count="1" />
      <entry feature="tips.of.the.day.next" count="20" />
      <entry feature="tips.of.the.day.prev" count="14" />
      <entry feature="welcome.screen.WelcomeScreen.CreateNewProject" count="2" />
    </counts>
  </component>
</application>

推荐答案

您可以从Android Studio的本地历史记录中获取代码。您需要按照以下步骤操作。

You can get your code back from local history of Android Studio. You need to follow below steps.

1)启动Android Studio并打开文件(可以是您的活动或xml代码文件)

1) Launch Android Studio and open the file (It can be your activity or xml code file)

2)点击VCS

3)从菜单中转到本地历史记录

3) Go to Local History from the menu

4)并选择显示本地历史记录

4) And select Show local history

5)没有第5步:)

从历史记录中获取代码

这篇关于我的活动类变成了一个xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆