同一个activity中通过一个按钮切换两个不同的布局

上传者: u010963246 | 上传时间: 2019-12-21 18:55:34 | 文件大小: 1MB | 文件类型: zip
实现在同一个activity中通过一个按钮切换两个不同的布局,此处的按钮并非同一个按钮控件,而是在两个不同的布局文件中点击按钮实现布局的切换。参考博客:http://blog.csdn.net/u010963246/article/details/47324229

文件下载

资源详情

[{"title":"( 50 个子文件 1MB ) 同一个activity中通过一个按钮切换两个不同的布局","children":[{"title":"同一个activity中通过一个按钮切换两个不同的布局","children":[{"title":".project <span style='color:#111;'> 844B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 876B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-bc3547aa9a179b48e05fc4129a8c3845.jar <span style='color:#111;'> 146.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"MenuText.apk <span style='color:#111;'> 197.37KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 6.15KB </span>","children":null,"spread":false},{"title":"btn_dial.9.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"icon.png <span style='color:#111;'> 14.14KB </span>","children":null,"spread":false},{"title":"btn_dial_normal.9.png <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.85KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 46.15KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"menutext","children":[{"title":"R$string.class <span style='color:#111;'> 476B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 512B </span>","children":null,"spread":false},{"title":"MenuText$1.class <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 408B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"MenuText$2.class <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"MenuText.class <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 807B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"classes.dex <span style='color:#111;'> 433.05KB </span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"ic_launcher-web.png <span style='color:#111;'> 54.44KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 876B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 376.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"menutext","children":[{"title":"MenuText.java <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"styles.xml <span style='color:#111;'> 695B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 221B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"double_frame.xml <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"base_layout_l.xml <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"base_layout_r.xml <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 8.02KB </span>","children":null,"spread":false},{"title":"btn_dial.9.png <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"icon.png <span style='color:#111;'> 15.04KB </span>","children":null,"spread":false},{"title":"btn_dial_normal.9.png <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 332B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 13.25KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"activity_menu_text.xml <span style='color:#111;'> 257B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 389B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"menutext","children":[{"title":"R.java <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"BuildConfig.java <span style='color:#111;'> 162B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 小圈09 :
    谢谢分享……
    2018-12-14
  • qq_41530229 :
    这个是真的好用
    2017-12-25
  • dikua8233 :
    感觉不错,还行
    2017-10-31
  • dacong5210 :
    正需要,非常不错
    2017-09-18
  • CoKe_Deer :
    哇塞,真的太好用了
    2017-01-01

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明