实现效果图
(1)新建text.xml文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent" android:layout_height="55dp" android:background="@mipmap/main_title_bg" > <EditText android:layout_width="300dp" android:layout_height="40dp" android:layout_marginLeft="20dp" android:layout_centerVertical="true" android:background="@mipmap/et_contact_bg" android:hint="请输入课程名称" android:textSize="15sp" /> <ImageView android:id="@+id/iv_no" android:layout_width="30dp" android:layout_height="30dp" android:src="@mipmap/course_message_no" android:layout_alignParentRight="true" android:layout_marginTop="5dp" android:layout_marginRight="10dp"/> <TextView android:layout_width="wrap_content" android:layout_height&#