Commit 84aba1620d612a6e227e7ec52193e2c9a98fa6eb
1 parent
c45f5ac9
Exists in
yxb_dev
and in
2 other branches
no message
Showing
15 changed files
with
821 additions
and
0 deletions
Show diff stats
app/src/main/java/com/shunzhi/parent/adapter/AttendanceAdapter.java
0 → 100644
@@ -0,0 +1,53 @@ | @@ -0,0 +1,53 @@ | ||
1 | +package com.shunzhi.parent.adapter; | ||
2 | + | ||
3 | +import android.content.Context; | ||
4 | +import android.content.Intent; | ||
5 | +import android.support.v4.app.FragmentActivity; | ||
6 | +import android.view.LayoutInflater; | ||
7 | +import android.view.View; | ||
8 | +import android.view.ViewGroup; | ||
9 | + | ||
10 | +import com.share.mvpsdk.base.adapter.BaseRecyclerViewAdapter; | ||
11 | +import com.share.mvpsdk.base.adapter.BaseRecyclerViewHolder; | ||
12 | +import com.shunzhi.parent.R; | ||
13 | +import com.shunzhi.parent.bean.apply.AttendanceBean; | ||
14 | +import com.shunzhi.parent.bean.report.DeyuDetialBean; | ||
15 | +import com.shunzhi.parent.ui.activity.apply.ApplySigninActivity; | ||
16 | +import com.shunzhi.parent.ui.activity.report.ReportSceneActivity; | ||
17 | +import com.shunzhi.parent.ui.fragment.apply.ApplySigninFragment; | ||
18 | + | ||
19 | +/** | ||
20 | + * Created by Administrator on 2018/4/10 0010. | ||
21 | + */ | ||
22 | + | ||
23 | +public class AttendanceAdapter extends BaseRecyclerViewAdapter<AttendanceBean> { | ||
24 | + | ||
25 | + | ||
26 | + private Context mContext = null; | ||
27 | + | ||
28 | + public AttendanceAdapter(Context context) { | ||
29 | + mContext = context; | ||
30 | + } | ||
31 | + | ||
32 | + @Override | ||
33 | + public BaseRecyclerViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { | ||
34 | + View view = LayoutInflater.from(mContext).inflate(R.layout.item_apply_signin,parent,false); | ||
35 | + return new AttendanceAdapter.AttendanceViewHolder(view); | ||
36 | + } | ||
37 | + | ||
38 | + public class AttendanceViewHolder extends BaseRecyclerViewHolder<AttendanceBean> { | ||
39 | + public AttendanceViewHolder(View itemView) { | ||
40 | + super(itemView); | ||
41 | + } | ||
42 | + | ||
43 | + @Override | ||
44 | + public void onBindViewHolder(AttendanceBean object, int position) { | ||
45 | + itemView.setOnClickListener(new View.OnClickListener() { | ||
46 | + @Override | ||
47 | + public void onClick(View view) { | ||
48 | + // mContext.startActivity(new Intent().setClass(mContext, ApplySigninActivity.class)); | ||
49 | + } | ||
50 | + }); | ||
51 | + } | ||
52 | + } | ||
53 | +} |
app/src/main/java/com/shunzhi/parent/bean/apply/AttendanceBean.java
0 → 100644
app/src/main/java/com/shunzhi/parent/ui/activity/apply/ApplyReplaceCardActivity.java
0 → 100644
@@ -0,0 +1,67 @@ | @@ -0,0 +1,67 @@ | ||
1 | +package com.shunzhi.parent.ui.activity.apply; | ||
2 | + | ||
3 | +import android.content.Context; | ||
4 | +import android.content.Intent; | ||
5 | +import android.os.Bundle; | ||
6 | +import android.support.annotation.NonNull; | ||
7 | +import android.support.v4.app.FragmentTransaction; | ||
8 | +import android.view.View; | ||
9 | +import android.widget.FrameLayout; | ||
10 | +import android.widget.ImageView; | ||
11 | +import android.widget.TextView; | ||
12 | + | ||
13 | +import com.share.mvpsdk.base.BasePresenter; | ||
14 | +import com.share.mvpsdk.base.activity.BaseMVPCompatActivity; | ||
15 | +import com.shunzhi.parent.R; | ||
16 | +import com.shunzhi.parent.ui.fragment.apply.ApplyReplaceCardFragment; | ||
17 | +import com.shunzhi.parent.ui.fragment.apply.ApplySigninFragment; | ||
18 | + | ||
19 | +/** | ||
20 | + * Created by wwx on 2018/4/10 0010. | ||
21 | + * 补卡界面 | ||
22 | + */ | ||
23 | + | ||
24 | +public class ApplyReplaceCardActivity extends BaseMVPCompatActivity implements View.OnClickListener{ | ||
25 | + ApplyReplaceCardFragment applyReplaceCardFragment = null; | ||
26 | + ImageView ivBack; | ||
27 | + TextView center_title; | ||
28 | + FrameLayout frame_replacecard; | ||
29 | + FragmentTransaction fragmentTransaction=null; | ||
30 | + | ||
31 | + public static void getInstance(Context context) { | ||
32 | + Intent intent = new Intent(context, ApplyReplaceCardActivity.class); | ||
33 | + context.startActivity(intent); | ||
34 | + } | ||
35 | + | ||
36 | + @Override | ||
37 | + protected void initView(Bundle savedInstanceState) { | ||
38 | + initViews(); | ||
39 | + } | ||
40 | + | ||
41 | + private void initViews() { | ||
42 | + applyReplaceCardFragment = new ApplyReplaceCardFragment(); | ||
43 | + ivBack = findViewById(R.id.back_top); | ||
44 | + center_title = findViewById(R.id.center_title); | ||
45 | + frame_replacecard = findViewById(R.id.frame_replacecard); | ||
46 | + center_title.setText("补卡"); | ||
47 | + | ||
48 | + ivBack.setOnClickListener(this); | ||
49 | + | ||
50 | + fragmentTransaction = getSupportFragmentManager().beginTransaction(); | ||
51 | + fragmentTransaction.add(R.id.frame_replacecard,applyReplaceCardFragment).show(applyReplaceCardFragment).commit(); | ||
52 | + } | ||
53 | + | ||
54 | + @Override | ||
55 | + protected int getLayoutId() { | ||
56 | + return R.layout.activity_apply_replacecard; | ||
57 | + } | ||
58 | + @Override | ||
59 | + public void onClick(View view) { | ||
60 | + finish(); | ||
61 | + } | ||
62 | + @NonNull | ||
63 | + @Override | ||
64 | + public BasePresenter initPresenter() { | ||
65 | + return null; | ||
66 | + } | ||
67 | +} |
app/src/main/java/com/shunzhi/parent/ui/activity/apply/ApplySigninActivity.java
0 → 100644
@@ -0,0 +1,72 @@ | @@ -0,0 +1,72 @@ | ||
1 | +package com.shunzhi.parent.ui.activity.apply; | ||
2 | + | ||
3 | +import android.annotation.SuppressLint; | ||
4 | +import android.content.Context; | ||
5 | +import android.content.Intent; | ||
6 | +import android.os.Bundle; | ||
7 | +import android.support.annotation.NonNull; | ||
8 | +import android.support.v4.app.FragmentTransaction; | ||
9 | +import android.view.View; | ||
10 | +import android.widget.FrameLayout; | ||
11 | +import android.widget.ImageView; | ||
12 | +import android.widget.TextView; | ||
13 | + | ||
14 | +import com.share.mvpsdk.base.BasePresenter; | ||
15 | +import com.share.mvpsdk.base.activity.BaseMVPCompatActivity; | ||
16 | +import com.shunzhi.parent.R; | ||
17 | +import com.shunzhi.parent.ui.fragment.apply.ApplySigninFragment; | ||
18 | + | ||
19 | +/** | ||
20 | + * Created by wwx on 2018/4/10 0010. | ||
21 | + * | ||
22 | + * 考勤界面 | ||
23 | + */ | ||
24 | + | ||
25 | +public class ApplySigninActivity extends BaseMVPCompatActivity implements View.OnClickListener{ | ||
26 | + public static void getInstance(Context context) { | ||
27 | + Intent intent = new Intent(context, ApplySigninActivity.class); | ||
28 | + context.startActivity(intent); | ||
29 | + } | ||
30 | + | ||
31 | + FragmentTransaction fragmentTransaction = null; | ||
32 | + ApplySigninFragment applySigninFragment = null; | ||
33 | + ImageView ivBack; | ||
34 | + FrameLayout frame_signin; | ||
35 | + TextView center_title; | ||
36 | + | ||
37 | + @Override | ||
38 | + protected void initView(Bundle savedInstanceState) { | ||
39 | + initViews(); | ||
40 | + } | ||
41 | + | ||
42 | + @SuppressLint("WrongViewCast") | ||
43 | + private void initViews() { | ||
44 | + applySigninFragment = new ApplySigninFragment(); | ||
45 | + ivBack = findViewById(R.id.back_top); | ||
46 | + center_title = findViewById(R.id.center_title); | ||
47 | + frame_signin = findViewById(R.id.frame_signin); | ||
48 | + center_title.setText("考勤"); | ||
49 | + | ||
50 | + ivBack.setOnClickListener(this); | ||
51 | + | ||
52 | + fragmentTransaction = getSupportFragmentManager().beginTransaction(); | ||
53 | + fragmentTransaction.add(R.id.frame_signin,applySigninFragment).show(applySigninFragment).commit(); | ||
54 | + | ||
55 | + } | ||
56 | + | ||
57 | + @Override | ||
58 | + protected int getLayoutId() { | ||
59 | + return R.layout.activity_apply_signin; | ||
60 | + } | ||
61 | + | ||
62 | + @Override | ||
63 | + public void onClick(View view) { | ||
64 | + finish(); | ||
65 | + } | ||
66 | + | ||
67 | + @NonNull | ||
68 | + @Override | ||
69 | + public BasePresenter initPresenter() { | ||
70 | + return null; | ||
71 | + } | ||
72 | +} |
app/src/main/java/com/shunzhi/parent/ui/fragment/apply/ApplyReplaceCardFragment.java
0 → 100644
@@ -0,0 +1,62 @@ | @@ -0,0 +1,62 @@ | ||
1 | +package com.shunzhi.parent.ui.fragment.apply; | ||
2 | + | ||
3 | +import android.os.Bundle; | ||
4 | +import android.support.annotation.NonNull; | ||
5 | +import android.support.annotation.Nullable; | ||
6 | +import android.view.View; | ||
7 | +import android.widget.Button; | ||
8 | +import android.widget.EditText; | ||
9 | +import android.widget.Toast; | ||
10 | + | ||
11 | +import com.share.mvpsdk.base.BasePresenter; | ||
12 | +import com.share.mvpsdk.base.fragment.BaseMVPCompatFragment; | ||
13 | +import com.shunzhi.parent.R; | ||
14 | +import com.shunzhi.parent.views.ReplaceCardDialog; | ||
15 | + | ||
16 | +/** | ||
17 | + * Created by Administrator on 2018/4/10 0010. | ||
18 | + */ | ||
19 | + | ||
20 | +public class ApplyReplaceCardFragment extends BaseMVPCompatFragment implements View.OnClickListener{ | ||
21 | + private Button bt_sure; | ||
22 | + private Button bt_cancel; | ||
23 | + ReplaceCardDialog replaceCardDialog=null; | ||
24 | + private EditText et_cardnum; | ||
25 | + | ||
26 | + @NonNull | ||
27 | + @Override | ||
28 | + public BasePresenter initPresenter() { | ||
29 | + return null; | ||
30 | + } | ||
31 | + | ||
32 | + @Override | ||
33 | + public int getLayoutId() { | ||
34 | + return R.layout.fragment_apply_replacecard; | ||
35 | + } | ||
36 | + | ||
37 | + @Override | ||
38 | + public void initUI(View view, @Nullable Bundle savedInstanceState) { | ||
39 | + replaceCardDialog = new ReplaceCardDialog(getActivity()); | ||
40 | + bt_sure = view.findViewById(R.id.bt_sure); | ||
41 | + bt_cancel = view.findViewById(R.id.bt_cancle); | ||
42 | + et_cardnum = view.findViewById(R.id.et_cardnum); | ||
43 | + | ||
44 | + bt_sure.setOnClickListener(this); | ||
45 | + } | ||
46 | + | ||
47 | + @Override | ||
48 | + public void onClick(View view) { | ||
49 | + switch (view.getId()){ | ||
50 | + case R.id.bt_sure: | ||
51 | + if (et_cardnum.getText().toString().trim().equals("")|| | ||
52 | + et_cardnum.getText().toString().trim().equals(null)){ | ||
53 | + Toast.makeText(getActivity(),"卡号不能为空,请重新输入",Toast.LENGTH_SHORT).show(); | ||
54 | + }else { | ||
55 | + replaceCardDialog.setTitle("补卡提示"); | ||
56 | + replaceCardDialog.setText("您已补卡成功!"); | ||
57 | + replaceCardDialog.show(); | ||
58 | + } | ||
59 | + break; | ||
60 | + } | ||
61 | + } | ||
62 | +} |
app/src/main/java/com/shunzhi/parent/ui/fragment/apply/ApplySigninFragment.java
0 → 100644
@@ -0,0 +1,63 @@ | @@ -0,0 +1,63 @@ | ||
1 | +package com.shunzhi.parent.ui.fragment.apply; | ||
2 | + | ||
3 | +import android.os.Bundle; | ||
4 | +import android.support.annotation.NonNull; | ||
5 | +import android.support.annotation.Nullable; | ||
6 | +import android.support.v7.widget.LinearLayoutManager; | ||
7 | +import android.support.v7.widget.RecyclerView; | ||
8 | +import android.view.View; | ||
9 | +import android.widget.LinearLayout; | ||
10 | +import android.widget.TextView; | ||
11 | + | ||
12 | +import com.share.mvpsdk.base.BasePresenter; | ||
13 | +import com.share.mvpsdk.base.fragment.BaseMVPCompatFragment; | ||
14 | +import com.shunzhi.parent.R; | ||
15 | +import com.shunzhi.parent.adapter.AttendanceAdapter; | ||
16 | +import com.shunzhi.parent.bean.apply.AttendanceBean; | ||
17 | +import com.shunzhi.parent.bean.report.DeyuDetialBean; | ||
18 | + | ||
19 | +import java.util.ArrayList; | ||
20 | +import java.util.List; | ||
21 | + | ||
22 | +/** | ||
23 | + * Created by Administrator on 2018/4/10 0010. | ||
24 | + */ | ||
25 | + | ||
26 | +public class ApplySigninFragment extends BaseMVPCompatFragment { | ||
27 | + private RecyclerView recycle_attendance; | ||
28 | + private AttendanceAdapter attendanceAdapter; | ||
29 | + List<AttendanceBean> list=new ArrayList<>(); | ||
30 | + private TextView tv_tips; | ||
31 | + private LinearLayout layout_tv; | ||
32 | + | ||
33 | + | ||
34 | + public BasePresenter initPresenter() { | ||
35 | + return null; | ||
36 | + } | ||
37 | + | ||
38 | + @Override | ||
39 | + public int getLayoutId() { | ||
40 | + return R.layout.fragment_apply_signin; | ||
41 | + } | ||
42 | + | ||
43 | + @Override | ||
44 | + public void initUI(View view, @Nullable Bundle savedInstanceState) { | ||
45 | + tv_tips = view.findViewById(R.id.tv_tips); | ||
46 | + layout_tv = view.findViewById(R.id.layout_tv); | ||
47 | + recycle_attendance = view.findViewById(R.id.recycle_attendance); | ||
48 | + recycle_attendance.setLayoutManager(new LinearLayoutManager(getActivity())); | ||
49 | + attendanceAdapter = new AttendanceAdapter(getActivity()); | ||
50 | + AttendanceBean attendanceBean = new AttendanceBean(); | ||
51 | + if (list.size()!=0){ | ||
52 | + layout_tv.setVisibility(View.VISIBLE); | ||
53 | + tv_tips.setVisibility(View.VISIBLE); | ||
54 | + }else { | ||
55 | + list.add(attendanceBean); | ||
56 | + list.add(attendanceBean); | ||
57 | + list.add(attendanceBean); | ||
58 | + list.add(attendanceBean); | ||
59 | + attendanceAdapter.addAll(list); | ||
60 | + recycle_attendance.setAdapter(attendanceAdapter); | ||
61 | + } | ||
62 | + } | ||
63 | +} |
app/src/main/java/com/shunzhi/parent/views/ReplaceCardDialog.java
0 → 100644
@@ -0,0 +1,41 @@ | @@ -0,0 +1,41 @@ | ||
1 | +package com.shunzhi.parent.views; | ||
2 | + | ||
3 | +import android.app.Dialog; | ||
4 | +import android.content.Context; | ||
5 | +import android.view.View; | ||
6 | +import android.widget.ImageView; | ||
7 | +import android.widget.TextView; | ||
8 | + | ||
9 | +import com.shunzhi.parent.R; | ||
10 | + | ||
11 | +/** | ||
12 | + * Created by Administrator on 2018/4/10 0010. | ||
13 | + */ | ||
14 | + | ||
15 | +public class ReplaceCardDialog extends Dialog implements View.OnClickListener{ | ||
16 | + private TextView replace_tips; | ||
17 | + private ImageView replace_tips_iv; | ||
18 | + | ||
19 | + public ReplaceCardDialog(Context context) { | ||
20 | + super(context,R.style.DialogTips); | ||
21 | + this.setContentView(R.layout.apply_replacecard_dialog); | ||
22 | + replace_tips = findViewById(R.id.replace_tips); | ||
23 | + replace_tips_iv = findViewById(R.id.replace_tips_iv); | ||
24 | + replace_tips_iv.setOnClickListener(this); | ||
25 | + } | ||
26 | + | ||
27 | + public void setText(String string){ | ||
28 | + if (string != null){ | ||
29 | + replace_tips.setText(string); | ||
30 | + } | ||
31 | + } | ||
32 | + | ||
33 | + @Override | ||
34 | + public void onClick(View view) { | ||
35 | + switch (view.getId()){ | ||
36 | + case R.id.replace_tips_iv: | ||
37 | + dismiss(); | ||
38 | + break; | ||
39 | + } | ||
40 | + } | ||
41 | +} |
6.03 KB
@@ -0,0 +1,8 @@ | @@ -0,0 +1,8 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
3 | + <gradient android:startColor="#87CEFF" android:endColor="#c0000000" android:angle="90" /><!--背景颜色渐变 angle为渐变角度--> | ||
4 | + <solid android:color="#87CEFF" /><!-- 背景填充颜色 --> | ||
5 | + <stroke android:width="1dp" android:color="#87CEFF" /><!-- 描边,边框宽度、颜色 --> | ||
6 | + <corners android:radius="15dp" /><!-- 边角圆弧的半径 --> | ||
7 | + <padding android:left="1dp" android:top="1dp" android:right="1dp" android:bottom="1dp" /><!-- 四周留出来的空白 --> | ||
8 | +</shape> | ||
0 | \ No newline at end of file | 9 | \ No newline at end of file |
@@ -0,0 +1,17 @@ | @@ -0,0 +1,17 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + xmlns:tools="http://schemas.android.com/tools" | ||
5 | + android:layout_width="match_parent" | ||
6 | + android:layout_height="match_parent" | ||
7 | + android:orientation="vertical" | ||
8 | + tools:context="com.shunzhi.parent.ui.activity.apply.ApplySigninActivity"> | ||
9 | + | ||
10 | + <include layout="@layout/top" /> | ||
11 | + | ||
12 | + <FrameLayout | ||
13 | + android:id="@+id/frame_replacecard" | ||
14 | + android:layout_width="match_parent" | ||
15 | + android:layout_height="match_parent"> | ||
16 | + </FrameLayout> | ||
17 | +</LinearLayout> | ||
0 | \ No newline at end of file | 18 | \ No newline at end of file |
@@ -0,0 +1,17 @@ | @@ -0,0 +1,17 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
4 | + xmlns:tools="http://schemas.android.com/tools" | ||
5 | + android:layout_width="match_parent" | ||
6 | + android:layout_height="match_parent" | ||
7 | + android:orientation="vertical" | ||
8 | + tools:context="com.shunzhi.parent.ui.activity.apply.ApplySigninActivity"> | ||
9 | + | ||
10 | + <include layout="@layout/top"/> | ||
11 | + | ||
12 | + <FrameLayout | ||
13 | + android:layout_width="match_parent" | ||
14 | + android:layout_height="match_parent" | ||
15 | + android:id="@+id/frame_signin"> | ||
16 | + </FrameLayout> | ||
17 | +</LinearLayout> |
@@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
1 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | + android:layout_width="fill_parent" | ||
3 | + android:layout_height="fill_parent" | ||
4 | + android:background="@color/white" | ||
5 | + android:layout_gravity="center" | ||
6 | + android:orientation="vertical"> | ||
7 | + | ||
8 | + <ImageView | ||
9 | + android:id="@+id/replace_tips_iv" | ||
10 | + android:layout_width="25dp" | ||
11 | + android:layout_height="25dp" | ||
12 | + android:layout_gravity="right|center_vertical" | ||
13 | + android:background="@drawable/wait_fail" /> | ||
14 | + | ||
15 | + <TextView | ||
16 | + android:id="@+id/replace_tips" | ||
17 | + android:layout_width="270dp" | ||
18 | + android:layout_height="150dp" | ||
19 | + android:gravity="center" | ||
20 | + android:text="您已补卡成功!" | ||
21 | + android:textColor="@color/txt_black" | ||
22 | + android:textSize="@dimen/size_dp_20"/> | ||
23 | +</LinearLayout> | ||
0 | \ No newline at end of file | 24 | \ No newline at end of file |
@@ -0,0 +1,165 @@ | @@ -0,0 +1,165 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:tools="http://schemas.android.com/tools" | ||
4 | + android:layout_width="match_parent" | ||
5 | + android:layout_height="match_parent" | ||
6 | + android:background="@color/bgColor" | ||
7 | + android:orientation="vertical" | ||
8 | + tools:context="com.shunzhi.parent.ui.fragment.ReportFragment"> | ||
9 | + | ||
10 | + | ||
11 | + <RelativeLayout | ||
12 | + android:layout_width="match_parent" | ||
13 | + android:layout_height="match_parent" | ||
14 | + android:background="@color/white" | ||
15 | + android:visibility="gone"> | ||
16 | + | ||
17 | + <TextView | ||
18 | + android:id="@+id/tvNoData" | ||
19 | + android:layout_width="wrap_content" | ||
20 | + android:layout_height="wrap_content" | ||
21 | + android:layout_centerInParent="true" | ||
22 | + android:background="@drawable/baogao_back" | ||
23 | + android:lineSpacingExtra="@dimen/size_dp_5" | ||
24 | + android:textColor="@color/xueqing_blue" | ||
25 | + android:textSize="@dimen/size_dp_16" /> | ||
26 | + </RelativeLayout> | ||
27 | + | ||
28 | + <LinearLayout | ||
29 | + android:layout_width="match_parent" | ||
30 | + android:layout_height="wrap_content" | ||
31 | + android:background="@color/white" | ||
32 | + android:orientation="vertical"> | ||
33 | + | ||
34 | + <LinearLayout | ||
35 | + android:layout_width="wrap_content" | ||
36 | + android:layout_height="0dp" | ||
37 | + android:layout_weight="1" | ||
38 | + android:orientation="horizontal"> | ||
39 | + | ||
40 | + <TextView | ||
41 | + android:id="@+id/tv_carduser" | ||
42 | + android:layout_width="100dp" | ||
43 | + android:layout_height="wrap_content" | ||
44 | + android:padding="5dp" | ||
45 | + android:text="补卡人:" | ||
46 | + android:textColor="@color/hintTextColor" | ||
47 | + android:textSize="@dimen/textSize18" /> | ||
48 | + | ||
49 | + <TextView | ||
50 | + android:id="@+id/et_carduser" | ||
51 | + android:layout_width="200dp" | ||
52 | + android:layout_height="wrap_content" | ||
53 | + android:gravity="center" | ||
54 | + android:text="张三" | ||
55 | + android:textColor="@color/hintTextColor" | ||
56 | + android:textSize="@dimen/textSize18" /> | ||
57 | + | ||
58 | + | ||
59 | + </LinearLayout> | ||
60 | + | ||
61 | + <TextView | ||
62 | + android:id="@+id/tv" | ||
63 | + android:layout_width="fill_parent" | ||
64 | + android:layout_height="1dp" | ||
65 | + android:background="@color/line_color" /> | ||
66 | + | ||
67 | + <LinearLayout | ||
68 | + android:layout_width="wrap_content" | ||
69 | + android:layout_height="0dp" | ||
70 | + android:layout_weight="1" | ||
71 | + android:orientation="horizontal"> | ||
72 | + | ||
73 | + <TextView | ||
74 | + android:id="@+id/tv_cardnum" | ||
75 | + android:layout_width="100dp" | ||
76 | + android:layout_height="wrap_content" | ||
77 | + android:padding="5dp" | ||
78 | + android:text="卡号:" | ||
79 | + android:textColor="@color/hintTextColor" | ||
80 | + android:textSize="@dimen/textSize18" /> | ||
81 | + | ||
82 | + <EditText | ||
83 | + android:id="@+id/et_cardnum" | ||
84 | + android:layout_width="200dp" | ||
85 | + android:layout_height="wrap_content" | ||
86 | + android:gravity="center" | ||
87 | + android:background="@null" | ||
88 | + android:inputType="number" | ||
89 | + android:text="1317410119" | ||
90 | + android:textColor="@color/hintTextColor" | ||
91 | + android:textSize="@dimen/textSize18" /> | ||
92 | + | ||
93 | + </LinearLayout> | ||
94 | + | ||
95 | + <TextView | ||
96 | + android:id="@+id/tv1" | ||
97 | + android:layout_width="fill_parent" | ||
98 | + android:layout_height="1dp" | ||
99 | + android:background="@color/line_color" /> | ||
100 | + | ||
101 | + <LinearLayout | ||
102 | + android:layout_width="wrap_content" | ||
103 | + android:layout_height="0dp" | ||
104 | + android:layout_weight="1" | ||
105 | + android:orientation="horizontal"> | ||
106 | + | ||
107 | + <TextView | ||
108 | + android:id="@+id/tv_cardnumber" | ||
109 | + android:layout_width="100dp" | ||
110 | + android:layout_height="wrap_content" | ||
111 | + android:padding="5dp" | ||
112 | + android:text="考勤次数:" | ||
113 | + android:textColor="@color/hintTextColor" | ||
114 | + android:textSize="@dimen/textSize18" /> | ||
115 | + | ||
116 | + <TextView | ||
117 | + android:id="@+id/et_cardnumber" | ||
118 | + android:layout_width="200dp" | ||
119 | + android:layout_height="wrap_content" | ||
120 | + android:gravity="center" | ||
121 | + android:text="5次" | ||
122 | + android:textColor="@color/hintTextColor" | ||
123 | + android:textSize="@dimen/textSize18" /> | ||
124 | + | ||
125 | + | ||
126 | + </LinearLayout> | ||
127 | + | ||
128 | + <TextView | ||
129 | + android:id="@+id/tv2" | ||
130 | + android:layout_width="fill_parent" | ||
131 | + android:layout_height="1dp" | ||
132 | + android:background="@color/line_color" /> | ||
133 | + | ||
134 | + <RelativeLayout | ||
135 | + android:layout_width="wrap_content" | ||
136 | + android:layout_height="0dp" | ||
137 | + android:layout_margin="10dp" | ||
138 | + android:layout_weight="1.5" | ||
139 | + android:orientation="horizontal"> | ||
140 | + | ||
141 | + <Button | ||
142 | + android:id="@+id/bt_sure" | ||
143 | + android:layout_width="80dp" | ||
144 | + android:layout_height="wrap_content" | ||
145 | + android:layout_marginLeft="30dp" | ||
146 | + android:layout_alignParentLeft="true" | ||
147 | + android:text="确定" | ||
148 | + android:textColor="@color/white" | ||
149 | + android:textSize="@dimen/textSize18" | ||
150 | + android:background="@drawable/button_shape"/> | ||
151 | + | ||
152 | + <Button | ||
153 | + android:id="@+id/bt_cancle" | ||
154 | + android:layout_width="80dp" | ||
155 | + android:layout_height="wrap_content" | ||
156 | + android:layout_marginRight="30dp" | ||
157 | + android:layout_alignParentRight="true" | ||
158 | + android:text="取消" | ||
159 | + android:textColor="@color/white" | ||
160 | + android:textSize="@dimen/textSize18" | ||
161 | + android:background="@drawable/button_shape"/> | ||
162 | + </RelativeLayout> | ||
163 | + | ||
164 | + </LinearLayout> | ||
165 | +</LinearLayout> | ||
0 | \ No newline at end of file | 166 | \ No newline at end of file |
@@ -0,0 +1,158 @@ | @@ -0,0 +1,158 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:tools="http://schemas.android.com/tools" | ||
4 | + android:layout_width="match_parent" | ||
5 | + android:layout_height="match_parent" | ||
6 | + android:background="@color/bgColor" | ||
7 | + android:orientation="vertical" | ||
8 | + tools:context="com.shunzhi.parent.ui.fragment.ReportFragment"> | ||
9 | + | ||
10 | + <RelativeLayout | ||
11 | + android:layout_width="match_parent" | ||
12 | + android:layout_height="match_parent" | ||
13 | + android:background="@color/white" | ||
14 | + android:visibility="gone"> | ||
15 | + | ||
16 | + <TextView | ||
17 | + android:id="@+id/tvNoData" | ||
18 | + android:layout_width="wrap_content" | ||
19 | + android:layout_height="wrap_content" | ||
20 | + android:layout_centerInParent="true" | ||
21 | + android:background="@drawable/baogao_back" | ||
22 | + android:lineSpacingExtra="@dimen/size_dp_5" | ||
23 | + android:textColor="@color/xueqing_blue" | ||
24 | + android:textSize="@dimen/size_dp_16" /> | ||
25 | + </RelativeLayout> | ||
26 | + | ||
27 | + <LinearLayout | ||
28 | + android:layout_width="match_parent" | ||
29 | + android:layout_height="wrap_content" | ||
30 | + android:background="@color/white" | ||
31 | + android:orientation="vertical"> | ||
32 | + | ||
33 | + <LinearLayout | ||
34 | + android:layout_width="wrap_content" | ||
35 | + android:layout_height="0dp" | ||
36 | + android:layout_weight="1" | ||
37 | + android:orientation="horizontal"> | ||
38 | + | ||
39 | + <TextView | ||
40 | + android:id="@+id/tv_attendancer" | ||
41 | + android:layout_width="100dp" | ||
42 | + android:layout_height="wrap_content" | ||
43 | + android:padding="5dp" | ||
44 | + android:text="考核对象:" | ||
45 | + android:textColor="@color/hintTextColor" | ||
46 | + android:textSize="@dimen/textSize18" /> | ||
47 | + | ||
48 | + <TextView | ||
49 | + android:id="@+id/et_attendancer" | ||
50 | + android:layout_width="200dp" | ||
51 | + android:layout_height="wrap_content" | ||
52 | + android:gravity="center" | ||
53 | + android:text="张三" | ||
54 | + android:textColor="@color/hintTextColor" | ||
55 | + android:textSize="@dimen/textSize18" /> | ||
56 | + | ||
57 | + | ||
58 | + </LinearLayout> | ||
59 | + | ||
60 | + <TextView | ||
61 | + android:id="@+id/tv" | ||
62 | + android:layout_width="fill_parent" | ||
63 | + android:layout_height="1dp" | ||
64 | + android:background="@color/line_color" /> | ||
65 | + | ||
66 | + <LinearLayout | ||
67 | + android:layout_width="wrap_content" | ||
68 | + android:layout_height="0dp" | ||
69 | + android:layout_weight="1" | ||
70 | + android:orientation="horizontal"> | ||
71 | + | ||
72 | + <TextView | ||
73 | + android:id="@+id/tv_date" | ||
74 | + android:layout_width="100dp" | ||
75 | + android:layout_height="wrap_content" | ||
76 | + android:padding="5dp" | ||
77 | + android:text="考勤日期:" | ||
78 | + android:textColor="@color/hintTextColor" | ||
79 | + android:textSize="@dimen/textSize18" /> | ||
80 | + | ||
81 | + <TextView | ||
82 | + android:id="@+id/et_date" | ||
83 | + android:layout_width="200dp" | ||
84 | + android:layout_height="wrap_content" | ||
85 | + android:gravity="center" | ||
86 | + android:text="2018-04-10" | ||
87 | + android:textColor="@color/hintTextColor" | ||
88 | + android:textSize="@dimen/textSize18" /> | ||
89 | + | ||
90 | + </LinearLayout> | ||
91 | + | ||
92 | + <TextView | ||
93 | + android:id="@+id/tv1" | ||
94 | + android:layout_width="fill_parent" | ||
95 | + android:layout_height="1dp" | ||
96 | + android:background="@color/line_color" /> | ||
97 | + | ||
98 | + <LinearLayout | ||
99 | + android:layout_width="wrap_content" | ||
100 | + android:layout_height="0dp" | ||
101 | + android:layout_weight="1" | ||
102 | + android:orientation="horizontal"> | ||
103 | + | ||
104 | + <TextView | ||
105 | + android:id="@+id/tv_number" | ||
106 | + android:layout_width="100dp" | ||
107 | + android:layout_height="wrap_content" | ||
108 | + android:padding="5dp" | ||
109 | + android:text="考勤次数:" | ||
110 | + android:textColor="@color/hintTextColor" | ||
111 | + android:textSize="@dimen/textSize18" /> | ||
112 | + | ||
113 | + <TextView | ||
114 | + android:id="@+id/et_number" | ||
115 | + android:layout_width="200dp" | ||
116 | + android:layout_height="wrap_content" | ||
117 | + android:gravity="center" | ||
118 | + android:text="5次" | ||
119 | + android:textColor="@color/hintTextColor" | ||
120 | + android:textSize="@dimen/textSize18" /> | ||
121 | + | ||
122 | + | ||
123 | + </LinearLayout> | ||
124 | + | ||
125 | + <TextView | ||
126 | + android:id="@+id/tv2" | ||
127 | + android:layout_width="fill_parent" | ||
128 | + android:layout_height="1dp" | ||
129 | + android:background="@color/line_color" /> | ||
130 | + | ||
131 | + <LinearLayout | ||
132 | + android:id="@+id/layout_tv" | ||
133 | + android:layout_width="match_parent" | ||
134 | + android:layout_height="80dp" | ||
135 | + android:gravity="center" | ||
136 | + android:orientation="horizontal" | ||
137 | + android:visibility="gone"> | ||
138 | + | ||
139 | + <TextView | ||
140 | + android:id="@+id/tv_tips" | ||
141 | + android:layout_width="wrap_content" | ||
142 | + android:layout_height="wrap_content" | ||
143 | + android:text="张三今日无刷卡记录!" | ||
144 | + android:textColor="@color/textRed" | ||
145 | + android:textSize="@dimen/textSize20" | ||
146 | + android:visibility="gone" /> | ||
147 | + </LinearLayout> | ||
148 | + </LinearLayout> | ||
149 | + | ||
150 | + <android.support.v7.widget.RecyclerView | ||
151 | + android:id="@+id/recycle_attendance" | ||
152 | + android:layout_width="match_parent" | ||
153 | + android:layout_height="wrap_content" | ||
154 | + android:layout_marginTop="@dimen/size_dp_10" | ||
155 | + android:background="@color/bgColor"> | ||
156 | + | ||
157 | + </android.support.v7.widget.RecyclerView> | ||
158 | +</LinearLayout> | ||
0 | \ No newline at end of file | 159 | \ No newline at end of file |
@@ -0,0 +1,67 @@ | @@ -0,0 +1,67 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="wrap_content" | ||
5 | + android:background="@color/white" | ||
6 | + android:divider="@color/divider_gray" | ||
7 | + android:layout_marginTop="@dimen/size_dp_10"> | ||
8 | + | ||
9 | + <LinearLayout | ||
10 | + android:id="@+id/item_view" | ||
11 | + android:layout_margin="10dp" | ||
12 | + android:layout_width="match_parent" | ||
13 | + android:layout_height="wrap_content" | ||
14 | + android:weightSum="10" | ||
15 | + android:orientation="horizontal"> | ||
16 | + | ||
17 | + <LinearLayout | ||
18 | + android:layout_width="5dp" | ||
19 | + android:layout_height="wrap_content" | ||
20 | + android:orientation="vertical" | ||
21 | + android:layout_weight="1"> | ||
22 | + | ||
23 | + <ImageView | ||
24 | + android:layout_width="10dp" | ||
25 | + android:layout_height="10dp" | ||
26 | + android:background="@drawable/guanlianchild" /> | ||
27 | + <TextView | ||
28 | + android:layout_width="2dp" | ||
29 | + android:layout_height="180dp" | ||
30 | + android:layout_marginLeft="4dp" | ||
31 | + android:layout_weight="1" | ||
32 | + android:background="@color/line_color"/> | ||
33 | + | ||
34 | + </LinearLayout> | ||
35 | + <LinearLayout | ||
36 | + android:layout_width="wrap_content" | ||
37 | + android:layout_height="wrap_content" | ||
38 | + android:orientation="vertical" | ||
39 | + android:layout_weight="9"> | ||
40 | + <TextView | ||
41 | + android:id="@+id/tv_call" | ||
42 | + android:layout_width="wrap_content" | ||
43 | + android:layout_height="wrap_content" | ||
44 | + android:layout_marginLeft="0dp" | ||
45 | + android:padding="5dp" | ||
46 | + android:text="尊敬的张三家长," | ||
47 | + android:textColor="@color/hintTextColor" | ||
48 | + android:textSize="@dimen/size_dp_18"/> | ||
49 | + | ||
50 | + <TextView | ||
51 | + android:id="@+id/tv_attendance_date" | ||
52 | + android:layout_width="wrap_content" | ||
53 | + android:layout_height="wrap_content" | ||
54 | + android:layout_marginLeft="0dp" | ||
55 | + android:padding="5dp" | ||
56 | + android:text="您的孩子已与8:00:15进校!" | ||
57 | + android:textColor="@color/hintTextColor" | ||
58 | + android:textSize="@dimen/size_dp_16" /> | ||
59 | + <ImageView | ||
60 | + android:id="@+id/iv_photo" | ||
61 | + android:layout_width="wrap_content" | ||
62 | + android:layout_height="wrap_content" | ||
63 | + android:background="@drawable/photo"/> | ||
64 | + </LinearLayout> | ||
65 | + </LinearLayout> | ||
66 | + | ||
67 | +</LinearLayout> |