Merge remote-tracking branch 'origin/master'

master
hanxueqing 5 years ago
commit dfa41daf43

@ -105,19 +105,28 @@
<orderEntry type="library" scope="TEST" name="Gradle: androidx.test.espresso:espresso-idling-resource:3.1.1@aar" level="project" />
<orderEntry type="library" name="Gradle: com.hankcs:hanlp:portable-1.7.2@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.collection:collection:1.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:glide:4.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:gifdecoder:4.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.lifecycle:lifecycle-common:2.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.arch.core:core-common:2.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.annotation:annotation:1.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: androidx.constraintlayout:constraintlayout-solver:1.1.3@jar" level="project" />
<orderEntry type="library" name="Gradle: com.alibaba:fastjson:1.2.62@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.code.gson:gson:2.8.2@jar" level="project" />
<orderEntry type="library" name="Gradle: com.flaviofaria:kenburnsview:1.0.7@jar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:disklrucache:4.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.github.bumptech.glide:annotations:4.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.google.android.material:material:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.loopeer.library:cardstack:1.0.2@aar" level="project" />
<orderEntry type="library" name="Gradle: com.hanks.animatecheckbox:library:0.1@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.johnpersano:supertoasts:2.0@aar" level="project" />
<orderEntry type="library" name="Gradle: liji.library.dev:citypickerview:5.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.florent37:materialviewpager:1.2.3@aar" level="project" />
<orderEntry type="library" name="Gradle: com.ramotion.foldingcell:folding-cell:1.2.3@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.appcompat:appcompat:1.0.2@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.cardview:cardview:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.jpardogo.materialtabstrip:library:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.legacy:legacy-support-v4:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.fragment:fragment:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.vectordrawable:vectordrawable-animated:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.recyclerview:recyclerview:1.0.0@aar" level="project" />
@ -133,6 +142,7 @@
<orderEntry type="library" name="Gradle: androidx.customview:customview:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.swiperefreshlayout:swiperefreshlayout:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.asynclayoutinflater:asynclayoutinflater:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.media:media:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.core:core:1.0.1@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.versionedparcelable:versionedparcelable:1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.cursoradapter:cursoradapter:1.0.0@aar" level="project" />
@ -149,5 +159,7 @@
<orderEntry type="library" name="Gradle: com.github.dmytrodanylyk.circular-progress-button:library:1.1.3@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.open-android:WheelPicker:v1.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: cn.aigestudio.wheelpicker:WheelPicker:1.1.3@aar" level="project" />
<orderEntry type="library" name="Gradle: de.hdodenhof:circleimageview:2.2.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.ybq:Android-SpinKit:1.4.0@aar" level="project" />
</component>
</module>

@ -51,4 +51,9 @@ dependencies {
implementation 'liji.library.dev:citypickerview:5.1.0'
implementation 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
implementation 'com.github.open-android:WheelPicker:v1.0.0'
//
implementation 'com.github.florent37:materialviewpager:1.2.3'
implementation 'com.ramotion.foldingcell:folding-cell:1.2.3'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
}

