Merge remote-tracking branch 'origin/master'

# Conflicts:
#	app/build.gradle
#	app/src/main/AndroidManifest.xml
#	app/src/main/java/com/example/cmknowledgegraph/MainActivity.java
ongbodev
ongbo 6 years ago
commit 3374b07c69

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RenderSettings">
<option name="showDecorations" value="true" />
</component>
</project>

@ -27,6 +27,10 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
api 'com.hankcs:hanlp:portable-1.7.2'
implementation 'com.google.android.material:material:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: []) implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])

@ -0,0 +1,13 @@
package Schema;
import java.sql.Connection;
public class InitSchema {
/**
*
*/
public static Connection getConnect(){
return null;
}
}

@ -0,0 +1,70 @@
package Schema;
import android.content.DialogInterface;
import android.gesture.Prediction;
import androidx.appcompat.app.AlertDialog;
import com.example.cmknowledgegraph.LoginActivity;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class OperaSchema {
/**
* stringstring
* UserInfo,
* truefalse
*/
public static boolean longin(String tel,String password){
Connection conn=InitSchema.getConnect();
ResultSet rst;
PreparedStatement pstmt;
try {
pstmt=conn.prepareStatement("select paw\n" +
"from UserInfo\n" +
"where tel='"+tel+"'");
rst=pstmt.executeQuery();
String paw=rst.getString("paw");
if(password.equals(paw)){
return true;
}
else return false;
} catch (SQLException e) {
e.printStackTrace();
}
return false;
}
/**
*
* @return truefalse
*/
public static boolean register(String tel,String nickname,String password){
Connection conn=InitSchema.getConnect();
PreparedStatement pstmt;
ResultSet rst;
try {
pstmt=conn.prepareStatement("select paw\n" +
"from UserInfo\n" +
"where tel='"+tel+"'");
rst=pstmt.executeQuery();
if(rst==null){//注册成功
//把用户信息填入表中
pstmt=conn.prepareStatement("insert into UserInfo(tel,nickname,paw) values(?,?,?)");
pstmt.setString(1,tel);
pstmt.setString(2,nickname);
pstmt.setString(3,password);
pstmt.executeUpdate();
return true;
}else return false;
} catch (SQLException e) {
e.printStackTrace();
}
return false;
}
}

@ -0,0 +1,69 @@
package com.example.cmknowledgegraph;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import Schema.OperaSchema;
public class LoginActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
final EditText tel_edit=findViewById(R.id.id_edit);
final EditText password_edit=findViewById(R.id.password_edit);
/**
* (int)(string)
*/
Button login_btn=findViewById(R.id.login_btn);
login_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//获取手机号和密码
String tel=tel_edit.getText().toString().trim();
String password=password_edit.getText().toString();
//调用数据库类中的方法进行登录
boolean isLogin= OperaSchema.longin(tel,password);
/**
*
*
*/
if(isLogin) {
finish();//返回个人中心Activity
//刷新个人中心Activity
}else{//登陆失败提醒
AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);
builder.setTitle("登陆提醒");// 设置标题
builder.setMessage("登陆失败");// 为对话框设置内容
builder.create().show();// 使用show()方法显示对话框
}
}
});
//TextView注册跳转
TextView register_text=findViewById(R.id.register_text);
register_text.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//跳转到注册页面
Intent intent=new Intent();
intent.setClass(LoginActivity.this,RegisterActivity.class);
startActivity(intent);
}
});
}
}

@ -0,0 +1,19 @@
package com.example.cmknowledgegraph;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
public class MainContent extends Fragment {
//创建视图
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate( R.layout.activity_main, container, false ); //要加载的layout文件
}
}

@ -0,0 +1,17 @@
package com.example.cmknowledgegraph;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
public class PersonContent extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate( R.layout.activity_personality_center, container, false ); //要加载的layout文件
}
}

@ -0,0 +1,28 @@
package com.example.cmknowledgegraph;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class PersonalityCenterActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_personality_center);
Button longin_pc_btn=(Button) findViewById(R.id.login_pc_button);
longin_pc_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//跳转到LoginActivity
Intent intent=new Intent();
intent.setClass(PersonalityCenterActivity.this,LoginActivity.class);
startActivity(intent);
System.out.println("点击个人中心的登录按钮");
}
});
}
}

