Skip to content

Commit

Permalink
hzuapps#4 hzuapps#994 QQ the 4th lab
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenchenJT committed May 10, 2018
1 parent fec8616 commit d116263
Show file tree
Hide file tree
Showing 18 changed files with 325 additions and 54 deletions.
Binary file added soft1614080902335/res/drawable/chat_back.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902335/res/drawable/chat_form.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902335/res/drawable/chat_gray.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902335/res/drawable/contact_gray.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902335/res/drawable/logn_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902335/res/drawable/user_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions soft1614080902335/res/layout/activity_soft1614080902335_mid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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" >
<ListView
android:id="@+id/list_item"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
</LinearLayout>
135 changes: 93 additions & 42 deletions soft1614080902335/res/layout/activity_soft1614080902335_qq1.xml
Original file line number Diff line number Diff line change
@@ -1,48 +1,99 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<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:background="@drawable/logn_bg"
android:orientation="vertical"
tools:context=".Soft1614080902335Activity1">

<TextView
android:id="@+id/textview_01"
android:layout_width="310dp"
android:layout_height="398dp"
android:layout_above="@+id/button_open"
android:layout_centerHorizontal="true"
android:layout_marginHorizontal="20dp"
android:drawableTop="@drawable/qqlogo"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="25dp"
tools:layout_editor_absoluteY="0dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="169dp"
android:text="Hello World!"
android:textSize="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.502"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.624" />

<ImageView
android:id="@+id/touxiang"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="50dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/logn_touxiang"/>
<EditText
android:id="@+id/logn_username"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="50dp"
android:layout_marginLeft="35dp"
android:layout_marginRight="35dp"
android:layout_gravity="center_horizontal"
android:background="#00000000"
android:padding="10dp"
android:paddingLeft="20dp"
android:gravity="center_vertical"
android:hint="QQ号/手机号/邮箱"
android:singleLine="true"
android:textColor="@color/whitee"
android:textColorHint="@color/whitee"/>
<View android:layout_height="1px"
android:layout_width="match_parent"
android:layout_marginRight="40dp"
android:layout_marginLeft="40dp"
android:background="@color/graywhite" />
<EditText
android:id="@+id/logn_password"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginLeft="35dp"
android:layout_marginRight="35dp"
android:layout_gravity="center_horizontal"
android:background="#00000000"
android:padding="10dp"
android:paddingLeft="20dp"
android:gravity="center_vertical"
android:hint="密码"
android:singleLine="true"
android:textColor="@color/graywhite"
android:textColorHint="@color/graywhite"/>
<View android:layout_height="1px"
android:layout_width="match_parent"
android:layout_marginRight="40dp"
android:layout_marginLeft="40dp"
android:background="@color/graywhite" />
<Button
android:id="@+id/button_open"
android:layout_width="189dp"
android:layout_height="46dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="56dp"
android:text="查看用户信息"
android:textSize="15dp"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="86dp"
tools:layout_editor_absoluteY="413dp" />
</RelativeLayout>
android:id="@+id/botton_logn"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="45dp"
android:layout_marginRight="45dp"
android:background="@color/backgroundcolor"
android:hint="登录"
android:textSize="20dp"
android:textColorHint="@color/whitee"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="20dp"
android:layout_marginRight="35dp"
android:layout_marginLeft="35dp"
android:layout_gravity="center_horizontal"
android:orientation="horizontal">
<TextView
android:id="@+id/logn_forgetpw"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:padding="8dp"
android:text="忘记密码?"
android:textSize="18sp"
android:textColor="@color/backgroundcolor"
tools:ignore="Suspicious0dp" />
<TextView
android:id="@+id/logn_register"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:padding="8dp"
android:text="新用户注册"
android:textSize="18sp"
android:textColor="@color/backgroundcolor"
tools:ignore="Suspicious0dp" />
</LinearLayout>
</LinearLayout>
48 changes: 36 additions & 12 deletions soft1614080902335/res/layout/activity_soft1614080902335_qq2.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
tools:context=".Soft1614080902335Activity2">
<!-- 头部-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<include layout="@layout/activity_soft1614080902335_qqhead"/>
</LinearLayout>

