Skip to content

Commit

Permalink
hzuapps#4 hzuapps#142 第四次作业
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleUncle committed May 19, 2017
1 parent 8fffe24 commit 92c4fff
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package edu.hzuapp.androidlabs.homeworks.net1414080903135;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Net1414080903135ChangeActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_net1414080903135_change);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package edu.hzuapp.androidlabs.homeworks.net1414080903135;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Net1414080903135SelectActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_net1414080903135_select);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
tools:context="edu.hzuapp.androidlabs.homeworks.net1414080903135.Net1414080903135ChangeActivity" >

<ImageView
android:id="@+id/pet_imgv"
android:layout_width="163dp"
android:layout_height="118dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="5dp"
android:layout_marginTop="30dp"
android:src="@drawable/welcome" />

<TextView
android:id="@+id/pet_dialog_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="25dp"
android:gravity="center"
android:text="修改课程内容" />

<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="20dp" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="课程名:"
android:textColor="@android:color/black"
android:textSize="14sp" />
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="2" />

</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<TextView
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="教师:"
android:textColor="@android:color/black"
android:textSize="14sp" />

<ProgressBar
android:id="@+id/progressBar2"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="2" />

</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<TextView
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="学时:"
android:textColor="@android:color/black"
android:textSize="14sp" />

<ProgressBar
android:id="@+id/progressBar3"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="2" />

</TableRow>

<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<TextView
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="学分:"
android:textColor="@android:color/black"
android:textSize="14sp" />

<ProgressBar
android:id="@+id/progressBar3"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="2" />

</TableRow>

<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<TextView
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="课室:"
android:textColor="@android:color/black"
android:textSize="14sp" />

<ProgressBar
android:id="@+id/progressBar3"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="2" />

</TableRow>

<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<TextView
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="敏捷:"
android:textColor="@android:color/black"
android:textSize="14sp" />

<ProgressBar
android:id="@+id/progressBar3"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="2" />

</TableRow>

<Button
android:id="@+id/btn_master"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:drawableRight="@android:drawable/ic_menu_add"
android:onClick="click"
android:drawablePadding="3dp"
android:text="提交修改内容"
android:textSize="14sp" />
</TableLayout>

</LinearLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
tools:context="edu.hzuapp.androidlabs.homeworks.net1414080903135.Net1414080903135SelectActivity">
<ImageView
android:id="@+id/pet_imgv"
android:layout_width="163dp"
android:layout_height="118dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="5dp"
android:layout_marginTop="30dp"
android:src="@drawable/welcome" />

<TextView
android:id="@+id/pet_dialog_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="25dp"
android:gravity="center"
android:text="请选择课程" />

<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="20dp" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RadioButton
android:text=" 体育舞蹈"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton2" />

</TableRow>

<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RadioButton
android:text=" 计算机导论"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton2" />

</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RadioButton
android:text=" 程序C语音"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton2" />

</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RadioButton
android:text=" 高等数学1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton2" />

</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RadioButton
android:text=" 操作系统"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton2" />

</TableRow>





<Button
android:id="@+id/btn_master"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:drawableRight="@android:drawable/ic_menu_add"
android:onClick="click"
android:drawablePadding="3dp"
android:text="提交选课"
android:textSize="14sp" />
</TableLayout>

</LinearLayout>

0 comments on commit 92c4fff

Please sign in to comment.