@ -0,0 +1 @@
|
|||||||
|
CMKnowledgeGraph
|
@ -0,0 +1,38 @@
|
|||||||
|
package com.example.PersonalCenter;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.os.Handler;
|
||||||
|
import android.os.Message;
|
||||||
|
import android.util.Log;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.example.cmknowledgegraph.LoginActivity;
|
||||||
|
import com.example.tools.retuData;
|
||||||
|
|
||||||
|
public class HandlerHandle extends Handler {
|
||||||
|
LoginActivity loginActivity;
|
||||||
|
public HandlerHandle(LoginActivity loginActivity){
|
||||||
|
this.loginActivity = loginActivity;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void handleMessage(@NonNull Message msg) {
|
||||||
|
//根据登录状态请求不同的消息
|
||||||
|
super.handleMessage(msg);
|
||||||
|
Bundle b = msg.getData();
|
||||||
|
String data = b.getString("msg");
|
||||||
|
Log.i("haha-====","==="+data);
|
||||||
|
|
||||||
|
retuData retuData = JSON.parseObject(data, com.example.tools.retuData.class);
|
||||||
|
if(retuData.msg.equals("success")){
|
||||||
|
//登录成功,返回主页面
|
||||||
|
}else{
|
||||||
|
// 登录失败
|
||||||
|
Toast.makeText(loginActivity, retuData.msg, Toast.LENGTH_SHORT).show();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,178 @@
|
|||||||
|
package com.example.cmknowledgegraph;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.Menu;
|
||||||
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
import androidx.appcompat.app.ActionBar;
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.appcompat.widget.Toolbar;
|
||||||
|
import androidx.fragment.app.Fragment;
|
||||||
|
import androidx.fragment.app.FragmentStatePagerAdapter;
|
||||||
|
import androidx.viewpager.widget.ViewPager;
|
||||||
|
|
||||||
|
import com.example.ChatContentPkg.RecyclerViewFragment;
|
||||||
|
import com.github.florent37.materialviewpager.MaterialViewPager;
|
||||||
|
import com.github.florent37.materialviewpager.header.HeaderDesign;
|
||||||
|
|
||||||
|
public class tt extends AppCompatActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_chat);
|
||||||
|
// Toolbar toolbar = findViewById(R.id.toolbar);
|
||||||
|
// setSupportActionBar(toolbar);
|
||||||
|
//
|
||||||
|
// FloatingActionButton fab = findViewById(R.id.fab);
|
||||||
|
// fab.setOnClickListener(new View.OnClickListener() {
|
||||||
|
// @Override
|
||||||
|
// public void onClick(View view) {
|
||||||
|
// Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
|
||||||
|
// .setAction("Action", null).show();
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// BoomMenuButton bmb = findViewById(R.id.bmb);
|
||||||
|
// for (int i=0;i<bmb.getPiecePlaceEnum().pieceNumber();i++){
|
||||||
|
// SimpleCircleButton.Builder builder = new SimpleCircleButton.Builder()
|
||||||
|
// .normalImageRes(R.drawable.draw1)//设置点开的图片
|
||||||
|
// // 设置阴影
|
||||||
|
//// .shadowEffect(true)
|
||||||
|
//// .shadowOffsetX(20).shadowOffsetY(0)
|
||||||
|
//// .shadowRadius(Util.dp2px(20))
|
||||||
|
//// .shadowCornerRadius(Util.dp2px(20))
|
||||||
|
//// .shadowColor(Color.parseColor("#ee000000"))
|
||||||
|
//// 设置图片
|
||||||
|
//
|
||||||
|
// .highlightedImageRes(R.drawable.draw3)//点开某个按钮后突变的图片
|
||||||
|
// .unableImageRes(R.drawable.draw3)//unable时候的图片
|
||||||
|
// .imageRect(new Rect(Util.dp2px(10), Util.dp2px(10), Util.dp2px(70), Util.dp2px(70)))
|
||||||
|
// .imagePadding(new Rect(0, 0, 0, 0))
|
||||||
|
// .buttonCornerRadius(Util.dp2px(20))
|
||||||
|
//// .unable(true),默认是假的
|
||||||
|
//// 设置按钮样式
|
||||||
|
// ;
|
||||||
|
// bmb.addBuilder(builder);
|
||||||
|
// }
|
||||||
|
// final NavigationTabBar navigationTabBar = (NavigationTabBar) findViewById(R.id.ntb);
|
||||||
|
// final ArrayList<NavigationTabBar.Model> models = new ArrayList<>();
|
||||||
|
// models.add(
|
||||||
|
// new NavigationTabBar.Model.Builder(
|
||||||
|
// getResources().getDrawable(R.drawable.draw3),
|
||||||
|
// Color.parseColor("red")
|
||||||
|
// ).title("论坛").badgeTitle("NTB").build());
|
||||||
|
// models.add(
|
||||||
|
// new NavigationTabBar.Model.Builder(
|
||||||
|
// getResources().getDrawable(R.drawable.draw1),
|
||||||
|
// Color.parseColor("blue")
|
||||||
|
// ).title("drug").badgeTitle("drug").build()
|
||||||
|
// );
|
||||||
|
// navigationTabBar.setModels(models);
|
||||||
|
// ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);
|
||||||
|
// viewPager.setAdapter(new PagerAdapter() {
|
||||||
|
// @Override
|
||||||
|
// public int getCount() {
|
||||||
|
// return 0;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// @Override
|
||||||
|
// public boolean isViewFromObject(@NonNull View view, @NonNull Object object) {
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// navigationTabBar.setViewPager(viewPager,2);
|
||||||
|
// navigationTabBar.setTitleMode(NavigationTabBar.TitleMode.ACTIVE);
|
||||||
|
// navigationTabBar.setBadgeGravity(NavigationTabBar.BadgeGravity.BOTTOM);
|
||||||
|
// navigationTabBar.setBadgePosition(NavigationTabBar.BadgePosition.CENTER);
|
||||||
|
//
|
||||||
|
// navigationTabBar.setIsBadged(true);
|
||||||
|
// navigationTabBar.setIsTitled(true);
|
||||||
|
// navigationTabBar.setIsTinted(true);
|
||||||
|
// navigationTabBar.setIsBadgeUseTypeface(true);
|
||||||
|
// navigationTabBar.setBadgeBgColor(Color.RED);
|
||||||
|
// navigationTabBar.setBadgeTitleColor(Color.WHITE);
|
||||||
|
// navigationTabBar.setIsSwiped(true);
|
||||||
|
// navigationTabBar.setBgColor(Color.BLACK);
|
||||||
|
// navigationTabBar.setBadgeSize(10);
|
||||||
|
// navigationTabBar.setTitleSize(10);
|
||||||
|
// navigationTabBar.setIconSizeFraction((float) 0.5);
|
||||||
|
//得到MaterviewPager实例
|
||||||
|
MaterialViewPager materialViewPager = (MaterialViewPager) findViewById(R.id.materialViewPager);
|
||||||
|
//为MaterialViewPager添加监听
|
||||||
|
materialViewPager.setMaterialViewPagerListener(new MaterialViewPager.Listener() {
|
||||||
|
@Override
|
||||||
|
public HeaderDesign getHeaderDesign(int page) {
|
||||||
|
switch (page){
|
||||||
|
case 0:
|
||||||
|
return HeaderDesign.fromColorResAndUrl(
|
||||||
|
R.color.blue,
|
||||||
|
getResources().getDrawable(R.drawable.draw1).toString()
|
||||||
|
);
|
||||||
|
case 1:
|
||||||
|
return HeaderDesign.fromColorResAndUrl(
|
||||||
|
R.color.green,
|
||||||
|
getResources().getDrawable(R.drawable.draw2).toString()
|
||||||
|
);
|
||||||
|
case 2:
|
||||||
|
return HeaderDesign.fromColorResAndUrl(
|
||||||
|
R.color.cyan,
|
||||||
|
getResources().getDrawable(R.drawable.draw3).toString()
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//设置Toolbar
|
||||||
|
Toolbar toolbar = materialViewPager.getToolbar();
|
||||||
|
if(toolbar!=null){
|
||||||
|
setSupportActionBar(toolbar);
|
||||||
|
ActionBar actionBar = getSupportActionBar();
|
||||||
|
actionBar.setDisplayHomeAsUpEnabled(true);
|
||||||
|
actionBar.setDisplayShowHomeEnabled(true);
|
||||||
|
actionBar.setDisplayShowTitleEnabled(true);
|
||||||
|
actionBar.setDisplayUseLogoEnabled(false);
|
||||||
|
actionBar.setHomeButtonEnabled(true);
|
||||||
|
}
|
||||||
|
//为Viewpager设置适配器
|
||||||
|
ViewPager viewPager = materialViewPager.getViewPager();
|
||||||
|
viewPager.setAdapter(new FragmentStatePagerAdapter(getSupportFragmentManager()) {
|
||||||
|
@NonNull
|
||||||
|
@Override
|
||||||
|
public Fragment getItem(int position) {
|
||||||
|
switch (position % 3){
|
||||||
|
case 0:
|
||||||
|
return RecyclerViewFragment.newInstance();
|
||||||
|
default:
|
||||||
|
return RecyclerViewFragment.newInstance();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getCount() {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public CharSequence getPageTitle(int position) {
|
||||||
|
switch (position % 3){
|
||||||
|
case 0:
|
||||||
|
return "TAP1";
|
||||||
|
default:
|
||||||
|
return "TAPN";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
materialViewPager.getViewPager().setOffscreenPageLimit(materialViewPager
|
||||||
|
.getViewPager().getAdapter().getCount());
|
||||||
|
materialViewPager.getPagerTitleStrip().setViewPager(materialViewPager.getViewPager());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.example.tools;
|
||||||
|
|
||||||
|
public class retuData {
|
||||||
|
public String msg;//接受消息码
|
||||||
|
public Object data;//接受数据
|
||||||
|
|
||||||
|
public void setMsg(String msg) {
|
||||||
|
this.msg = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setData(Object data) {
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 324 B |
After Width: | Height: | Size: 206 B |
After Width: | Height: | Size: 626 B |
@ -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,78 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout 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:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:background="#7adfb8"
|
||||||
tools:context=".LoginActivity">
|
tools:context=".LoginActivity" >
|
||||||
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/main_title"
|
||||||
|
layout="@layout/title_layout" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="80dp"
|
android:layout_below="@+id/main_title"
|
||||||
android:layout_marginLeft="60dp">
|
android:orientation="vertical" >
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="55dip"
|
||||||
|
android:layout_height="55dip"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:src="@drawable/project_detail_cir" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="账号"
|
android:layout_marginTop="5dip"
|
||||||
android:layout_marginTop="10dp"
|
android:gravity="center"
|
||||||
android:layout_marginLeft="10dp"
|
android:text="FIREFLY FOREST"
|
||||||
android:textSize="20dp"
|
android:textColor="#ffffff"
|
||||||
android:textColor="#35302D"/>
|
android:textSize="24sp" />
|
||||||
<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
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="密码"
|
android:gravity="center"
|
||||||
android:layout_marginTop="10dp"
|
android:text="SHOW YOUR IDEAS"
|
||||||
android:layout_marginLeft="10dp"
|
android:textColor="#ffffff"
|
||||||
android:textSize="20dp"
|
android:textSize="16sp" />
|
||||||
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>
|
</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_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
<TextView
|
android:layout_centerInParent="true" >
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
<include
|
||||||
android:text="忘记密码?"
|
android:id="@+id/input_layout"
|
||||||
android:textSize="15dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_height="250dip"
|
||||||
android:layout_marginLeft="70dp"
|
layout="@layout/input_layout" />
|
||||||
android:textColor="#8B4513"/>
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/layout_progress"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="130dip"
|
||||||
|
layout="@layout/layout_progress"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/register_text"
|
android:id="@+id/main_btn_login"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="注册"
|
android:layout_below="@+id/input_layout"
|
||||||
android:textSize="17dp"
|
android:layout_centerInParent="true"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="15dip"
|
||||||
android:layout_marginLeft="180dp"
|
android:background="@drawable/text_bg"
|
||||||
android:textColor="#8B4513"/>
|
android:gravity="center"
|
||||||
</LinearLayout>
|
android:paddingBottom="2dip"
|
||||||
<ImageView
|
android:paddingLeft="15dip"
|
||||||
android:layout_width="wrap_content"
|
android:paddingRight="15dip"
|
||||||
android:layout_height="wrap_content"
|
android:paddingTop="2dip"
|
||||||
android:src="@mipmap/login_pic"/>
|
android:text="Login"
|
||||||
|
android:textColor="#ffffff"
|
||||||
|
android:textSize="20sp" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</RelativeLayout>
|
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.appcompat.widget.AppCompatEditText xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/colorTransparent"
|
||||||
|
android:lines="1"
|
||||||
|
android:textColor="#7fffffff" />
|
@ -0,0 +1,70 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,5 @@
|
|||||||
|
<resources>
|
||||||
|
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||||
|
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||||
|
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||||
|
</resources>
|
@ -1,3 +1,4 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">CMKnowledgeGraph</string>
|
<string name="app_name">CMKnowledgeGraph</string>
|
||||||
|
<string name="str_news_feed">News feed</string>
|
||||||
</resources>
|
</resources>
|
||||||
|