forked from hzuapps/android-labs-2017
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fffe24
commit 92c4fff
Showing
4 changed files
with
295 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...va/edu/hzuapps/androidlabs/homeworks/net1414080903135/Net1414080903135ChangeActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...va/edu/hzuapps/androidlabs/homeworks/net1414080903135/Net1414080903135SelectActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
168 changes: 168 additions & 0 deletions
168
AndroidLabs/app/src/main/res/layout/activity_net1414080903135_change.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
101 changes: 101 additions & 0 deletions
101
AndroidLabs/app/src/main/res/layout/activity_net1414080903135_select.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |