Skip to content

Commit

Permalink
hzuapps#3 hzuapps#178 第三次作业
Browse files Browse the repository at this point in the history
  • Loading branch information
mamingjian committed Jun 18, 2017
1 parent 74e3547 commit 724bc93
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 1 deletion.
Binary file added AndroidLabs/app/src/main/res/drawable/date.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<LinearLayout
android:layout_marginTop="10dp"
android:background="#ffffff"
android:padding="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:textSize="18sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="节日名字:"/>

<EditText
android:id="@+id/et_add_name"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="1dp"
android:background="#ffffff"
android:padding="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:textSize="18sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="日期:"/>

<EditText
android:id="@+id/et_add_age"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>


<Button
android:id="@+id/bt_add"
android:background="@color/colorPrimary"
android:textColor="#ffffff"
android:text="添 加"
android:layout_width="match_parent"
android:layout_margin="20dp"
android:layout_height="wrap_content" />


</LinearLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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">

<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/lv"/>

</RelativeLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,38 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:textColor="@color/colorPrimary"
android:text="重要节日记录本"
android:textSize="25sp" />

<ImageView
android:src="@drawable/date"
android:layout_marginTop="30dp"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<Button
android:id="@+id/bt_to_add"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="60dp"
android:layout_marginRight="60dp"
android:layout_marginTop="20dp"
android:background="@color/colorPrimary"
android:text="添加节日"
android:textColor="#ffffff" />

<Button
android:id="@+id/bt_to_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="60dp"
android:layout_marginRight="60dp"
android:layout_marginTop="20dp"
android:background="@color/colorPrimary"
android:text="查看节日"
android:textColor="#ffffff" />
</LinearLayout>
49 changes: 49 additions & 0 deletions AndroidLabs/app/src/main/res/layout/item_net1414080903109.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="15dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:textSize="16sp"
android:text="节日名称:"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:textSize="16sp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tv_item_name"/>
</LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:textSize="16sp"
android:text="节日时间:"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:textSize="16sp"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tv_item_occur"/>
</LinearLayout>

<TextView
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#33000000"/>


</LinearLayout>

0 comments on commit 724bc93

Please sign in to comment.