@ -64,32 +64,33 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
LoginActivity loginActivity = (LoginActivity) weakReference.get();
Bundle bundle = msg.getData();
ReturnData messageJSON = (ReturnData) bundle.getSerializable("msg");
Log.i("msg",messageJSON+"");
if(messageJSON.getCode() == ConditionCode.loginsucess) {
weakReference.get().mName.setVisibility(View.INVISIBLE);
weakReference.get().mPsw.setVisibility(View.INVISIBLE);
int mWidth = weakReference.get().mBtnLogin.getMeasuredWidth();
int mHeight =weakReference.get().mBtnLogin.getMeasuredHeight();
weakReference.get().inputAnimator(weakReference.get().mInputLayout, mWidth, mHeight);
// weakReference.get().mName.setVisibility(View.INVISIBLE);
// weakReference.get().mPsw.setVisibility(View.INVISIBLE);
// int mWidth = weakReference.get().mBtnLogin.getMeasuredWidth();
// int mHeight =weakReference.get().mBtnLogin.getMeasuredHeight();
//
// weakReference.get().inputAnimator(weakReference.get().mInputLayout, mWidth, mHeight);
String ReturnUsername = (String) messageJSON.getData();
ToolTip.FadeCenter(weakReference.get(),"登陆成功");
User.setLogin(true);
User.getUser().setUsername(ReturnUsername);
try {
Thread.sleep(500);
loginActivity.finish();
} catch (InterruptedException e) {
e.printStackTrace();
}
loginActivity.finish();
}else {
Log.i("fjldsk==","fasf++++");
// 这里要让那个输入输出框还原
// weakReference.get().animatorSet.cancel();
// weakReference.get().recovery();
weakReference.get().recovery();//执行复原动作
ToolTip.FadeCenter(weakReference.get(),messageJSON.getMsg());
}
@ -158,15 +159,28 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
ToolTip.FlyTocenter(this,"请输入正确手机号码");
}else {
// 基本没错误,就要请求登陆了
mName.setVisibility(View.INVISIBLE);
mPsw.setVisibility(View.INVISIBLE);
int mWidth = mBtnLogin.getMeasuredWidth();
int mHeight =mBtnLogin.getMeasuredHeight();
animatorSet = inputAnimator(mInputLayout, mWidth, mHeight);
new Thread(new Runnable() {
@Override
public void run() {
String argslogin = "phonenumber="+phonenumber+"&password="+password;
ReturnData retuData = cmkgWebServiceGet.executeHttpGet(argslogin, publicStringUtil.loginURL);
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
Log.i("returndat--", "-----" + retuData);
Message m = new Message();
Bundle b = new Bundle();
b.putSerializable("msg",retuData);
m.setData(b);
loginHandler.sendMessage(m);
}
@ -212,10 +226,11 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
ObjectAnimator animator2 = ObjectAnimator.ofFloat(mInputLayout,
"scaleX", 1f, 0.5f);
set.setDuration(500);
set.setInterpolator(new AccelerateDecelerateInterpolator());
set.playTogether(animator, animator2);
set.start();
set.playTogether(animator,animator2);
set.addListener(new Animator.AnimatorListener() {
@ -231,22 +246,27 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
@Override
public void onAnimationEnd(Animator animation) {
/**
*
*/
Log.i("hkfd","End方法调用了");
progress.setVisibility(View.VISIBLE);
// progress.setVisibility(View.GONE);
// progressAnimator(progress);
progressAnimator(progress);
mInputLayout.setVisibility(View.INVISIBLE);
/**
*
*/
}
@Override
public void onAnimationCancel(Animator animation) {
Log.i("jie","=====Cancle方法");
progress.setVisibility(View.GONE);
recovery();
}
});
set.start();
return set;
}
@ -257,7 +277,7 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
0.5f, 1f);
ObjectAnimator animator3 = ObjectAnimator.ofPropertyValuesHolder(view,
animator, animator2);
animator3.setDuration(1000);
animator3.setDuration(500);
animator3.setInterpolator(new JellyInterpolator());
animator3.start();
// animator3.cancel();
@ -265,7 +285,7 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
}
//登录错误,恢复初始状态
private void recovery() {
progress.setVisibility(View.GONE);
progress.setVisibility(View.INVISIBLE);
mInputLayout.setVisibility(View.VISIBLE);
mName.setVisibility(View.VISIBLE);
mPsw.setVisibility(View.VISIBLE);
@ -277,7 +297,7 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
ObjectAnimator animator2 = ObjectAnimator.ofFloat(mInputLayout, "scaleX", 0.5f,1f );
animator2.setDuration(500);
animator2.setDuration(1000);
animator2.setInterpolator(new AccelerateDecelerateInterpolator());
animator2.start();
}

@ -0,0 +1,155 @@
package com.example.PersonalCenter;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
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.PersonalCenter.Login_Register.LoginActivity;
import com.example.Util.User;
import com.example.cmknowledgegraph.MainActivity;
import com.example.cmknowledgegraph.R;
import com.github.florent37.materialviewpager.MaterialViewPager;
import com.github.florent37.materialviewpager.header.HeaderDesign;
import de.hdodenhof.circleimageview.CircleImageView;
public class MyPersonCenter extends Fragment {
private CircleImageView iv_avatar;
private TextView iv_avatar_username;
MainActivity mainActivity;
@Override
public void onAttach(Context context) {
super.onAttach(context);
this.mainActivity = (MainActivity) context;
}
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.chat_content, container, false);
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
//包装处理逻辑
//得到MaterViewPager实例
iv_avatar = mainActivity.findViewById(R.id.iv_avatar);
iv_avatar_username = mainActivity.findViewById(R.id.iv_avatar_username);
iv_avatar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(!User.isLogin){
Intent intent=new Intent();
intent.setClass(getActivity(), LoginActivity.class);
startActivity(intent);
}
}
});
MaterialViewPager materialViewPager = (MaterialViewPager) getActivity().findViewById(R.id.materialViewPager);
//为MaterialViewPager添加监听
materialViewPager.setMaterialViewPagerListener(new MaterialViewPager.Listener() {
@Override
//设置转换动画和图片,颜色
public HeaderDesign getHeaderDesign(int page) {
switch (page){
case 0:
return HeaderDesign.fromColorResAndDrawable(
R.color.blue,
getResources().getDrawable(R.drawable.xiha1)
);
case 1:
return HeaderDesign.fromColorResAndDrawable(
R.color.green,
getResources().getDrawable(R.drawable.xiha2)
);
case 2:
return HeaderDesign.fromColorResAndDrawable(
R.color.cyan,
getResources().getDrawable(R.drawable.xiha3)
);
}
return null;
}
});
//设置Toolbar
Toolbar toolbar = materialViewPager.getToolbar();
if(toolbar!=null){
mainActivity.setSupportActionBar(toolbar);
ActionBar actionBar = mainActivity.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(getChildFragmentManager()) {
@NonNull
@Override
public Fragment getItem(int position) {
switch (position % 3){
case 0:
return RecyclerViewFragment.newInstance(0,mainActivity);
case 1:
return RecyclerViewFragmentINFO.newInstance(1,mainActivity);
case 2:
return RecyclerViewFragment.newInstance(1,mainActivity);
default:
return RecyclerViewFragment.newInstance(1,mainActivity);
}
}
@Override
public int getCount() {
return 3;
}
@Nullable
@Override
public CharSequence getPageTitle(int position) {
switch (position % 3){
case 0:
return "DYNAMIC";
case 1:
return "INFO";
case 2:
return "药友";
default:
return "TAPN";
}
}
});
materialViewPager.getViewPager().setOffscreenPageLimit(materialViewPager
.getViewPager().getAdapter().getCount());
materialViewPager.getPagerTitleStrip().setViewPager(materialViewPager.getViewPager());
}
@Override
public void onResume() {
super.onResume();
if(User.isLogin){
iv_avatar_username.setText("Hello"+User.getUser().getUsername());
}
}
}

