Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#90 #91 #92 #93 #94 #95 实验已全部完成 #297 #994

Merged
merged 11 commits into from
Jun 17, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
布局文件
1019940946 authored Jun 16, 2016
commit f62dfd70bc4c0f9821869071bc4f57751f4c0c41
69 changes: 69 additions & 0 deletions app/src/main/res/layout/net1314080903115login.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?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">
<TextView
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="0dip"
android:text="登录账号"
android:textSize="50dp"
android:gravity="center"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_weight="2"
android:layout_height="0dip"
android:orientation="horizontal"
android:layout_gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="账号:"
/>
<EditText
android:id="@+id/login_Phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入手机号!"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_weight="2"
android:layout_height="0dip"
android:orientation="horizontal"
android:layout_gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密码:"
/>
<EditText
android:id="@+id/login_PassWord"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入手机号!"/>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_weight="2"
android:layout_height="0dip"
android:orientation="horizontal"
android:layout_gravity="center">
<Button
android:id="@+id/login_Login"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="登录"
/>
<Button
android:id="@+id/login_SignUp"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="注册新账号"/>
</LinearLayout>
</LinearLayout>
106 changes: 106 additions & 0 deletions app/src/main/res/layout/net1314080903115main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<?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" >

<!--
重要: 此部分与滑动控件中的菜单部分相同,
当控件中的菜单为隐藏状态是,
默认显示此布局 注:此布局中按钮不能有ID
(当使用平滑状态时可以将此部分省略)
-->

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="#000"
android:orientation="vertical"
android:padding="15dp" >

<LinearLayout
android:layout_width="200dip"
android:layout_height="100dip"
android:orientation="horizontal">
<ImageButton
android:layout_width="100dip"
android:layout_height="100dip"
android:background="@drawable/net1314080903115portrait"
/>
<TextView
android:id="@+id/name_text1"
android:layout_width="100dip"
android:layout_height="100dip"
android:textColor="#fff"
/>
</LinearLayout>

</LinearLayout>

<!-- 支持滑动的控件 -->

<edu.hzuapps.androidworks.homeworks.net1314080903115.view.Net1314080903115_MySlidingMenuView
android:id="@+id/sliding_menu"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<!-- 菜单项 -->

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="#000"
android:orientation="vertical"
android:padding="15dp" >

<LinearLayout
android:layout_width="200dip"
android:layout_height="100dip"
android:orientation="horizontal">
<ImageButton
android:id="@+id/main_portrait"
android:layout_width="100dip"
android:layout_height="100dip"
android:background="@drawable/net1314080903115portrait"
/>
<TextView
android:id="@+id/name_text2"
android:layout_width="100dip"
android:layout_height="100dip"
android:textColor="#fff"
/>
</LinearLayout>


</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
android:orientation="vertical">

<!-- 内容体 -->

<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:background="#3DEE11"
android:orientation="horizontal">
</LinearLayout>
<ImageView
android:id="@+id/imageview"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="8"/>
<Button
android:id="@+id/zhaoxiang"
android:text="照相"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="0dip" />

</LinearLayout>
</edu.hzuapps.androidworks.homeworks.net1314080903115.view.Net1314080903115_MySlidingMenuView>

</RelativeLayout>