parent
d184f34a67
commit
d4b02f139a
@ -1,14 +0,0 @@
|
|||||||
package com.example.softengineering_selectivecourse;
|
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
|
||||||
|
|
||||||
import android.os.Bundle;
|
|
||||||
|
|
||||||
public class CourseReviewActivity extends AppCompatActivity {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
setContentView(R.layout.activity_course_review);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +1,231 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".CourseBasicInfoActivity">
|
tools:context="com.example.softengineering_selectivecourse.CourseBasicInfoActivity"
|
||||||
|
>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/couseDetailInfo"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:text="课 程 详 细 信 息"
|
||||||
|
android:textSize="25dp"
|
||||||
|
android:layout_marginTop="5dp"/>
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/couseDetailClassLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_marginTop="60dp"
|
||||||
|
android:text="课程类别:"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginLeft="20dp" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/couseDetailClassRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="请输入课程类别"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_alignBaseline="@+id/couseDetailClassLeft"
|
||||||
|
android:layout_alignBottom="@+id/couseDetailClassLeft"
|
||||||
|
android:layout_toRightOf="@+id/couseDetailClassLeft"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailNameLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="课 程 名:"
|
||||||
|
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/couseDetailClassLeft"
|
||||||
|
android:layout_alignLeft="@+id/couseDetailClassLeft"
|
||||||
|
/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailNameRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="请输入课程名"
|
||||||
|
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_alignBaseline="@+id/courseDetailNameLeft"
|
||||||
|
android:layout_alignBottom="@+id/courseDetailNameLeft"
|
||||||
|
android:layout_toRightOf="@+id/courseDetailNameLeft"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailCreditLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text=" 学 分:"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailNameLeft"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailNameLeft"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailCreditRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="请输入学分"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_alignBaseline="@+id/courseDetailCreditLeft"
|
||||||
|
android:layout_alignBottom="@+id/courseDetailCreditLeft"
|
||||||
|
android:layout_toRightOf="@+id/courseDetailCreditLeft" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailTeacherLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text=" 授课教师:"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailCreditLeft"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailCreditLeft"
|
||||||
|
/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailTeacherRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="请输入授课教师"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_alignBaseline="@+id/courseDetailTeacherLeft"
|
||||||
|
android:layout_alignBottom="@+id/courseDetailTeacherLeft"
|
||||||
|
android:layout_toRightOf="@+id/courseDetailTeacherLeft"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailStuNeededLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text=" 课程人数:"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailTeacherLeft"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailTeacherLeft"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailStuNeededRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="请输入课程人数"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_alignBaseline="@+id/courseDetailStuNeededLeft"
|
||||||
|
android:layout_alignBottom="@+id/courseDetailStuNeededLeft"
|
||||||
|
android:layout_toRightOf="@+id/courseDetailStuNeededLeft"
|
||||||
|
/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailClassRoomLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text=" 授课教室:"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailStuNeededLeft"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailStuNeededLeft"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailClassRoomRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="请输入授课教室"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_alignBaseline="@+id/courseDetailClassRoomLeft"
|
||||||
|
android:layout_alignBottom="@+id/courseDetailClassRoomLeft"
|
||||||
|
android:layout_toRightOf="@+id/courseDetailClassRoomLeft"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailBriefIntroduceLeft"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text=" 简 介:"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailClassRoomLeft"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailClassRoomLeft"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/courseDetailBriefIntroduceRight"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="请输入课程简介"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_alignBaseline="@+id/courseDetailBriefIntroduceLeft"
|
||||||
|
android:layout_alignBottom="@+id/courseDetailBriefIntroduceLeft"
|
||||||
|
android:layout_toRightOf="@+id/courseDetailBriefIntroduceLeft"
|
||||||
|
android:maxLines="2"/>
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/courseDetailCommentInfo"
|
||||||
|
android:layout_width="300dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:hint="请输入评论"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailBriefIntroduceLeft"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailBriefIntroduceLeft"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/courseDetailComment"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:hint="评论"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailBriefIntroduceLeft"
|
||||||
|
android:layout_alignParentRight="true"/>
|
||||||
|
<Button
|
||||||
|
android:id="@+id/courseDetailcommentDelete"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="删除评论"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailComment"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailClassRoomLeft"/>
|
||||||
|
<Button
|
||||||
|
android:id="@+id/courseDetailcommentUpdate"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="更新评论"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailComment"
|
||||||
|
android:layout_alignParentRight="true"/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/courseDetailAdd"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text=" 选课"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/courseDetailcommentDelete"
|
||||||
|
android:layout_alignLeft="@+id/courseDetailClassRoomLeft"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ListView
|
||||||
|
android:id="@+id/lvDetail"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_below="@+id/courseDetailAdd"
|
||||||
|
android:layout_alignParentLeft="true" />
|
||||||
|
</RelativeLayout>
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
|
||||||
tools:context=".CourseReviewActivity">
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -0,0 +1,87 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommentID1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="序号"
|
||||||
|
android:layout_marginTop="35dp"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentLeft="true" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommentCID1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="ID"
|
||||||
|
android:layout_alignBaseline="@+id/textCommentID1"
|
||||||
|
android:layout_alignBottom="@+id/textCommentID1"
|
||||||
|
android:layout_alignLeft="@+id/textCommentCID0"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommentInfo1"
|
||||||
|
android:layout_width="250dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="评论"
|
||||||
|
android:layout_alignBaseline="@+id/textCommentID1"
|
||||||
|
android:layout_alignBottom="@+id/textCommentID1"
|
||||||
|
android:layout_alignLeft="@+id/textCommentInfo0"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommentProvider1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="评论者"
|
||||||
|
android:layout_alignBaseline="@+id/textCommentID1"
|
||||||
|
android:layout_alignBottom="@+id/textCommentID1"
|
||||||
|
android:layout_alignLeft="@+id/textCommentProvider0"></TextView>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommnentID0"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:text="序号"
|
||||||
|
/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommentCID0"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBaseline="@+id/textCommnentID0"
|
||||||
|
android:layout_alignBottom="@+id/textCommnentID0"
|
||||||
|
android:text="ID"
|
||||||
|
android:layout_toRightOf="@+id/textCommnentID0"
|
||||||
|
android:layout_marginLeft="5dp"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommentInfo0"
|
||||||
|
android:layout_width="250dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBaseline="@+id/textCommnentID0"
|
||||||
|
android:layout_alignBottom="@+id/textCommnentID0"
|
||||||
|
android:text="评论"
|
||||||
|
android:layout_toRightOf="@+id/textCommentCID0"
|
||||||
|
android:layout_marginLeft="5dp"
|
||||||
|
/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textCommentProvider0"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="评论者"
|
||||||
|
android:layout_alignBaseline="@+id/textCommnentID0"
|
||||||
|
android:layout_alignBottom="@+id/textCommnentID0"
|
||||||
|
android:layout_toRightOf="@+id/textCommentInfo0"
|
||||||
|
android:layout_marginLeft="10dp"></TextView>
|
||||||
|
|
||||||
|
|
||||||
|
</RelativeLayout>
|
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string-array name="classOrder">
|
||||||
|
<item>请选取</item>
|
||||||
|
<item>Military</item>
|
||||||
|
<item>Nature</item>
|
||||||
|
<item>Humanity</item>
|
||||||
|
<item>Political</item>
|
||||||
|
</string-array>
|
||||||
|
<string-array name="classCredit">
|
||||||
|
<item>请选取</item>
|
||||||
|
<item>1</item>
|
||||||
|
<item>2</item>
|
||||||
|
<item>3</item>
|
||||||
|
<item>4</item>
|
||||||
|
</string-array>
|
||||||
|
<string-array name="classClassroom">
|
||||||
|
<item>请选取</item>
|
||||||
|
<item>301</item>
|
||||||
|
<item>302</item>
|
||||||
|
<item>303</item>
|
||||||
|
<item>304</item>
|
||||||
|
<item>305</item>
|
||||||
|
<item>306</item>
|
||||||
|
</string-array>
|
||||||
|
<string-array name="classSift">
|
||||||
|
<item>classFeature</item>
|
||||||
|
<item>credit</item>
|
||||||
|
<item>classroom</item>
|
||||||
|
<item>teacher</item>
|
||||||
|
</string-array>
|
||||||
|
</resources>
|
Loading…
Reference in new issue