@ -0,0 +1,65 @@
package com.example.cmknowledgegraph;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import Schema.OperaSchema;
public class RegisterActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
final EditText tel_edit=findViewById(R.id.tel_register_edit);
final EditText password_edit=findViewById(R.id.password_edit);
final EditText nickname_edit=findViewById(R.id.nickname_register_edit);
/**
* int(string)(string)
*/
Button register =findViewById(R.id.register_btn);
register.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//获取手机号,密码,昵称
String tel=tel_edit.getText().toString().trim();
String password=password_edit.getText().toString();
String NickName=nickname_edit.getText().toString();
//调用数据库类方法进行注册
boolean isRegister= OperaSchema.register(tel,NickName,password);
if(isRegister){
//注册成功,对话框提醒
AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);
builder.setTitle("注册提醒");// 设置标题
// builder.setIcon(R.drawable.ic_launcher);//设置图标
builder.setMessage("注册成功");// 为对话框设置内容
builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
// TODO Auto-generated method stub
//返回登录页面
finish();
}
});
builder.create().show();// 使用show()方法显示对话框
}else{//注册失败
//注册失败提醒
AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);
builder.setTitle("注册提醒");// 设置标题
// builder.setIcon(R.drawable.ic_launcher);//设置图标
builder.setMessage("注册失败");// 为对话框设置内容
}
}
});
}
}

@ -0,0 +1,14 @@
package com.example.cmknowledgegraph;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
public class SearchActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_search);
}
}

@ -0,0 +1,19 @@
package com.example.cmknowledgegraph;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
public class SearchContent extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate( R.layout.activity_search, container, false ); //要加载的layout文件
}
}

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z" />
</vector>

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
</vector>

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" />
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".LoginActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="80dp"
android:layout_marginLeft="60dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="账号"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:textSize="20dp"
android:textColor="#8B4513"/>
<EditText
android:id="@+id/id_edit"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:inputType="number"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="60dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密码"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:textSize="20dp"
android:textColor="#8B4513"/>
<EditText
android:id="@+id/password_edit"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:inputType="textPassword"/>
</LinearLayout>
<Button
android:id="@+id/login_btn"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="登录"
android:textSize="20dp"
android:background="#FFDAB9"
android:layout_marginTop="30dp"
android:layout_marginLeft="70dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="忘记密码?"
android:textSize="15dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="70dp"
android:textColor="#8B4513"/>
<TextView
android:id="@+id/register_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="注册"
android:textSize="17dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="180dp"
android:textColor="#8B4513"/>
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/login_pic"/>
</LinearLayout>

@ -2,18 +2,29 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".MainActivity"> tools:context=".MainActivity">
<TextView <FrameLayout
android:layout_width="wrap_content" android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
tools:ignore="MissingConstraints" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Hello World!" android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:menu="@menu/bottom_nav_menu" />
<Button <Button
android:id="@+id/button2" android:id="@+id/button2"

