Skip to content

Commit

Permalink
hzuapps#6 hzuapps#131 第六次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
ccc2020916 committed Dec 2, 2020
1 parent 0bbdb96 commit c15738b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
8 changes: 6 additions & 2 deletions students/net1814080903132/AskActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ public void ReadBtn(View v) {
String ReadString=String.copyValueOf(inputBuffer,0,charRead);
s += ReadString;
}
InputRead.close();
comment_nr.setText(s);

InputRead.close();
comment_nr.setText(s);

} catch (Exception e) {
e.printStackTrace();
}
}

public void Backbtn_1(View w){
finish();
}
}
3 changes: 3 additions & 0 deletions students/net1814080903132/CommentActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ public void WriteBtn(View v) {
}
}

public void Backbtn_2(View w){
finish();
}
}
5 changes: 3 additions & 2 deletions students/net1814080903132/activity_ask.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
android:text="#此为校园吐槽君开放式交流平台,此页面仅提供查看近期内容#"
android:textColor="@color/colorPrimaryDark"
android:textStyle="italic"
android:textSize="28sp"
android:textSize="26sp"
tools:ignore="InvalidId"
android:layout_weight="1" />

<ImageView
android:id="@+id/image"
android:layout_width="420dp"
android:layout_height="300dp"
android:layout_height="280dp"
android:scaleType="centerCrop"
android:src="@drawable/hzu" />

Expand All @@ -43,6 +43,7 @@
android:text="点击显示内容" />

<Button
android:onClick="Backbtn_1"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
Expand Down
7 changes: 7 additions & 0 deletions students/net1814080903132/activity_comment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@
android:layout_gravity="right"
android:onClick="WriteBtn"
android:text="保存内容" />

<Button
android:onClick="Backbtn_2"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="返回上一级" />
</LinearLayout>

0 comments on commit c15738b

Please sign in to comment.