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 3, 2020
1 parent c15738b commit 5369256
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 10 deletions.
4 changes: 2 additions & 2 deletions students/net1814080903132/Net1814080903132Activity.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import android.widget.Button;

public class Net1814080903132Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand All @@ -20,7 +19,8 @@ public void onClick(View v) {
Intent intent = new Intent(_this, AskActivity.class);
_this.startActivity(intent);
}
});
}
);

Button button2 = findViewById(R.id.button2);
button2.setOnClickListener(new View.OnClickListener() {
Expand Down
16 changes: 11 additions & 5 deletions students/net1814080903132/activity_ask.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:layout_width="match_parent"
android:layout_height="10dp"
android:text="#此为校园吐槽君开放式交流平台,此页面仅提供查看近期内容#"
android:textColor="@color/colorPrimaryDark"
android:textColor="#607b8b"
android:textStyle="italic"
android:textSize="26sp"
tools:ignore="InvalidId"
Expand All @@ -37,16 +37,22 @@

<Button
android:onClick="ReadBtn"
android:layout_width="100dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="@drawable/btn_shape_2"
android:textColor="#607b8b"
android:textSize="17sp"
android:textStyle="bold"
android:text="点击显示内容" />

<Button
android:onClick="Backbtn_1"
android:layout_width="100dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="@drawable/btn_shape_3"
android:textColor="#607b8b"
android:textSize="17sp"
android:textStyle="bold"
android:text="返回上一级" />

</LinearLayout>
12 changes: 10 additions & 2 deletions students/net1814080903132/activity_comment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,24 @@
android:hint="请输入你要发表的吐槽或提出的建议" />

<Button
android:layout_width="100dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:onClick="WriteBtn"
android:background="@drawable/btn_shape_2"
android:textColor="#607b8b"
android:textSize="17sp"
android:textStyle="bold"
android:text="保存内容" />

<Button
android:onClick="Backbtn_2"
android:layout_width="100dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="@drawable/btn_shape_3"
android:textColor="#607b8b"
android:textSize="17sp"
android:textStyle="bold"
android:text="返回上一级" />
</LinearLayout>
9 changes: 8 additions & 1 deletion students/net1814080903132/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/home_design"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand All @@ -25,6 +24,10 @@
android:layout_marginEnd="76dp"
android:layout_marginBottom="100dp"
android:text="我要浏览"
android:background="@drawable/btn_shape_1"
android:textColor="#607b8b"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/button2"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -39,6 +42,10 @@
android:layout_marginEnd="79dp"
android:layout_marginBottom="100dp"
android:text="我要吐槽"
android:background="@drawable/btn_shape_1"
android:textColor="#607b8b"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/button"
Expand Down
12 changes: 12 additions & 0 deletions students/net1814080903132/btn_shape_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
android:shape="rectangle">
<solid android:color="#00CED1"/>

<corners
android:topLeftRadius="8dip"
android:topRightRadius="8dip"
android:bottomLeftRadius="8dip"
android:bottomRightRadius="8dip"/>

</shape>
12 changes: 12 additions & 0 deletions students/net1814080903132/btn_shape_2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
android:shape="oval">
<solid android:color="#7AC5CD"/>

<corners
android:topLeftRadius="8dip"
android:topRightRadius="8dip"
android:bottomLeftRadius="8dip"
android:bottomRightRadius="8dip"/>

</shape>
12 changes: 12 additions & 0 deletions students/net1814080903132/btn_shape_3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
android:shape="rectangle">
<solid android:color="#FFD39B"/>

<corners
android:topLeftRadius="08dip"
android:topRightRadius="8dip"
android:bottomLeftRadius="8dip"
android:bottomRightRadius="8dip"/>

</shape>
Binary file added students/net1814080903132/icon_app.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5369256

Please sign in to comment.