parent
e1f1f6f051
commit
014e88c7f4
@ -0,0 +1,17 @@
|
||||
package com.example.PersonalCenter;
|
||||
|
||||
import android.view.animation.LinearInterpolator;
|
||||
|
||||
public class JellyInterpolator extends LinearInterpolator {
|
||||
private float factor;
|
||||
|
||||
public JellyInterpolator() {
|
||||
this.factor = 0.15f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolation(float input) {
|
||||
return (float) (Math.pow(2, -10 * input)
|
||||
* Math.sin((input - factor / 4) * (2 * Math.PI) / factor) + 1);
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
package com.example.cmknowledgegraph;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
||||
public class PersonalityCenterActivity extends AppCompatActivity {
|
||||
@SuppressLint("LongLogTag")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
Log.i("PersonalityCenterActivity","个人中心");
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_personality_center);
|
||||
}
|
||||
|
||||
|
||||
}
|
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 18 KiB |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<corners android:radius="5dip"/>
|
||||
<solid android:color="#ffffff"/>
|
||||
|
||||
</shape>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval" >
|
||||
|
||||
<corners android:radius="60dip" />
|
||||
|
||||
<solid android:color="#ffffff" />
|
||||
|
||||
</shape>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
|
||||
<corners android:radius="50dip"/>
|
||||
|
||||
<stroke
|
||||
android:width="1dip"
|
||||
android:color="#ffffff" />
|
||||
|
||||
</shape>
|
@ -1,91 +1,79 @@
|
||||
<?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"
|
||||
<RelativeLayout 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:orientation="vertical"
|
||||
tools:context=".LoginActivity">
|
||||
android:background="#7adfb8"
|
||||
tools:context=".LoginActivity" >
|
||||
<!--登录的页面-->
|
||||
<include
|
||||
android:id="@+id/main_title"
|
||||
layout="@layout/title_layout" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="80dp"
|
||||
android:layout_marginLeft="60dp">
|
||||
android:layout_below="@+id/main_title"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_avatar_login"
|
||||
android:layout_width="70dip"
|
||||
android:layout_height="70dip"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:src="@drawable/project_detail_cir" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="账号"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:textSize="20dp"
|
||||
android:textColor="#35302D"/>
|
||||
<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"/>
|
||||
android:layout_marginTop="5dip"
|
||||
android:gravity="center"
|
||||
android:text="FIREFLY FOREST"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="24sp" />
|
||||
|
||||
</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_width="fill_parent"
|
||||
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"/>
|
||||
|
||||
android:gravity="center"
|
||||
android:text="SHOW YOUR IDEAS"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="16sp" />
|
||||
</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
|
||||
<RelativeLayout
|
||||
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"/>
|
||||
android:layout_centerInParent="true" >
|
||||
|
||||
<include
|
||||
android:id="@+id/input_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="250dip"
|
||||
layout="@layout/input_layout" />
|
||||
|
||||
<include
|
||||
android:id="@+id/layout_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="130dip"
|
||||
layout="@layout/layout_progress"
|
||||
android:visibility="gone" />
|
||||
|
||||
<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:id="@+id/main_btn_login"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/login_pic"/>
|
||||
android:layout_below="@+id/input_layout"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginTop="15dip"
|
||||
android:background="@drawable/text_bg"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="2dip"
|
||||
android:paddingLeft="15dip"
|
||||
android:paddingRight="15dip"
|
||||
android:paddingTop="2dip"
|
||||
android:text="Login"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="20sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
@ -0,0 +1,71 @@
|
||||
<?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="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dip"
|
||||
android:background="@drawable/radius_drawable_bg"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dip" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/id_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/paw_code" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dip"
|
||||
android:background="#00000000"
|
||||
android:hint="请输入手机号"
|
||||
android:textColor="@color/cyan"
|
||||
android:padding="5dip"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10px"
|
||||
android:layout_marginBottom="5dip"
|
||||
android:layout_marginTop="5dip"
|
||||
android:background="#eeeeee" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/password_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/paw_left" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dip"
|
||||
android:background="#00000000"
|
||||
android:hint="密码"
|
||||
android:inputType="textPassword"
|
||||
android:padding="5dip"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/cyan"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,23 @@
|
||||
<?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="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="20dip"
|
||||
android:background="@drawable/rotate_layout_bg"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dip" >
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_margin="10dip"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,25 @@
|
||||
<?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="50dip"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="10dip" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/back" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#ffffff"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:textSize="20sp"
|
||||
android:text="Sign up"
|
||||
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
@ -1,3 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">CMKnowledgeGraph</string>
|
||||
<!-- <string name="app_name">CMKnowledgeGraph</string>-->
|
||||
</resources>
|
||||
|
Loading…
Reference in new issue