(Android基础)开发Intent意图支持数据流转与返回
发布时间
阅读量:
阅读量
在Activity之间跳转可以使用Intent这个桥梁
ps : 新手入门指南总结
实例:
完成页面1中按钮的点击操作后,跳转至界面2进行图片选择,随后返回页面1并展示所选内容
首先设计布局文件:activity_my.xml 界面1
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:text="选择你喜欢的APP图标"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/imgicon"
android:layout_width="wrap_content"
android:layout_height="wrap
全部评论 (0)
还没有任何评论哟~
