作者 朱振飞

add

... ... @@ -81,7 +81,8 @@ public class Jxt_ListAdapter extends BaseMultiItemQuickAdapter<JxtAllListEntity.
TextView date_tv = helper.itemView.findViewById(R.id.date_tv);
TextView state_tv = helper.itemView.findViewById(R.id.state_tv);
TextView gray_tv = helper.itemView.findViewById(R.id.gray_tv);
gray_tv.setText(item.getView_num()+ "人");
TextView state_text = helper.itemView.findViewById(R.id.state_text);
gray_tv.setText(item.getView_num() + "人");
type_jl_tv.setText("接龙");
class_tv.setText(item.getClass_name());
if (item.getTeacher_name() != null) {
... ... @@ -95,6 +96,15 @@ public class Jxt_ListAdapter extends BaseMultiItemQuickAdapter<JxtAllListEntity.
} else if (item.getIs_online() == 0) {
state_tv.setText("已查看");
}
if (item.getStatus() == 1) {
state_text.setText("进行中");
state_text.setTextColor(Color.parseColor("#FFAB13"));
state_text.setBackgroundResource(R.drawable.yellow_shape_text);
} else {
state_text.setText("已结束");
state_text.setTextColor(Color.parseColor("#8C9198"));
state_text.setBackgroundResource(R.drawable.gray_shape_text);
}
}
private void initDiaoCha(BaseViewHolder helper, JxtAllListEntity.DataBeanX.DataBean item) {
... ... @@ -253,8 +263,8 @@ public class Jxt_ListAdapter extends BaseMultiItemQuickAdapter<JxtAllListEntity.
class_tv.setText(item.getClass_name());
teacher_tv.setText(item.getTeacher_name());
date_tv.setText(item.getDate());
yellow_tv.setText(item.getView_num()+"");
gray_tv.setText("/"+item.getTotal_num());
yellow_tv.setText(item.getView_num() + "");
gray_tv.setText("/" + item.getTotal_num());
state_text.setVisibility(View.GONE);
if (item.getIs_author() == 1) {//1-自己发的 0-别人发的
massage_num.setVisibility(View.GONE);
... ... @@ -272,10 +282,10 @@ public class Jxt_ListAdapter extends BaseMultiItemQuickAdapter<JxtAllListEntity.
} else {
ck_lin.setVisibility(View.GONE);
}
if (Config.IDENTITY==1){
state_text.setText(item.getStatus_text());
}else {
if (item.getIs_online() ==0){
if (Config.IDENTITY == 1) {
state_text.setText(item.getStatus_text());
} else {
if (item.getIs_online() == 0) {
state_tv.setText("已查看");
} else {
state_tv.setText("已提交");
... ...
package com.yinhebairong.clasmanage.entity;
import java.io.Serializable;
import java.util.List;
public class JlxpEntity {
public class JlxpEntity implements Serializable {
/**
... ... @@ -49,7 +50,7 @@ public class JlxpEntity {
this.data = data;
}
public static class DataBean {
public static class DataBean implements Serializable{
/**
* id : 50
* teacher_id : 36
... ... @@ -214,7 +215,7 @@ public class JlxpEntity {
this.list = list;
}
public static class ListBean {
public static class ListBean implements Serializable{
/**
* id : 27
* create_time : 10秒前
... ...
... ... @@ -166,6 +166,78 @@ public class JxtJlEntity {
private String parent_name;
private String student_name;
public int getIs_author() {
return is_author;
}
public void setIs_author(int is_author) {
this.is_author = is_author;
}
public int getDetail_id() {
return detail_id;
}
public void setDetail_id(int detail_id) {
this.detail_id = detail_id;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public int getRead_time() {
return read_time;
}
public void setRead_time(int read_time) {
this.read_time = read_time;
}
public String getStatus_text() {
return status_text;
}
public void setStatus_text(String status_text) {
this.status_text = status_text;
}
public int getIs_read() {
return is_read;
}
public void setIs_read(int is_read) {
this.is_read = is_read;
}
public int getItemType() {
return itemType;
}
public void setItemType(int itemType) {
this.itemType = itemType;
}
public String getParent_name() {
return parent_name;
}
public void setParent_name(String parent_name) {
this.parent_name = parent_name;
}
public String getStudent_name() {
return student_name;
}
public void setStudent_name(String student_name) {
this.student_name = student_name;
}
public int getType() {
return type;
}
... ...
... ... @@ -27,6 +27,7 @@ import com.yinhebairong.clasmanage.ui.fragment.MineFragment_per;
import com.yinhebairong.clasmanage.ui.fragment.StuEvaFragment;
import com.yinhebairong.clasmanage.ui.fragment.StuEvaFragment_per;
import com.yinhebairong.clasmanage.utils.SharedPreferenceUtil;
import com.yinhebairong.clasmanage.view.DebugLog;
import com.yinhebairong.clasmanage.widget.OptimizeViewpager;
import java.util.ArrayList;
... ... @@ -89,6 +90,7 @@ public class MainActivity extends BaseActivity {
@Override
public void onPageSelected(int position) {
super.onPageSelected(position);
DebugLog.e("pager==="+position);
switch (position) {
case 0:
mainGroup.check(R.id.main_rad1);
... ...
package com.yinhebairong.clasmanage.ui.jxt.activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
... ... @@ -44,6 +45,8 @@ import com.yinhebairong.clasmanage.m.M;
import com.yinhebairong.clasmanage.ui.jxt.activity.Bjwj.BjwjActivity2;
import com.yinhebairong.clasmanage.ui.jxt.activity.HD.Hdxq_Activity;
import com.yinhebairong.clasmanage.ui.jxt.fragment.Hd.Hd_Rv_Fragment;
import com.yinhebairong.clasmanage.ui.jxt.fragment.Jl.FbxqActivity;
import com.yinhebairong.clasmanage.ui.jxt.fragment.Jl_Rv_Fragment;
import com.yinhebairong.clasmanage.ui.my.view.PromptDialog;
import com.yinhebairong.clasmanage.utils.KeyBoardUtils;
import com.yinhebairong.clasmanage.utils.SharedPreferenceUtil;
... ... @@ -85,6 +88,8 @@ public class JlxqActivity extends BaseActivity {
TextView jlLsName;
@BindView(R.id.jl_bj)
TextView jlBj;
@BindView(R.id.tv_status)
TextView tv_status;
@BindView(R.id.jl_time)
TextView jlTime;
@BindView(R.id.jlxq_img)
... ... @@ -128,17 +133,16 @@ public class JlxqActivity extends BaseActivity {
@BindView(R.id.rl_my)
RelativeLayout rl_my;
private int id;//我参与的接龙的id
private List<JlxpEntity.DataBean.ListBean> mList = new ArrayList<>();
private JlxpEntity mEntity=null;
@Override
protected void initData() {
includeName.setText("接龙详情");
Bundle extras = getIntent().getExtras();
jlId = extras.getString("JlId");
if(Config.IDENTITY==1){
//家长或者非作者要隐藏
if(Config.IDENTITY==1||getIntent().getIntExtra("is_author",0)==0){
tvJlxqCz.setVisibility(View.GONE);
}
... ... @@ -200,6 +204,13 @@ public class JlxqActivity extends BaseActivity {
public void onNext(JlxpEntity jlxpEntity) {
WaitDialog.dismiss();
if (jlxpEntity.getCode() == M.success) {
mEntity=jlxpEntity;
if(jlxpEntity.getData().getStatus()==1){//进行中
tv_status.setText("进行中");
}else{
tv_status.setText("已结束");
}
titleTv.setText(jlxpEntity.getData().getTitle());
jlLsName.setText(jlxpEntity.getData().getTeacher_name());
jlBj.setText(jlxpEntity.getData().getClass_name());
... ... @@ -248,7 +259,6 @@ public class JlxqActivity extends BaseActivity {
jlglData.setText(mList.get(i).getCreate_time());
jlxqContent.setText(mList.get(i).getContent());
jlxqTv1.setText(String.valueOf(i + 1));
this.id = mList.get(i).getId();
fbxqBut.setText("修改接龙");
break;
}
... ... @@ -285,7 +295,32 @@ public class JlxqActivity extends BaseActivity {
mPromptDialog.show();
}
private PromptDialog mPromptDialog2;
public void showNoticeDialog2() {
if (mPromptDialog2 == null) {
mPromptDialog2 = new PromptDialog(JlxqActivity.this, R.style.PromptDialog);
mPromptDialog2.setTitleText("提示");
mPromptDialog2.setContentText("确定要撤回该条接龙消息吗?");
mPromptDialog2.setPositiveListener("确定", new PromptDialog.OnPositiveListener() {
@Override
public void onClick(PromptDialog dialog) {
dialog.dismiss();
chehui();
}
});
mPromptDialog2.setNegativeListener("取消",
new PromptDialog.OnNegativeListener() {
@Override
public void onClick(PromptDialog dialog) {
dialog.dismiss();
}
});
}
mPromptDialog2.show();
}
/**
* 撤回接龙
*/
... ... @@ -303,7 +338,8 @@ public class JlxqActivity extends BaseActivity {
public void onNext(ChxqEntity chxqEntity) {
if (chxqEntity.getCode() == M.success) {
M.toast(activity, "删除成功");
getDetail();
Jl_Rv_Fragment.DO_REFRESH=true;
finish();
} else {
M.toast(activity, "删除失败");
}
... ... @@ -380,13 +416,20 @@ public class JlxqActivity extends BaseActivity {
jl_zf.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent();
intent.setClass(JlxqActivity.this, FbxqActivity.class);
if(null!=mEntity){
intent.putExtra("info",mEntity);
}
startActivity(intent);
popupWindow.dismiss();
}
});
jl_ch.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
delSolitaire();
showNoticeDialog2();
popupWindow.dismiss();
}
});
jl_qx.setOnClickListener(new View.OnClickListener() {
... ... @@ -404,37 +447,6 @@ public class JlxqActivity extends BaseActivity {
getWindow().setAttributes(lp);
}
//删除
private void getDelete(String jlId) {
View inflate = LayoutInflater.from(activity).inflate(R.layout.pop_jl_del, null);
TextView cancle = inflate.findViewById(R.id.pop_del_jl_cancle);
TextView sure = inflate.findViewById(R.id.pop_del_jl_sure);
SupportPopupWindow popupWindow = new SupportPopupWindow(inflate, ViewGroup.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
popupWindow.setOutsideTouchable(true);
popupWindow.setTouchable(true);
popupWindow.setFocusable(true);
popupWindow.setAnimationStyle(R.style.AnimTopMiddle);
popupWindow.setBackgroundDrawable(getResources().getDrawable(R.color.color_tm));
popupWindow.showAsDropDown(inflate);
//取消
cancle.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
popupWindow.dismiss();
}
});
//确定
sure.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
chehui();
popupWindow.dismiss();
}
});
}
@Override
protected void setEvent() {
... ...
... ... @@ -56,6 +56,7 @@ import com.yinhebairong.clasmanage.ui.jxt.fragment.Tz.Tz_Rv_Fragment;
import com.yinhebairong.clasmanage.ui.jxt.fragment.Tz.TzimgAdapter;
import com.yinhebairong.clasmanage.ui.my.view.PromptDialog;
import com.yinhebairong.clasmanage.view.DebugLog;
import com.yinhebairong.clasmanage.widget.CircleImageView;
import java.io.IOException;
import java.lang.ref.WeakReference;
... ... @@ -671,7 +672,7 @@ public class TzxqActivity extends BaseActivity {
@Override
protected void convert(BaseViewHolder helper, TzxqEntity.DataBean.ListBean.ReViewBean item) {
ImageView ck_img = helper.itemView.findViewById(R.id.header_img);
CircleImageView ck_img = helper.itemView.findViewById(R.id.header_img);
TextView ck_name = helper.itemView.findViewById(R.id.father_name);
TextView ck_time = helper.itemView.findViewById(R.id.dianpin_tv);
... ...
... ... @@ -26,6 +26,7 @@ import com.yinhebairong.clasmanage.network.ApiService;
import com.yinhebairong.clasmanage.network.LoginStore;
import com.yinhebairong.clasmanage.ui.jxt.activity.CkhdRead_Activity;
import com.yinhebairong.clasmanage.ui.jxt.activity.HD.Hdxq_Activity;
import com.yinhebairong.clasmanage.ui.jxt.activity.JlxqActivity;
import com.yinhebairong.clasmanage.ui.jxt.activity.TZ.Tjtz_Activity;
import com.yinhebairong.clasmanage.ui.jxt.activity.TZ.TzxqActivity;
import com.yinhebairong.clasmanage.ui.jxt.activity.Zy.Tjxq_Activity;
... ... @@ -233,7 +234,12 @@ public class All_Fragment extends BaseFragment {
break;
case 5:
break;
case 6:
case 6://接龙
List<JxtAllListEntity.DataBeanX.DataBean> dataBeans6 = adapter.getData();
Intent jlintent = new Intent(getActivity(), JlxqActivity.class);
jlintent.putExtra("JlId", dataBeans6.get(position).getId() + "");
jlintent.putExtra("is_author", dataBeans6.get(position).getIs_author());
startActivity(jlintent);
break;
case 7:
break;
... ... @@ -271,7 +277,12 @@ public class All_Fragment extends BaseFragment {
break;
case 5:
break;
case 6:
case 6://接龙
List<JxtAllListEntity.DataBeanX.DataBean> dataBeans6 = adapter.getData();
Intent jlintent = new Intent(getActivity(), JlxqActivity.class);
jlintent.putExtra("JlId", dataBeans6.get(position).getId() + "");
jlintent.putExtra("is_author", dataBeans6.get(position).getIs_author());
startActivity(jlintent);
break;
case 7:
break;
... ... @@ -360,7 +371,12 @@ public class All_Fragment extends BaseFragment {
break;
case 5:
break;
case 6:
case 6://接龙
List<JxtAllListEntity.DataBeanX.DataBean> dataBeans6 = adapter.getData();
Intent jlintent = new Intent(getActivity(), JlxqActivity.class);
jlintent.putExtra("JlId", dataBeans6.get(position).getId() + "");
jlintent.putExtra("is_author", dataBeans6.get(position).getIs_author());
startActivity(jlintent);
break;
case 7:
break;
... ...
... ... @@ -26,8 +26,11 @@ import com.yinhebairong.clasmanage.base.instant.TopNavigationBar;
import com.yinhebairong.clasmanage.base.instant.slideslip.SlideLip;
import com.yinhebairong.clasmanage.bean.AddHdBean;
import com.yinhebairong.clasmanage.bean.TzUserDate;
import com.yinhebairong.clasmanage.entity.JlxpEntity;
import com.yinhebairong.clasmanage.entity.SolitaireEntity;
import com.yinhebairong.clasmanage.m.M;
import com.yinhebairong.clasmanage.ui.jxt.fragment.Jl_Rv_Fragment;
import com.yinhebairong.clasmanage.utils.KeyBoardUtils;
import java.util.ArrayList;
import java.util.List;
... ... @@ -74,6 +77,8 @@ public class FbxqActivity extends BaseActivity {
//接收班级
private HdbjAdatper mHdbjAdatper;
private List<AddHdBean.DataBean> mList=new ArrayList<>();
private JlxpEntity mEntity=null;
@Override
protected void initData() {
includeName.setText("发布接龙");
... ... @@ -91,6 +96,19 @@ public class FbxqActivity extends BaseActivity {
rv_banji.setAdapter(mHdbjAdatper);
rv_banji.setLayoutManager(linearLayoutManager);
if(getIntent().getSerializableExtra("info")!=null){
mEntity=(JlxpEntity)getIntent().getSerializableExtra("info");
setData();
}
}
/**
* 转发设置数据
*/
private void setData() {
addFbJl2.setText(mEntity.getData().getTitle());
addFbXq.setText(mEntity.getData().getContent());
}
List<TzUserDate.DataBean> dataBeans;
... ... @@ -160,6 +178,7 @@ public class FbxqActivity extends BaseActivity {
classSelect1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
hintKbTwo();
if (getClassListEntity != null){
Intent intent = new Intent();
intent.putExtra("AllDate", getClassListEntity);
... ... @@ -178,9 +197,11 @@ public class FbxqActivity extends BaseActivity {
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.include_back:
hintKbTwo();
finish();
break;
case R.id.fbxq_but:
hintKbTwo();
getData();
break;
}
... ... @@ -201,6 +222,7 @@ public class FbxqActivity extends BaseActivity {
@Override
public void onNext(SolitaireEntity solitaireEntity) {
if (solitaireEntity.getCode()==M.success){
Jl_Rv_Fragment.DO_REFRESH=true;
finish();
}
Toast.makeText(ctx, ""+solitaireEntity.getMsg(), Toast.LENGTH_SHORT).show();
... ... @@ -219,5 +241,8 @@ public class FbxqActivity extends BaseActivity {
}
// 隐藏输入键盘
public void hintKbTwo() {
KeyBoardUtils.closeKeybord(addFbJl2, this);
}
}
... ...
... ... @@ -31,6 +31,7 @@ import com.yinhebairong.clasmanage.utils.SharedPreferenceUtil;
import com.yinhebairong.clasmanage.view.DebugLog;
import com.yinhebairong.clasmanage.view.pickerwheelview.builder.TimePickerBuilder;
import com.yinhebairong.clasmanage.view.pickerwheelview.listener.OnTimeSelectListener;
import com.yinhebairong.clasmanage.view.pickerwheelview.utils.MyDataFormatUtil;
import com.yinhebairong.clasmanage.view.pickerwheelview.view.TimePickerView;
import java.text.SimpleDateFormat;
... ... @@ -62,7 +63,8 @@ public class Jl_Rv_Fragment extends BaseFragment {
TextView tv_time;
@BindView(R.id.my_sw)
SwipeRefreshLayout my_sw;
@BindView(R.id.tv_week)
TextView tv_week;
Jxt_Jl_Adapter jxt_jl_adapter;
private TimePickerView mTimePicker3;//三级时间 年月日
... ... @@ -76,20 +78,13 @@ public class Jl_Rv_Fragment extends BaseFragment {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA);
String dateString = simpleDateFormat.format(calendar.getTime());
tv_time.setText(dateString);
tv_week.setText(MyDataFormatUtil.dateToWeek(dateString));
mTimePicker3 = new TimePickerBuilder(getActivity(), new OnTimeSelectListener() {
@Override
public void onTimeSelect(String date, View v) {
tv_time.setText(date);
Calendar calendar = Calendar.getInstance();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA);
String dateString = simpleDateFormat.format(calendar.getTime());
page = 1;
if (dateString.equals(date)) {//今天
getDate(6, "");
} else {
getDate(6, date);
}
tv_week.setText(MyDataFormatUtil.dateToWeek(date));
setParam(1);
}
}).setType(new boolean[]{true, true, true, false, false, false}).isDialog(false).setFormat("yyyy-MM-dd").setSelectChangeListener().
setTextXOffset(40, 0, -40, 0, 0, 0).build();
... ... @@ -112,11 +107,12 @@ public class Jl_Rv_Fragment extends BaseFragment {
List<JxtJlEntity.DataBeanX.DataBean> dataBeans = adapter.getData();
Intent jlintent = new Intent(getActivity(), JlxqActivity.class);
jlintent.putExtra("JlId", dataBeans.get(position).getId() + "");
jlintent.putExtra("is_author", dataBeans.get(position).getIs_author());
startActivity(jlintent);
jxt_jl_adapter.notifyDataSetChanged();
}
});
setParam(1);
}
@OnClick({R.id.jxt_matter_li})
... ... @@ -166,6 +162,7 @@ public class Jl_Rv_Fragment extends BaseFragment {
public void onNext(JxtJlEntity jxtJlEntity) {
if (jxtJlEntity.getCode() == M.success) {
if (page == 1 || page == 0) {
dataRv.scrollToPosition(0);
mList.clear();
}
mList.addAll(jxtJlEntity.getData().getData());
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#EBEBEB" />
<corners android:topLeftRadius="0dp" android:topRightRadius="16dp" android:bottomLeftRadius="16dp" android:bottomRightRadius="16dp" />
</shape>
\ No newline at end of file
... ...
... ... @@ -11,7 +11,7 @@
<shape android:shape="rectangle">
<corners android:radius="50dp"/>
<solid android:color="#01000000" />
<padding android:bottom="4px" android:left="4px" android:right="4px" android:top="4px" />
<padding android:bottom="4px" android:left="2px" android:right="3px" android:top="1px" />
</shape>
</item>
<item>
... ...
... ... @@ -128,10 +128,10 @@
android:id="@+id/tv_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/dp_5"
android:background="@drawable/yellow_shape_text"
android:padding="@dimen/dp_1"
android:textColor="#FFAB13"
android:layout_marginRight="@dimen/dp_5"
android:textSize="@dimen/sp_12" />
<TextView
... ... @@ -164,49 +164,55 @@
android:layout_marginTop="@dimen/dp_8"
android:visibility="gone">
<LinearLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_9"
android:layout_marginRight="@dimen/dp_16"
android:background="@drawable/shape_solid_4_fff"
android:orientation="vertical">
android:background="@drawable/shape_solid_4_fff">
<TextView
android:id="@+id/jlxq_tv1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_5"
android:text="1"
android:textColor="#3D444D"
android:textSize="@dimen/dp_16"></TextView>
<LinearLayout
android:id="@+id/jlxq_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/jlxq_tv1"
android:orientation="horizontal"
android:padding="@dimen/dp_16">
<TextView
android:id="@+id/jlxq_tv1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
android:layout_marginRight="@dimen/dp_5"
android:textColor="#3D444D"
android:textSize="@dimen/dp_16"></TextView>
android:paddingTop="@dimen/dp_16"
android:paddingRight="@dimen/dp_16">
<com.yinhebairong.clasmanage.widget.CircleImageView
android:id="@+id/jlxq_photo"
android:layout_width="@dimen/dp_25"
android:layout_height="@dimen/dp_25"
android:layout_width="@dimen/dp_30"
android:layout_height="@dimen/dp_30"
android:src="@mipmap/img_father" />
<TextView
android:id="@+id/jlxq_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/dp_8"
android:layout_weight="1"
android:text="龙杰"></TextView>
android:textColor="#3D444D"
android:text="龙杰"
android:textSize="16sp"></TextView>
<TextView
android:id="@+id/jlgl_data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="3小时前" />
</LinearLayout>
... ... @@ -214,19 +220,16 @@
<TextView
android:id="@+id/jlxq_content"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_34"
android:layout_height="wrap_content"
android:layout_below="@id/jlxq_item"
android:gravity="center_vertical"
android:paddingLeft="@dimen/dp_16"
android:paddingRight="@dimen/dp_16"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_marginBottom="@dimen/dp_16"
android:background="@drawable/dot_gray"
android:ellipsize="end"
android:singleLine="true"
android:layout_toRightOf="@id/jlxq_tv1"
android:background="@drawable/dot_gray3"
android:gravity="center_vertical"
android:padding="@dimen/dp_10"
android:textSize="@dimen/dp_14" />
</LinearLayout>
</RelativeLayout>
<TextView
android:id="@+id/massage_sc"
... ... @@ -243,8 +246,8 @@
<RelativeLayout
android:id="@+id/rl_tj2"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/dp_10"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10">
<android.support.v7.widget.RecyclerView
android:id="@+id/jlxq_rv2"
... ...
... ... @@ -48,7 +48,7 @@
android:background="@null"
android:hint="请输入账号"
android:maxLines="1"
android:text="13888680699"
android:text="13769183554"
android:textColor="@color/color_bdc4ce"
android:textSize="@dimen/sp_16" />
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_44"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/include_name"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="家校通"
android:textColor="@color/color_06121e"
android:textSize="@dimen/sp_16"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_44"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_42"
android:orientation="horizontal">
<TextView
android:id="@+id/include_name"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="家校通"
android:textColor="@color/color_06121e"
android:textSize="@dimen/sp_16"
android:textStyle="bold" />
</LinearLayout>
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
app:tabGravity="fill"
app:tabMaxWidth="0dp"
app:tabMode="scrollable"
app:tabIndicatorColor="#FFAB13"
app:tabSelectedTextColor="#06121E"
app:tabTextColor="#8C9198"
app:tabIndicatorFullWidth="false"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_42"
android:orientation="horizontal">
</android.support.design.widget.TabLayout>
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:tabGravity="fill"
app:tabIndicatorColor="#FFAB13"
app:tabIndicatorFullWidth="false"
app:tabMaxWidth="0dp"
app:tabMode="scrollable"
app:tabSelectedTextColor="#06121E"
app:tabTextColor="#8C9198">
<LinearLayout
android:id="@+id/showTypePop"
android:layout_width="@dimen/dp_48"
android:layout_height="match_parent"
android:gravity="center">
</android.support.design.widget.TabLayout>
<LinearLayout
android:id="@+id/showTypePop"
android:layout_width="@dimen/dp_48"
android:layout_height="match_parent"
android:gravity="center">
<ImageView
android:layout_width="@dimen/dp_12"
android:layout_height="@dimen/dp_6"
android:layout_marginRight="@dimen/dp_5"
android:src="@mipmap/down" />
<ImageView
android:layout_width="@dimen/dp_12"
android:layout_height="@dimen/dp_6"
android:layout_marginRight="@dimen/dp_5"
android:src="@mipmap/down" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"
android:background="@color/color_e3e3e3"
android:id="@+id/line4"
/>
<View
android:id="@+id/line4"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"
android:background="@color/color_e3e3e3" />
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</android.support.v4.view.ViewPager>
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"></android.support.v4.view.ViewPager>
</LinearLayout>
<ImageView
<LinearLayout
android:id="@+id/stu_eval_tanchuang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/jia_icon"
android:visibility="gone"
android:id="@+id/jia_imgButton"
android:layout_marginBottom="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_gravity="right|bottom"
android:layout_margin="@dimen/dp_15"
android:background="@drawable/yy_grey"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"/>
android:layout_marginRight="@dimen/dp_16"
android:layout_marginBottom="@dimen/dp_16"
android:src="@mipmap/jia_icon"
android:visibility="visible"
android:gravity="center">
<ImageView
android:id="@+id/jia_imgButton"
android:layout_width="@dimen/dp_38"
android:layout_height="@dimen/dp_38"
android:layout_margin="@dimen/dp_1"
android:background="@mipmap/jia_icon"
android:scaleType="fitXY"
/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
... ...
... ... @@ -31,7 +31,15 @@
android:textColor="@color/color_3d444d"
android:textSize="@dimen/sp_15"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_week"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_8"
android:text=""
android:textColor="@color/color_3d444d"
android:textSize="@dimen/sp_15"
android:textStyle="bold" />
<View
android:layout_width="@dimen/dp_0"
android:layout_height="wrap_content"
... ...
... ... @@ -11,7 +11,7 @@
android:gravity="center_vertical"
android:layout_height="@dimen/dp_68">
<ImageView
<com.yinhebairong.clasmanage.widget.CircleImageView
android:id="@+id/header_img"
android:layout_width="@dimen/dp_44"
android:layout_height="@dimen/dp_44"
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="#F7F7F7"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:background="#F7F7F7"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_tj2"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:background="@drawable/shape_solid_4_fff"
android:paddingBottom="@dimen/dp_10">
<TextView
android:id="@+id/jlxq_tv1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_18"
android:layout_marginTop="@dimen/dp_20"
android:text="1"
android:textColor="#3D444D"
android:textSize="@dimen/dp_16"></TextView>
<LinearLayout
android:id="@+id/jlxq_item"
android:background="@drawable/shape_solid_4_fff"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_100"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/jlxq_tv1"
android:orientation="horizontal">
<TextView
android:text="1"
android:id="@+id/jlxq_tv1"
android:textColor="#3D444D"
android:textSize="@dimen/dp_16"
android:layout_marginLeft="@dimen/dp_18"
android:layout_marginTop="@dimen/dp_20"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<com.yinhebairong.clasmanage.widget.CircleImageView
android:id="@+id/jlxq_photo"
android:layout_width="@dimen/dp_30"
android:layout_height="@dimen/dp_30"
android:layout_marginLeft="@dimen/dp_5"
android:layout_marginTop="@dimen/dp_18"
android:layout_marginLeft="@dimen/dp_15"
android:layout_width="@dimen/dp_25"
android:layout_height="@dimen/dp_25"
android:src="@mipmap/img_father"
/>
android:src="@mipmap/img_father" />
<TextView
android:id="@+id/jlxq_name"
android:text="龙杰"
android:layout_marginTop="@dimen/dp_20"
android:layout_marginLeft="@dimen/dp_8"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/dp_8"
android:layout_marginTop="@dimen/dp_9"
android:layout_weight="1"
android:layout_height="wrap_content">
</TextView>
android:text="龙杰"
android:textColor="#3D444D"
android:textSize="16sp"></TextView>
<TextView
android:id="@+id/jlgl_data"
android:layout_width="wrap_content"
android:layout_marginRight="@dimen/dp_16"
android:layout_height="wrap_content"
android:text="3小时前"
android:layout_marginTop="@dimen/dp_20" />
android:layout_gravity="center_vertical"
android:layout_marginTop="@dimen/dp_9"
android:layout_marginRight="@dimen/dp_16"
android:text="3小时前" />
</LinearLayout>
<LinearLayout
android:id="@+id/show_but"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_32"
android:layout_marginLeft="@dimen/dp_32"
android:layout_marginTop="@dimen/dp_60"
android:layout_marginRight="@dimen/dp_32"
android:background="@drawable/dot_gray">
android:layout_height="wrap_content"
android:layout_below="@id/jlxq_item"
android:layout_marginLeft="@dimen/dp_5"
android:layout_marginRight="@dimen/dp_16"
android:layout_toRightOf="@id/jlxq_tv1"
android:background="@drawable/dot_gray3">
<LinearLayout
<TextView
android:id="@+id/jlxq_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:id="@+id/jlxq_content"
android:text="李书父亲,张华"
android:textSize="@dimen/dp_14"
android:layout_marginLeft="@dimen/dp_12"
android:layout_marginTop="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_marginLeft="@dimen/dp_12"
android:padding="@dimen/dp_10"
android:gravity="center_vertical"
android:text="李书父亲,张华"
android:textSize="@dimen/dp_14" />
</LinearLayout>
</LinearLayout>
<!-- <TextView-->
<!-- android:id="@+id/massage_sc"-->
<!-- android:layout_width="@dimen/dp_18"-->
<!-- android:layout_height="@dimen/dp_18"-->
<!-- android:gravity="center"-->
<!-- android:textColor="#FFFFFF"-->
<!-- android:text="&#45;&#45;"-->
<!-- android:layout_alignParentRight="true"-->
<!-- android:layout_marginRight="@dimen/dp_10"-->
<!-- android:background="@drawable/red_cricle"/>-->
<!-- <TextView-->
<!-- android:id="@+id/massage_sc"-->
<!-- android:layout_width="@dimen/dp_18"-->
<!-- android:layout_height="@dimen/dp_18"-->
<!-- android:gravity="center"-->
<!-- android:textColor="#FFFFFF"-->
<!-- android:text="&#45;&#45;"-->
<!-- android:layout_alignParentRight="true"-->
<!-- android:layout_marginRight="@dimen/dp_10"-->
<!-- android:background="@drawable/red_cricle"/>-->
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
... ...