@ -0,0 +1,80 @@
package com.example.PersonalCenter;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.cmknowledgegraph.R;
import com.github.florent37.materialviewpager.header.MaterialViewPagerHeaderDecorator;
import java.util.ArrayList;
import java.util.List;
public class RecyclerViewFragment extends Fragment {
int flag;
AppCompatActivity appCompatActivity;
public void setAppCompatActivity(AppCompatActivity appCompatActivity) {
this.appCompatActivity = appCompatActivity;
}
public void setFlag(int flag) {
this.flag = flag;
}
public static Fragment newInstance(int flag, AppCompatActivity appCompatActivity){
RecyclerViewFragment recyclerViewFragment = new RecyclerViewFragment();
recyclerViewFragment.setFlag(flag);
recyclerViewFragment.setAppCompatActivity(appCompatActivity);
return recyclerViewFragment;
}
final List<Object> items = new ArrayList<>();
static final int ITEMS = 7;
RecyclerView mRecyclerView;
CardView mCardView;
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_recyclerview, container, false);
}
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView=view.findViewById(R.id.recyclerView);
// mCardView = view.findViewById();
//需要根据网路请求发送数据来请求一个页可以有多少文章条目而且针对每一个tab都要有不同的显示方式
for (int i=0;i<ITEMS;i++){
items.add(new Object());
}
//设置布局
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
linearLayoutManager.canScrollVertically();
mRecyclerView.setLayoutManager(linearLayoutManager);
mRecyclerView.setHasFixedSize(true);
//设置分割线
mRecyclerView.addItemDecoration(new MaterialViewPagerHeaderDecorator());
//设置适配器
RecyclerViewPagerAdapter recyclerViewPagerAdapter = new RecyclerViewPagerAdapter(items,flag);
recyclerViewPagerAdapter.setAppCompatActivity(appCompatActivity);
mRecyclerView.setAdapter(recyclerViewPagerAdapter);
}
public void initdata(){
//初始化数据类,请求网络
}
}

@ -0,0 +1,81 @@
package com.example.PersonalCenter;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.cmknowledgegraph.R;
import com.github.florent37.materialviewpager.header.MaterialViewPagerHeaderDecorator;
import java.util.ArrayList;
import java.util.List;
public class RecyclerViewFragmentINFO extends Fragment{
int flag;
AppCompatActivity appCompatActivity;
public void setAppCompatActivity(AppCompatActivity appCompatActivity) {
this.appCompatActivity = appCompatActivity;
}
public void setFlag(int flag) {
this.flag = flag;
}
public static Fragment newInstance(int flag, AppCompatActivity appCompatActivity){
RecyclerViewFragmentINFO recyclerViewFragmentinfo = new RecyclerViewFragmentINFO();
recyclerViewFragmentinfo.setFlag(flag);
recyclerViewFragmentinfo.setAppCompatActivity(appCompatActivity);
return recyclerViewFragmentinfo;
}
final List<Object> items = new ArrayList<>();
static final int ITEMS = 1;
RecyclerView mRecyclerView;
CardView mCardView;
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_recyclerview, container, false);
}
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView=view.findViewById(R.id.recyclerView);
// mCardView = view.findViewById();
//需要根据网路请求发送数据来请求一个页可以有多少文章条目而且针对每一个tab都要有不同的显示方式
for (int i=0;i<ITEMS;i++){
items.add(new Object());
}
Log.i("jk==",""+ITEMS);
//设置布局
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
linearLayoutManager.canScrollVertically();
mRecyclerView.setLayoutManager(linearLayoutManager);
mRecyclerView.setHasFixedSize(true);
//设置分割线
mRecyclerView.addItemDecoration(new MaterialViewPagerHeaderDecorator());
//设置适配器
RecyclerViewPagerAdapter recyclerViewPagerAdapter = new RecyclerViewPagerAdapter(items,flag);
recyclerViewPagerAdapter.setAppCompatActivity(appCompatActivity);
mRecyclerView.setAdapter(recyclerViewPagerAdapter);
}
public void initdata(){
//初始化数据类,请求网络
}
}