<TextView
android:layout_width="223dp"
<!--搜索栏-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="45dp"
android:orientation="vertical">
<SearchView
android:id="@+id/seachtext"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/lightgray"
android:layout_weight="1" />
</LinearLayout>

<!-- 中间聊天列表 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="该功能开发中..."
android:textSize="30dp"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="80dp"
tools:layout_editor_absoluteY="224dp" />
android:layout_weight="1">
<include layout="@layout/activity_soft1614080902335_mid"/>
</LinearLayout>

<!-- 底部导航 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<include layout="@layout/activity_soft1614080902335_qqfoot"/>
</LinearLayout>

</RelativeLayout>
</LinearLayout>
77 changes: 77 additions & 0 deletions soft1614080902335/res/layout/activity_soft1614080902335_qq3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?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_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:background="@color/backgroundcolor" >
<ImageView
android:id="@+id/back"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center"
android:background="@drawable/chat_back"
android:padding="15dp"/>

<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="120dp"
android:paddingTop="10dp"
android:text="陈嘉涛"
android:textSize="20sp"
android:textColor="@color/graywhite"
android:layout_weight="1" />
</LinearLayout>
<TextView
android:id="@+id/chat_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="5dp"
android:background="#BEBEBE"
android:text="2018-5-7 20:12"
android:textColor="#F5F5F5"
android:textSize="15sp" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="10dp">

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:orientation="vertical">

<ImageView
android:id="@+id/iv_xiaomu_icon"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/logn_touxiang" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="陈嘉涛"
android:textSize="15sp" />
</LinearLayout>

<TextView
android:id="@+id/tv_incoming_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@drawable/chat_form"
android:gravity="center"
android:paddingLeft="10dp"
android:text="我是陈嘉涛"
android:textSize="14sp"/>
</LinearLayout>
</LinearLayout>
63 changes: 63 additions & 0 deletions soft1614080902335/res/layout/activity_soft1614080902335_qqfoot.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="80dp"
android:id="@+id/main_botton"
android:layout_alignParentBottom="true"
android:background="@color/graywhite"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/main_chats"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1"
tools:ignore="Suspicious0dp">
<ImageView
android:id="@+id/button_chats"
android:layout_height="fill_parent"
android:layout_width="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="3dp"
android:src="@drawable/chat_gray"/>
</RelativeLayout>

<RelativeLayout
android:layout_width="0dp"
android:layout_height="fill_parent"
android:id="@+id/main_contact"
android:layout_weight="1"
tools:ignore="Suspicious0dp">
<ImageView
android:id="@+id/button_contact"
android:layout_height="fill_parent"
android:layout_width="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="3dp"
android:src="@drawable/contact_gray"/>
</RelativeLayout>

<RelativeLayout
android:layout_width="0dp"
android:layout_height="fill_parent"
android:id="@+id/main_more"
android:layout_weight="1"
tools:ignore="Suspicious0dp">
<ImageView
android:id="@+id/button_more"
android:layout_height="fill_parent"
android:layout_width="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="3dp"
android:src="@drawable/more_gray"/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
34 changes: 34 additions & 0 deletions soft1614080902335/res/layout/activity_soft1614080902335_qqhead.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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="50dp"
android:orientation="horizontal"
android:background="@color/backgroundcolor" >
<TextView
android:id="@+id/textapp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:textColor="#ffffff"
android:textSize="20sp"
android:layout_gravity="center"
android:padding="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center">

<ImageView
android:id="@+id/more"
android:background="@color/backgroundcolor"
android:layout_width="40dp"
android:layout_height="30dp"
android:src="@drawable/button_add" />
</LinearLayout>

</LinearLayout>
Loading

0 comments on commit d116263

Please sign in to comment.