即使更改了xml布局文件中的代码,Android应用程序活动也不会更改

即使更改了xml布局文件中的代码,Android应用程序活动也不会更改,android,xml,android-layout,Android,Xml,Android Layout,即使在xml布局文件中更改了代码,android应用程序的活动也没有改变 清理项目 建设项目 应用无效缓存/重新启动 同步项目 xml文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:la

即使在xml布局文件中更改了代码,android应用程序的活动也没有改变

  • 清理项目
  • 建设项目
  • 应用无效缓存/重新启动
  • 同步项目
  • xml文件:

    <?xml version="1.0" encoding="utf-8"?>
    
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:background="#EB5D2F"
    >
    
    <include layout="@layout/toolbar"/>
    
    </LinearLayout>
    
    
    

    但无法解决问题。请帮助我做什么。

    你的意思是活动类还是布局?当我在emulator中运行应用程序时,没有任何反映。我的意思是所有内容都保持不变。请保存您的活动和xml文件。从仿真程序中卸载应用程序,然后重新安装。共享您的活动代码活动类或布局您的意思是什么?当我在仿真程序中运行应用程序时,没有任何反映。我的意思是所有内容都保持不变。共享您的活动和xml文件。从仿真程序中卸载应用程序,然后重新安装。共享您的活动代码