@ -0,0 +1,83 @@
package com.example.PersonalCenter;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import com.example.cmknowledgegraph.R;
import com.loopeer.cardstack.CardStackView;
import com.ramotion.foldingcell.FoldingCell;
import java.util.Arrays;
import java.util.List;
public class RecyclerViewPagerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
List<Object> contents;
int flag;
AppCompatActivity appCompatActivity;
public void setAppCompatActivity(AppCompatActivity appCompatActivity) {
this.appCompatActivity = appCompatActivity;
}
public RecyclerViewPagerAdapter(List<Object> contents, int flag)
{
this.flag = flag;
this.contents = contents;
}
public int getItemCount() {
return contents.size();
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = null;
switch (flag){
case 0://论坛
view = LayoutInflater.from(parent.getContext())
.inflate(R.layout.cell, parent, false);
//
// view = LayoutInflater.from(parent.getContext()).inflate(R.layout.drug_friends,parent,false);
FoldingCell foldingCell = view.findViewById(R.id.folding_cell_new);
foldingCell.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
foldingCell.toggle(false);
}
});
return new RecyclerView.ViewHolder(view) {
};
case 1://动态
view = LayoutInflater.from(parent.getContext())
.inflate(R.layout.personinfomain, parent, false);
return new RecyclerView.ViewHolder(view) {
};
case 2://好友列表
view = LayoutInflater.from(parent.getContext())
.inflate(R.layout.content_cardview, parent, false);
return new RecyclerView.ViewHolder(view) {
};
//
}
return null;
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
//在这里设置某一个条目的监听
}
}

