第二次作业:recycleView页面的跳转设计
实现过程
一、添加必要的页面
在之前的实验二中已经完成了微信聊天界面和好友界面recycleView的添加与设计,本次我选择了对于聊天界面跳转到详情的功能实现。如果要实现跳转的话还需要设计跳转后的页面,因此需要添加一个新的MainActivity.Java和Main_Activity.xml。
<?xml version="1.0" encoding="utf-8"?>
<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="vertical"
tools:context=".MainActivity2">
<TextView
android:id="@+id/text1