它包括一个布局和布局

1.在layout确定activity_other.xml布局

2.代码中的包括例如以下:



<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"
tools:context="${relativePackage}.${activityClass}" >
<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="删除" />


<include layout="@layout/activity_other" />


</LinearLayout>

更多相关文章

  1. 没有一行代码,「2020 新冠肺炎记忆」这个项目却登上了 GitHub 中
  2. Android(安卓)keep screen on 方法
  3. 安卓EditText控件底部红线如何解决?
  4. SetContentView 到底Set去哪里呢?
  5. android imageview设置图片的小问题
  6. android 使用icon进行字符编码转换
  7. android的软盘影响背景问题
  8. android studio apk打包命名规范
  9. Android(安卓)3 开始 Activity MainThread中不能执行http通信了

随机推荐

  1. Android(安卓)Webview 和Javascript交互,
  2. Android之相对布局
  3. Android调用输入法软键盘,返回输入的内容
  4. Android(安卓)API 中文(13) —— ToggleBut
  5. Android(安卓)已发行多年,移动 App 已经趋
  6. UI布局相关
  7. Android(安卓)已发行多年,移动 App 已经趋
  8. 环形ProgressBar特效
  9. 修改ListView 分割线Seperator line
  10. Android:Service