android编程实现局部界面动态切换的方法

2019-12-10 19:55:06王冬梅

one.xml

 

  1. <?xml version="1.0" encoding="utf-8"?>  <LinearLayout xmlns:android="http://www.easck.com/apk/res/android" 
  2. android:layout_width="fill_parent"  android:layout_height="fill_parent" 
  3. android:background="@color/yellow"  android:orientation="vertical" > 
  4. <TextView  android:layout_width="wrap_content" 
  5. android:layout_height="wrap_content"  android:text="this is linearLayout one" /> 
  6. </LinearLayout> 

two.xml

 

 
  1. <?xml version="1.0" encoding="utf-8"?>  <LinearLayout xmlns:android="http://www.easck.com/apk/res/android" 
  2. android:layout_width="match_parent"  android:layout_height="match_parent"