@ -0,0 +1,202 @@
<?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"
tools:context=".PersonalityCenterActivity">
<ImageView
android:id="@+id/head_picture"
android:layout_width="110dp"
android:layout_height="110dp"
android:layout_marginTop="20dp"
android:layout_marginLeft="150dp"
android:layout_centerInParent="true"
android:src="@mipmap/picture"/>
<Button
android:id="@+id/login_pc_button"
android:layout_width="100dp"
android:layout_height="50dp"
android:text="登录"
android:textSize="20sp"
android:background="#FFDAB9"
android:layout_marginLeft="157dp"/>
<View
android:layout_marginTop="20dp"
android:layout_height="1px"
android:background="#000000"
android:layout_width="fill_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/yellow_star1"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="2dp"
android:src="@mipmap/star"/>
<TextView
android:id="@+id/personal"
android:layout_width="100dp"
android:layout_height="40dp"
android:text="个性推荐"
android:textSize="18sp"
android:layout_marginTop="12dp"
android:layout_marginLeft="16dp"/>
</LinearLayout>
<View
android:layout_height="1px"
android:background="#000000"
android:layout_width="fill_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/yellow_star2"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="2dp"
android:src="@mipmap/star"/>
<TextView
android:id="@+id/diet_hobby"
android:layout_width="100dp"
android:layout_height="40dp"
android:text="饮食爱好"
android:textSize="18sp"
android:layout_marginTop="12dp"
android:layout_marginLeft="16dp"/>
</LinearLayout>
<View
android:layout_height="1px"
android:background="#000000"
android:layout_width="fill_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/yellow_star3"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="2dp"
android:src="@mipmap/star"/>
<TextView
android:id="@+id/regimen"
android:layout_width="100dp"
android:layout_height="40dp"
android:text="养生方案"
android:textSize="18sp"
android:layout_marginTop="12dp"
android:layout_marginLeft="16dp"/>
</LinearLayout>
<View
android:layout_height="1px"
android:background="#000000"
android:layout_width="fill_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/yellow_star4"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="2dp"
android:src="@mipmap/star"/>
<TextView
android:id="@+id/history"
android:layout_width="100dp"
android:layout_height="40dp"
android:text="浏览记录"
android:textSize="18sp"
android:layout_marginTop="12dp"
android:layout_marginLeft="16dp"/>
</LinearLayout>
<View
android:layout_height="1px"
android:background="#000000"
android:layout_width="fill_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/yellow_star5"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="2dp"
android:src="@mipmap/star"/>
<TextView
android:id="@+id/message"
android:layout_width="100dp"
android:layout_height="40dp"
android:text="消息通知"
android:textSize="18sp"
android:layout_marginTop="12dp"
android:layout_marginLeft="16dp"/>
</LinearLayout>
<View
android:layout_height="1px"
android:background="#000000"
android:layout_width="fill_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/yellow_star6"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="2dp"
android:src="@mipmap/star"/>
<TextView
android:id="@+id/setting"
android:layout_width="100dp"
android:layout_height="40dp"
android:text="设置"
android:textSize="18sp"
android:layout_marginTop="12dp"
android:layout_marginLeft="16dp"/>
</LinearLayout>
<View
android:layout_height="1px"
android:background="#000000"
android:layout_width="fill_parent"/>
</LinearLayout>

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".RegisterActivity">
<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:rowCount="3"
android:columnCount="2"
android:layout_marginTop="80dp"
android:layout_marginLeft="60dp"
>
<TextView
android:text="手机号"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:textSize="20dp"
android:textColor="#D2691E"
/>
<EditText
android:id="@+id/tel_register_edit"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"/>
<TextView
android:text="昵称"
android:layout_marginTop="25dp"
android:layout_marginLeft="20dp"
android:textSize="20dp"
android:textColor="#D2691E"
/>
<EditText
android:id="@+id/nickname_register_edit"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="20dp"/>
<TextView
android:text="密 码"
android:layout_marginTop="25dp"
android:layout_marginLeft="10dp"
android:textSize="20dp"
android:textColor="#D2691E"
/>
<EditText
android:id="@+id/password_register_edit"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="20dp"
android:inputType="textPassword"
/>
</GridLayout>
<Button
android:id="@+id/register_btn"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_marginTop="80dp"
android:layout_marginStart="100dp"
android:background="#FFE4C4"
android:layout_marginLeft="5dp"
android:text="注册"
android:textSize="20dp"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/register_pic"
android:layout_marginLeft="150dp"
android:layout_marginTop="60dp"/>
</LinearLayout>

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".SearchActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="101dp">
<EditText
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_marginLeft="80dp"
android:layout_marginTop="10dp"
android:paddingBottom="15dp"
android:text="请输入您的搜索词汇"
android:textColor="#C0C0C0"
android:textSize="40px" />
<ImageButton
android:id="@+id/search_btn"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:src="@mipmap/search"/>
</LinearLayout>
<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:layout_marginLeft="50dp"
android:columnCount="3"
android:rowCount="2"
android:orientation="horizontal">
<Button
android:id="@+id/btn1"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:text="食欲不振"
android:background="#FFDEAD"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:text="糖尿病"
android:background="#FFDEAD"/>
<Button
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:text="头晕"
android:background="#FFDEAD"/>
<Button
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="10dp"
android:text="熬夜掉发"
android:background="#FFDEAD"/>
<Button
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="10dp"
android:text="感冒发烧"
android:background="#FFDEAD"/>
<Button
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="10dp"
android:text="感冒发烧"
android:background="#FFDEAD"/>
</GridLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/search_back"/>
</LinearLayout>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/home"
android:icon="@drawable/ic_home_black_24dp"
android:title="Home" />
<item
android:id="@+id/search"
android:icon="@drawable/ic_dashboard_black_24dp"
android:title="Search" />
<item
android:id="@+id/chat"
android:icon="@drawable/ic_notifications_black_24dp"
android:title="Chat" />
<item
android:id="@+id/person"
android:icon="@drawable/person"
android:title="Per" />
</menu>

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Loading…
Cancel
Save