@ -30,7 +30,7 @@ public class WebServicePost {
connection.setRequestMethod("POST");
connection.setReadTimeout(8000);
connection.setUseCaches(false);
connection.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
connection.setRequestProperty("Content-Type","application/json");
connection.connect();
DataOutputStream out = new DataOutputStream(connection.getOutputStream());
String data = "username="+ URLEncoder.encode(username,"UTF-8")+"&phonenumber="+URLEncoder.encode(phonenumber,"UTF-8")+"&password="+URLEncoder.encode(password,"UTF-8");

@ -33,7 +33,7 @@ public class cmkgWebServicePost {
connection.setRequestMethod("POST");
connection.setReadTimeout(8000);
connection.setUseCaches(false);
connection.setRequestProperty("Content-Type","raw");
connection.setRequestProperty("Content-Type","application/json");
connection.connect();
DataOutputStream out = new DataOutputStream(connection.getOutputStream());
// String data = URLEncoder.encode(args, "UTF-8");

@ -2,8 +2,9 @@ package com.example.cmknowledgegraph;
import android.os.Bundle;
import com.example.PersonalCenter.MyPersonCenter;
import com.example.PersonalCenter.PersonContent;
import com.example.cmknowledgegraph.MainContent;
//import com.example.cmknowledgegraph.MainContent;
import com.example.SearchCenter.SearchContent;
import com.google.android.material.bottomnavigation.BottomNavigationView;
@ -38,9 +39,11 @@ public class MainActivity extends AppCompatActivity {
transaction.commit(); //一定不要忘记commit否则不会显示
return true;
case R.id.chat:
// transaction.replace(R.id.content,new MyPersonCenter());
// transaction.commit();
return true;
case R.id.person:
transaction.replace(R.id.content,new PersonContent()); //对应的java class
transaction.replace(R.id.content,new MyPersonCenter()); //对应的java class
transaction.commit(); //一定不要忘记commit否则不会显示
return true;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1011 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<com.ramotion.foldingcell.FoldingCell xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:folding-cell="http://schemas.android.com/apk/res-auto"
android:id="@+id/folding_cell_new"
android:layout_width="match_parent"
android:layout_height="wrap_content"
folding-cell:additionalFlipsCount="6"
folding-cell:animationDuration="1300"
folding-cell:backSideColor="@color/bgBackSideColor"
folding-cell:cameraHeight="30">
<!-- CONTENT (UNFOLDED) LAYOUT (MUST BE AT LEAST 2x times BIGGER than content layout bellow)-->
<include layout="@layout/cell_content_listview" />
<!-- TITLE (FOLDED) LAYOUT (MUST BE AT LEAST 2x times SMALLER than content layout above) -->
<include layout="@layout/cell_title_listview" />
</com.ramotion.foldingcell.FoldingCell>

@ -0,0 +1,429 @@
<?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"
android:visibility="gone">
<!-- content header line -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bgContentTop"
android:paddingBottom="7dp"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:paddingTop="7dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/order_id_mock"
android:textColor="@android:color/white"
android:textSize="20sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:text="@string/price_mock"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:src="@drawable/favoriteslist" />
</RelativeLayout>
<!-- content header image -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- 展开之后的背景图片-->
<ImageView
android:id="@+id/head_image"
android:layout_width="match_parent"
android:layout_height="100dp"
android:scaleType="centerCrop"
android:src="@drawable/xiha4" />
<TextView
android:id="@+id/head_image_left_text"
style="@style/ContentImageBadgeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/head_image"
android:layout_alignLeft="@id/head_image"
android:layout_alignStart="@id/head_image"
android:paddingBottom="10dp"
android:paddingLeft="20dp"
android:paddingStart="20dp"
android:text="@string/requests_count_mock" />
<TextView
style="@style/ContentImageBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/head_image_left_text"
android:layout_alignLeft="@id/head_image_left_text"
android:layout_alignStart="@id/head_image_left_text"
android:paddingLeft="20dp"
android:paddingStart="20dp"
android:text="@string/requests_count_badge" />
<TextView
android:id="@+id/head_image_right_text"
style="@style/ContentImageBadgeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/head_image"
android:layout_alignEnd="@id/head_image"
android:layout_alignRight="@id/head_image"
android:paddingBottom="10dp"
android:paddingEnd="20dp"
android:paddingRight="20dp"
android:text="@string/weight_mock" />
<TextView
style="@style/ContentImageBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/head_image_right_text"
android:layout_alignLeft="@id/head_image_right_text"
android:layout_alignStart="@id/head_image_right_text"
android:text="@string/weight_badge" />
<TextView
android:id="@+id/head_image_center_text"
style="@style/ContentImageBadgeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/head_image"
android:layout_centerHorizontal="true"
android:paddingBottom="10dp"
android:text="@string/pledge_mock" />
<TextView
style="@style/ContentImageBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/head_image_center_text"
android:layout_alignLeft="@id/head_image_center_text"
android:layout_alignStart="@id/head_image_center_text"
android:text="@string/pledge_badge" />
</RelativeLayout>
<!-- content body layout -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/bgContent"
android:orientation="vertical"
android:paddingBottom="6dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingTop="9dp">
<!-- avatar and name part -->
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="match_parent">
<TextView
android:id="@+id/content_avatar_title"
style="@style/ContentMainBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="5dp"
android:text="@string/sender_badge" />
<!-- 头像-->
<ImageView
android:id="@+id/content_avatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/content_avatar_title"
android:scaleType="centerCrop"
android:src="@drawable/katong1" />
<!--用户名文章-->
<TextView
android:id="@+id/content_name_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/content_avatar"
android:layout_marginBottom="2dp"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_toEndOf="@id/content_avatar"
android:layout_toRightOf="@id/content_avatar"
android:text="@string/client_name_mock"
android:textColor="@color/mainTextColor"
android:textSize="18sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/content_rating_stars"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_name_view"
android:layout_alignStart="@id/content_name_view"
android:layout_below="@id/content_name_view"
android:src="@drawable/collection" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/content_rating_stars"
android:layout_marginBottom="-2dp"
android:layout_marginLeft="3dp"
android:layout_marginStart="3dp"
android:layout_toEndOf="@id/content_rating_stars"
android:layout_toRightOf="@id/content_rating_stars"
android:text="@string/rating_mock"
android:textColor="@color/contentBadgeTitle"
android:textSize="12sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@drawable/next" />
</RelativeLayout>
<!-- divider line -->
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="6dp"
android:layout_marginTop="9dp"
android:src="@color/contentDividerLine" />
<!-- addresses part -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:id="@+id/content_from_badge"
style="@style/ContentMainBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:text="@string/from_badge" />
<TextView
android:id="@+id/content_from_address_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_from_badge"
android:layout_alignStart="@id/content_from_badge"
android:layout_below="@id/content_from_badge"
android:text="@string/content_from1_mock"
android:textColor="@color/mainTextColor"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/content_from_address_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_from_address_1"
android:layout_alignStart="@id/content_from_address_1"
android:layout_below="@id/content_from_address_1"
android:text="@string/content_from2_mock"
android:textColor="@color/mainTextColor"
android:textSize="14sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:id="@+id/content_to_badge"
style="@style/ContentMainBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:text="@string/to_badge" />
<TextView
android:id="@+id/content_to_address_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_to_badge"
android:layout_alignStart="@id/content_to_badge"
android:layout_below="@id/content_to_badge"
android:text="@string/content_to1_mock"
android:textColor="@color/mainTextColor"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/content_to_address_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_to_address_1"
android:layout_alignStart="@id/content_to_address_1"
android:layout_below="@id/content_to_address_1"
android:text="@string/content_to2_mock"
android:textColor="@color/mainTextColor"
android:textSize="14sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@drawable/next" />
</RelativeLayout>
</LinearLayout>
<!-- divider line -->
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="6dp"
android:layout_marginTop="7dp"
android:src="@color/contentDividerLine" />
<!-- dates part -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:id="@+id/content_delivery_date_badge"
style="@style/ContentMainBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:text="@string/delivery_date_badge" />
<TextView
android:id="@+id/content_delivery_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_delivery_date_badge"
android:layout_alignStart="@id/content_delivery_date_badge"
android:layout_below="@id/content_delivery_date_badge"
android:text="@string/delivery_time_mock"
android:textColor="@color/mainTextColor"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/content_delivery_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_delivery_time"
android:layout_alignStart="@id/content_delivery_time"
android:layout_below="@id/content_delivery_time"
android:text="@string/delivery_date_mock"
android:textColor="@color/mainTextColor"
android:textSize="14sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:id="@+id/content_deadline_badge"
style="@style/ContentMainBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:text="@string/deadline_badge" />
<TextView
android:id="@+id/content_deadline_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_deadline_badge"
android:layout_alignStart="@id/content_deadline_badge"
android:layout_below="@id/content_deadline_badge"
android:text="@string/deadline_time_mock"
android:textColor="@color/mainTextColor"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/content_deadline_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/content_deadline_time"
android:layout_alignStart="@id/content_deadline_time"
android:layout_below="@id/content_deadline_time"
android:text=""
android:textColor="@color/mainTextColor"
android:textSize="14sp" />
</RelativeLayout>
</LinearLayout>
<!-- request button -->
<TextView
android:id="@+id/content_request_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:background="@color/btnRequest"
android:padding="10dp"
android:text="@string/request_btn_text"
android:textAlignment="center"
android:textColor="@color/mainTextColor"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/btn_annotation_mock"
android:textAlignment="center"
android:textColor="@color/contentBadgeTitle"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>

@ -0,0 +1,170 @@
<?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:background="@color/bgContent"
android:baselineAligned="false"
android:orientation="horizontal">
<!-- LEFT TITLE PART -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="155dp"
android:layout_weight="3"
android:background="@color/bgTitleLeft"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingBottom="20dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="20dp">
<TextView
android:id="@+id/title_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textColor="@android:color/white"
android:textSize="26sp" />
<TextView
android:id="@+id/title_time_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textColor="@android:color/white"
android:textSize="14sp" />
<TextView
android:id="@+id/title_date_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/title_time_label"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textColor="@android:color/white"
android:textSize="12sp" />
</RelativeLayout>
<!-- RIGHT TITLE PART -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/bgTitleRight"
android:paddingBottom="20dp"
android:paddingEnd="20dp"
android:paddingLeft="15dp"
android:paddingRight="20dp"
android:paddingStart="15dp"
android:paddingTop="20dp">
<ImageView
android:id="@+id/title_from_to_dots"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:src="@drawable/bg_draw13" />
<TextView
android:id="@+id/title_from_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/title_from_to_dots"
android:layout_marginTop="-5dp"
android:layout_toEndOf="@+id/title_from_to_dots"
android:layout_toRightOf="@+id/title_from_to_dots"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:textColor="@android:color/black"
android:textSize="16sp" />
<ImageView
android:id="@+id/title_from_to_dots_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/title_from_address"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:layout_toEndOf="@+id/title_from_to_dots"
android:layout_toRightOf="@+id/title_from_to_dots"
android:src="@color/contentDividerLine" />
<TextView
android:id="@+id/title_to_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/title_from_to_dots_divider"
android:layout_toEndOf="@id/title_from_to_dots"
android:layout_toRightOf="@id/title_from_to_dots"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:singleLine="true"
android:textColor="@android:color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/title_requests_count"
style="@style/TitleBadgeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView
style="@style/TitleBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/title_requests_count"
android:layout_alignLeft="@id/title_requests_count"
android:layout_alignStart="@id/title_requests_count"
android:text="@string/requests_count_badge" />
<TextView
android:id="@+id/title_weight"
style="@style/TitleBadgeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:text="@string/weight_mock" />
<TextView
style="@style/TitleBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/title_weight"
android:layout_alignLeft="@id/title_weight"
android:layout_alignStart="@id/title_weight"
android:text="@string/weight_badge" />
<TextView
android:id="@+id/title_pledge"
style="@style/TitleBadgeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
<TextView
style="@style/TitleBadgeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/title_pledge"
android:layout_alignLeft="@id/title_pledge"
android:layout_alignStart="@id/title_pledge"
android:text="@string/pledge_badge" />
</RelativeLayout>
</LinearLayout>

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
这个xml文件是chat区的总体页面
-->
<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"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".MainActivity"
tools:showIn="@layout/activity_main">
<com.github.florent37.materialviewpager.MaterialViewPager
android:id="@+id/materialViewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:viewpager_logo="@layout/header_logo"
app:viewpager_logoMarginTop="100dp"
app:viewpager_color="@color/colorPrimary"
app:viewpager_headerHeight="300dp"
app:viewpager_headerAlpha="1.0"
app:viewpager_hideLogoWithFade="false"
app:viewpager_hideToolbarAndTitle="true"
app:viewpager_enableToolbarElevation="true"
app:viewpager_parallaxHeaderFactor="1.5"
app:viewpager_headerAdditionalHeight="20dp"
app:viewpager_displayToolbarWhenSwipe="true"
app:viewpager_transparentToolbar="true"
app:viewpager_animatedHeaderImage="true"
app:viewpager_disableToolbar="false">
</com.github.florent37.materialviewpager.MaterialViewPager>
</LinearLayout>

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_marginBottom="@dimen/cardMarginVertical"
android:layout_marginLeft="@dimen/cardMarginHorizontal"
android:layout_marginRight="@dimen/cardMarginHorizontal"
android:layout_marginTop="@dimen/cardMarginVertical"
app:cardBackgroundColor="#000000"
app:cardCornerRadius="2dp"
app:cardElevation="2dp"
app:cardPreventCornerOverlap="false"
android:clickable="true"
app:contentPadding="0dp">
</androidx.cardview.widget.CardView>
</FrameLayout>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--这是chat区配置上面logo区域这里默认是Health isEverything-->
<!--<TextView xmlns:android="http://schemas.android.com/apk/res/android"-->
<!-- android:id="@+id/logo_white"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="@dimen/materialviewpager_logoHeight"-->
<!-- android:text="Health is Everything"-->
<!-- android:textSize="30sp"-->
<!-- android:textColor="@android:color/white"/>-->
<RelativeLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<de.hdodenhof.circleimageview.CircleImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/iv_avatar"
android:layout_width="65dp"
android:layout_height="65dp"
android:src="@drawable/th"
/>
<TextView
android:id="@+id/iv_avatar_username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@id/iv_avatar"
android:text="未登录"
android:textStyle="bold"
android:textSize="20dp"
android:textColor="#1f330f"/>
</RelativeLayout>

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:folding-cell="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.ramotion.foldingcell.FoldingCell
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/folding_cell"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/cardMarginVertical"
android:layout_marginLeft="@dimen/cardMarginHorizontal"
android:layout_marginRight="@dimen/cardMarginHorizontal"
android:layout_marginTop="@dimen/cardMarginVertical"
android:clipChildren="false"
android:clipToPadding="false"
android:elevation="0dp"
folding-cell:animationDuration="1000"
folding-cell:backSideColor="@color/blue"
folding-cell:additionalFlipsCount="15">
<!-- 展开后-->
<FrameLayout
android:id="@+id/cell_content_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/holo_green_dark"
android:visibility="gone">
<!-- 头像-->
<de.hdodenhof.circleimageview.CircleImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginTop="5dp"
android:layout_marginLeft="5dp"
android:background="@drawable/van"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="80dp"
android:text="这是展开后"/>
<ImageView
android:layout_width="100dp"
android:layout_height="80dp"
android:layout_marginTop="180dp"
android:src="@drawable/home_back_1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="1300dp"
android:text="这是展开后"/>
<!-- <TextView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="250dp"-->
<!-- android:text="jkadiekeieii"-->
<!-- android:textColor="@color/white"/>-->
</FrameLayout>
<!-- 展开前-->
<FrameLayout
android:id="@+id/cell_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
<de.hdodenhof.circleimageview.CircleImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginTop="5dp"
android:layout_marginLeft="5dp"
android:background="@drawable/van"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="90dp"
android:text="这是未展开前"></TextView>
</FrameLayout>
</com.ramotion.foldingcell.FoldingCell>
</LinearLayout>

@ -0,0 +1,311 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_marginBottom="@dimen/cardMarginVertical"
android:layout_marginLeft="@dimen/cardMarginHorizontal"
android:layout_marginRight="@dimen/cardMarginHorizontal"
android:layout_marginTop="@dimen/cardMarginVertical"
app:cardBackgroundColor="#ffffff"
app:cardCornerRadius="2dp"
app:cardElevation="2dp"
app:cardPreventCornerOverlap="false"
android:clickable="true"
app:contentPadding="0dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.cardview.widget.CardView
android:id="@+id/more_person_info"
android:layout_width="match_parent"
app:cardElevation="0dp"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Anums"
android:textSize="23dp"
android:textStyle="bold"
android:layout_marginLeft="20dp"
android:typeface="monospace"/>
<TextView
android:id="@+id/personmain_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="more"
android:textSize="18dp"
android:textStyle="italic"
android:layout_alignParentRight="true"
android:layout_marginRight="40dp"
android:typeface="monospace"/>
<ImageView
android:id="@+id/personmain_more_img"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginTop="8dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:src="@drawable/next"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/essay"
android:layout_width="120dp"
android:layout_height="150dp"
app:cardCornerRadius="14dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="40dp"
app:cardElevation="3dp"
android:outlineSpotShadowColor="#000080"
app:cardBackgroundColor="#000080"
android:outlineAmbientShadowColor="#000080">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My Essay"
android:textSize="20dp"
android:textStyle="italic"
android:layout_centerHorizontal="true"
android:layout_marginTop="12dp"
android:textColor="#ffffff"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Open your"
android:textSize="15dp"
android:layout_marginLeft="8dp"
android:textColor="#c0c0c0"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp"/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/llist"
android:layout_marginTop="46dp"
android:layout_centerHorizontal="true"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="beautiful essay"
android:textSize="15dp"
android:layout_marginLeft="15dp"
android:textColor="#c0c0c0"
android:layout_alignParentBottom="true"
android:layout_marginBottom="10dp"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/drug_collection"
android:layout_width="120dp"
android:layout_height="150dp"
app:cardCornerRadius="14dp"
android:layout_marginTop="40dp"
android:layout_marginLeft="10dp"
app:cardBackgroundColor="#6A5ACD"
android:outlineSpotShadowColor="#6A5ACD"
android:outlineAmbientShadowColor="#6A5ACD">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My drug"
android:textSize="20dp"
android:textStyle="italic"
android:layout_centerHorizontal="true"
android:layout_marginTop="12dp"
android:textColor="#ffffff"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Collect your"
android:textSize="15dp"
android:layout_marginLeft="8dp"
android:textColor="#c0c0c0"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Process Drug"
android:textSize="15dp"
android:layout_marginLeft="15dp"
android:textColor="#c0c0c0"
android:layout_alignParentBottom="true"
android:layout_marginBottom="10dp"/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/like"
android:layout_marginTop="46dp"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/health_num"
android:layout_width="120dp"
android:layout_height="150dp"
app:cardCornerRadius="14dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:layout_marginTop="40dp"
android:outlineAmbientShadowColor="#363636"
android:outlineSpotShadowColor="#363636"
app:cardBackgroundColor="#363636">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My Health"
android:textSize="20dp"
android:textStyle="italic"
android:layout_centerHorizontal="true"
android:layout_marginTop="12dp"
android:textColor="#ffffff"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Inten your"
android:textSize="15dp"
android:layout_marginLeft="8dp"
android:textColor="#c0c0c0"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Health number"
android:textSize="15dp"
android:layout_marginLeft="15dp"
android:textColor="#c0c0c0"
android:layout_alignParentBottom="true"
android:layout_marginBottom="10dp"/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/birday"
android:layout_marginTop="46dp"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="-10dp"
android:layout_below="@+id/health_num"
app:cardElevation="10dp"
app:cardBackgroundColor="#e0e0e0"
app:cardCornerRadius="10dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Earnings"
android:textStyle="bold"
android:textSize="24dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Total Balance"
android:textStyle="italic"
android:textColor="@color/holo_blue_bright"
android:textSize="16dp"
android:layout_marginLeft="12dp"
android:layout_marginTop="49dp"/>
<TextView
android:id="@+id/money"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="$38,473,000.00"
android:textSize="18dp"
android:textStyle="bold"
android:layout_marginTop="49dp"
android:layout_alignParentRight="true"
android:layout_marginRight="4dp"/>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardCornerRadius="15dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="80dp"
android:layout_marginBottom="17dp"
app:cardBackgroundColor="#ffffff">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Today Your Earnings"
android:textSize="18dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"/>
<TextView
android:id="@+id/today_earnings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="49dp"
android:layout_marginLeft="15dp"
android:textSize="28dp"
android:textStyle="bold"
android:text="$1,234.00"/>
<com.github.ybq.android.spinkit.SpinKitView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/spin_kit"
style="@style/SpinKitView.Wave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:layout_marginTop="25dp"
app:SpinKit_Color="@color/colorAccent" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</FrameLayout>

@ -37,4 +37,20 @@
<color name="my_color_green_light">#3CB371</color>
<color name="my_color_dark_yellow">#FFD700</color>
<color name="bgBackSideColor">#f4f0ff</color>
<color name="bgTitleLeft">#594691</color>
<color name="bgTitleRight">#ffffff</color>
<color name="bgContentTop">#594691</color>
<color name="bgContent">#ffffff</color>
<color name="contentDividerLine">#e0e0e0</color>
<color name="contentBadgeTitle">#a9a9a9</color>
<color name="titleBadgeTitle">#adafb1</color>
<color name="titleBadgeText">#adafb1</color>
<color name="mainTextColor">#343d43</color>
<color name="btnRequest">#ffbf12</color>
<color name="black_overlay">#66000000</color>
</resources>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>

@ -1,4 +1,29 @@
<resources>
<!-- <string name="app_name">CMKnowledgeGraph</string>-->
<!-- <string name="Sign"-->
<string name="order_id_mock" translatable="false"># 12345678</string>
<string name="price_mock" translatable="false">$25</string>
<string name="requests_count_mock" translatable="false">5</string>
<string name="requests_count_badge" translatable="false">REQUESTS</string>
<string name="weight_mock" translatable="false">50 oz</string>
<string name="weight_badge" translatable="false">WEIGHT</string>
<string name="pledge_mock" translatable="false">$150</string>
<string name="pledge_badge" translatable="false">PLEDGE</string>
<string name="sender_badge" translatable="false">SENDER</string>
<string name="client_name_mock" translatable="false">Edward Norton</string>
<string name="rating_mock" translatable="false">(26)</string>
<string name="from_badge" translatable="false">FROM</string>
<string name="to_badge" translatable="false">TO</string>
<string name="delivery_date_badge" translatable="false">DELIVERY DATE</string>
<string name="delivery_time_mock" translatable="false">6:30 pm</string>
<string name="delivery_date_mock" translatable="false">May 16, 2016</string>
<string name="deadline_badge" translatable="false">REQUEST DEADLINE</string>
<string name="deadline_time_mock" translatable="false">24 minutes</string>
<string name="request_btn_text" translatable="false">REQUEST</string>
<string name="btn_annotation_mock" translatable="false">5 people have sent a request</string>
<string name="content_from1_mock">W 90th St</string>
<string name="content_from2_mock">New York, NY 10025</string>
<string name="content_to1_mock">46th Ave</string>
<string name="content_to2_mock">Woodside, NY 11101</string>
<string name="title_activity_main2">Main2Activity</string>
</resources>

@ -53,4 +53,32 @@
<item name="android:textColor">@color/text_black</item>
</style>
<style name="ContentImageBadgeTitle" parent="AppTheme">
<item name="android:alpha">0.5</item>
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">12dp</item>
</style>
<style name="ContentImageBadgeText" parent="AppTheme">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">20dp</item>
<item name="android:textStyle">bold</item>
</style>
<style name="ContentMainBadgeTitle" parent="AppTheme">
<item name="android:textColor">@color/contentBadgeTitle</item>
<item name="android:textSize">12dp</item>
</style>
<style name="TitleBadgeText" parent="AppTheme">
<item name="android:textColor">@color/titleBadgeText</item>
<item name="android:textSize">20dp</item>
</style>
<style name="TitleBadgeTitle" parent="AppTheme">
<item name="android:textColor">@color/titleBadgeTitle</item>
<item name="android:textSize">12dp</item>
</style>
</resources>
Loading…
Cancel
Save