android day01
##实践 intent 完成 2个 activity 之间的跳转
#先说明一下 环境 win10 android studio 4.0
#技术点 intent tools:showIn include EditText Button app:layout_behavior="@string/appbar_scrolling_view_behavior"
- 创建一个 black activity 项目
- 创建 新的 Layout xml file ---- content_my
- tools:showIn="@layout/activity_main" ----- layout/activity_main
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
tools:showIn="@layout/activity_main">
<EditText
android:id="@+id/edit_message"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send"
android:onClick="sendMessage"/>
<!