作者 guojianfu

新頁面提交

正在显示 52 个修改的文件 包含 1248 行增加73 行删除
... ... @@ -32,6 +32,7 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
... ...
... ... @@ -12,12 +12,10 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission
android:name="android.permission.INSTALL_PACKAGES"
tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission
android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
tools:ignore="ProtectedPermissions" />
... ... @@ -32,8 +30,15 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<activity android:name=".ui.jxt.activity.Tjxq_Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<!--android7.0之后存储获取uri配置-->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.jxt.activity.Xbff_Activity" />
<activity android:name=".ui.jxt.activity.DbsxActivity" /> <!-- android7.0之后存储获取uri配置 -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.yinhebairong.clasmanage.FileProvider"
... ... @@ -42,129 +47,90 @@
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
<!--Android9.0-->
</provider> <!-- Android9.0 -->
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<!--适配-->
android:required="false" /> <!-- 适配 -->
<meta-data
android:name="design_width_in_dp"
android:value="360" />
<meta-data
android:name="design_height_in_dp"
android:value="640" />
<!-- 登录 -->
android:value="640" /> <!-- 登录 -->
<activity
android:name=".ui.login.LoginActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- 主界面 -->
</activity> <!-- 主界面 -->
<activity
android:name=".ui.MainActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden"></activity>
<!-- 学生评价分析 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 学生评价分析 -->
<activity
android:name=".ui.xspj.PjfxActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 点评多人 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 点评多人 -->
<activity
android:name=".ui.xspj.activity.TjxzActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 点评小组 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 点评小组 -->
<activity
android:name=".ui.xspj.activity.DpdrActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 选择身份 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 选择身份 -->
<activity
android:name=".ui.login.ChoiStaActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 个人点评 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 个人点评 -->
<activity
android:name=".ui.xspj.PjfxActivity_per"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 课程表 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 课程表 -->
<activity
android:name=".ui.main.activity.KcbActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 我的监考 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 我的监考 -->
<activity
android:name=".ui.main.activity.WdjkActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 编辑小组 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 编辑小组 -->
<activity
android:name=".ui.xspj.activity.BjxzAcitivty"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 作品管理 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 作品管理 -->
<activity
android:name=".ui.main.activity.ZpglActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 添加作品 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 添加作品 -->
<activity
android:name=".ui.main.activity.zpgl.AddZpActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" />
<!-- 图片选择器 -->
android:windowSoftInputMode="adjustPan|stateHidden" /> <!-- 图片选择器 -->
<activity
android:name="com.donkingliang.imageselector.ImageSelectorActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name="com.donkingliang.imageselector.PreviewActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name="com.donkingliang.imageselector.ClipImageActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
</application>
</manifest>
\ No newline at end of file
... ...
package com.yinhebairong.clasmanage.adapter.imageselect;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.bean.JxtDate;
import java.util.List;
public class JxtDateAdapter extends BaseQuickAdapter<JxtDate, BaseViewHolder> {
public JxtDateAdapter(int layoutResId, @Nullable List<JxtDate> data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, JxtDate item) {
RecyclerView content_rv = helper.itemView.findViewById(R.id.content_rv);
TextView date_tv = helper.itemView.findViewById(R.id.date_tv);
}
}
... ...
package com.yinhebairong.clasmanage.bean;
public class JxtDate {
}
... ...
package com.yinhebairong.clasmanage.ui.fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.PopupWindow;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseFragment;
import com.yinhebairong.clasmanage.base.instant.Layout;
import com.yinhebairong.clasmanage.ui.MainActivity;
import butterknife.BindView;
@Layout(R.layout.frag_jxt)
public class JxtFragment extends BaseFragment {
@BindView(R.id.include_name)
TextView includeName;
@BindView(R.id.jxt_tab_rv)
RecyclerView jxtTabRv;
@BindView(R.id.line4)
View line4;
@Override
protected void initView(View root) {
}
private void showDrop() {
View view = LayoutInflater.from(getActivity()).inflate(R.layout.pop_time_choose, null);
final PopupWindow popupWindow = new PopupWindow(view, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT - line4.getBottom());
popupWindow.setOutsideTouchable(true);
popupWindow.setTouchable(true);
popupWindow.setFocusable(true);
popupWindow.setBackgroundDrawable(getResources().getDrawable(R.color.color_tm));
popupWindow.setAnimationStyle(R.style.AnimTopMiddle);
popupWindow.showAsDropDown(line4);
}
@Override
protected void initListener() {
... ...
package com.yinhebairong.clasmanage.ui.jxt.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Color;
import android.os.Bundle;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseActivity;
import com.yinhebairong.clasmanage.base.instant.Layout;
import com.yinhebairong.clasmanage.base.instant.TopNavigationBar;
import com.yinhebairong.clasmanage.base.instant.slideslip.SlideLip;
@SlideLip(slidelip = false) // 侧滑返回上一页 , 默认不开启 \
@TopNavigationBar(color = Color.TRANSPARENT, setBarBiack = 2) // 状态栏颜色 , 状态栏样式
@Layout(R.layout.activity_dbsx)
public class DbsxActivity extends BaseActivity {
@Override
protected void initData() {
}
@Override
protected void setEvent() {
}
}
... ...
package com.yinhebairong.clasmanage.ui.jxt.activity;
import android.graphics.Color;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseActivity;
import com.yinhebairong.clasmanage.base.instant.Layout;
import com.yinhebairong.clasmanage.base.instant.TopNavigationBar;
import com.yinhebairong.clasmanage.base.instant.slideslip.SlideLip;
@SlideLip(slidelip = false) // 侧滑返回上一页 , 默认不开启 \
@TopNavigationBar(color = Color.TRANSPARENT, setBarBiack = 2) // 状态栏颜色 , 状态栏样式
@Layout(R.layout.activity_tjxq)
public class Tjxq_Activity extends BaseActivity {
@Override
protected void initData() {
}
@Override
protected void setEvent() {
}
}
... ...
package com.yinhebairong.clasmanage.ui.jxt.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Color;
import android.os.Bundle;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseActivity;
import com.yinhebairong.clasmanage.base.instant.Layout;
import com.yinhebairong.clasmanage.base.instant.TopNavigationBar;
import com.yinhebairong.clasmanage.base.instant.slideslip.SlideLip;
@SlideLip(slidelip = false) // 侧滑返回上一页 , 默认不开启 \
@TopNavigationBar(color = Color.TRANSPARENT, setBarBiack = 2) // 状态栏颜色 , 状态栏样式
@Layout(R.layout.activity_xbff)
public class Xbff_Activity extends BaseActivity {
@Override
protected void initData() {
}
@Override
protected void setEvent() {
}
}
... ...
package com.yinhebairong.clasmanage.ui.jxt.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import com.yinhebairong.clasmanage.R;
import butterknife.BindView;
/**
* A simple {@link Fragment} subclass.
*/
public class Jxt_Rv_Fragment extends Fragment {
@BindView(R.id.jxt_matter_li)
LinearLayout jxtMatterLi;
@BindView(R.id.data_rv)
RecyclerView dataRv;
public Jxt_Rv_Fragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_jxt__rv, container, false);
}
}
... ...
package com.yinhebairong.clasmanage.ui.xspj.activity;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
... ... @@ -23,13 +20,11 @@ import com.yinhebairong.clasmanage.base.instant.TopNavigationBar;
import com.yinhebairong.clasmanage.base.instant.slideslip.SlideLip;
import com.yinhebairong.clasmanage.entity.TjxzListEntity;
import com.yinhebairong.clasmanage.m.M;
import com.yinhebairong.clasmanage.widget.CircleImageView;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
... ... @@ -78,7 +73,14 @@ public class TjxzActivity extends BaseActivity {
if (null != event && KeyEvent.KEYCODE_ENTER == event.getKeyCode()) {
switch (event.getAction()) {
case KeyEvent.ACTION_UP:
//做爱做的事情
//做爱做的事;
id.clear();
List<TjxzListEntity.DataBean> data = adapter.getData();
for (int i = 0; i <data.size() ; i++) {
if (data.get(i).isIschecked()){
id.add(data.get(i).getId()+"");
}
}
arr.clear();
data(M.getEditTextString(stu));
return true;
... ... @@ -125,6 +127,15 @@ public class TjxzActivity extends BaseActivity {
Api().tjxz_list(Config.Token, Integer.valueOf(getIntent().getStringExtra(M.ClassId)), name, "").subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread())
.subscribe(data -> {
List<TjxzListEntity.DataBean> list = data.getData();
if (id.size()!=0){
for (int i = 0; i <list.size() ; i++) {
for (int j = 0; j <id.size() ; j++) {
if (id.get(j).equals(list.get(i).getId()+"")){
list.get(i).setIschecked(true);
}
}
}
}
arr.addAll(list);
adapter.notifyDataSetChanged();
});
... ...
package com.yinhebairong.clasmanage.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
public class CircularProgressBar extends View {
private int mDuration = 100;
private int mProgress = 30;
private Paint mPaint = new Paint();
private RectF mRectF = new RectF();
private int mBackgroundColor = Color.LTGRAY;
private int mPrimaryColor = Color.parseColor("#FFB054");
private float mStrokeWidth = 25F;
/**
* 进度条改变监听
*
* {@link #onChange( int duration, int progress, float rate)}
*/
public interface OnProgressChangeListener {
/**
* 进度改变事件,当进度条进度改变,就会调用该方法
* @param duration 总进度
* @param progress 当前进度
* @param rate 当前进度与总进度的商 即:rate = (float)progress / duration
*/
public void onChange( int duration, int progress, float rate);
}
private OnProgressChangeListener mOnChangeListener;
/**
* 设置进度条改变监听
* @param l
*/
public void setOnProgressChangeListener(OnProgressChangeListener l) {
mOnChangeListener = l;
}
public CircularProgressBar(Context context) {
super(context);
}
public CircularProgressBar(Context context, AttributeSet attrs) {
super(context, attrs);
}
/**
* 设置进度条的最大值, 该值要 大于 0
* @param max
*/
public void setMax( int max ) {
if( max < 0 ) {
max = 0;
}
mDuration = max;
}
/**
* 得到进度条的最大值
* @return
*/
public int getMax() {
return mDuration;
}
/**
* 设置进度条的当前的值
* @param progress
*/
public void setProgress( int progress ) {
if( progress > mDuration ) {
progress = mDuration;
}
mProgress = progress;
if( mOnChangeListener != null ) {
mOnChangeListener.onChange(mDuration, progress, getRateOfProgress());
}
invalidate();
}
/**
* 得到进度条当前的值
* @return
*/
public int getProgress() {
return mProgress;
}
/**
* 设置进度条背景的颜色
*/
public void setBackgroundColor( int color ) {
mBackgroundColor = color;
}
/**
* 设置进度条进度的颜色
*/
public void setPrimaryColor( int color ) {
mPrimaryColor = color;
}
/**
* 设置环形的宽度
* @param width
*/
public void setCircleWidth(float width) {
mStrokeWidth = width;
}
@Override
protected synchronized void onDraw(Canvas canvas) {
super.onDraw(canvas);
int halfWidth = getWidth() / 2;
int halfHeight = getHeight() /2;
int radius = halfWidth < halfHeight ? halfWidth : halfHeight;
float halfStrokeWidth = mStrokeWidth / 2;
// 设置画笔
mPaint.setColor(mBackgroundColor);
mPaint.setDither(true);
mPaint.setFlags(Paint.ANTI_ALIAS_FLAG);
mPaint.setAntiAlias(true);
mPaint.setStrokeWidth(mStrokeWidth);
mPaint.setStyle(Paint.Style.STROKE); //设置图形为空心
// 画背景
canvas.drawCircle(halfWidth, halfHeight, radius - halfStrokeWidth, mPaint);
// 画当前进度的圆环
mPaint.setColor(mPrimaryColor); // 改变画笔颜色
mRectF.top = halfHeight - radius + halfStrokeWidth;
mRectF.bottom = halfHeight + radius - halfStrokeWidth;
mRectF.left = halfWidth - radius + halfStrokeWidth;
mRectF.right = halfWidth + radius - halfStrokeWidth;
canvas.drawArc(mRectF, -90, getRateOfProgress() * 360, false, mPaint);
canvas.save();
}
/**
* 得到当前的进度的比率
* <p> 用进度条当前的值 与 进度条的最大值求商 </p>
* @return
*/
private float getRateOfProgress() {
return (float)mProgress / mDuration;
}
}
\ No newline at end of file
... ...
package com.yinhebairong.clasmanage.widget;
import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.Gravity;
import android.widget.FrameLayout;
import android.widget.TextView;
public class RateTextCircularProgressBar extends FrameLayout implements CircularProgressBar.OnProgressChangeListener {
private CircularProgressBar mCircularProgressBar;
private TextView mRateText;
public RateTextCircularProgressBar(Context context) {
super(context);
init();
}
public RateTextCircularProgressBar(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
private void init() {
mCircularProgressBar = new CircularProgressBar(getContext());
this.addView(mCircularProgressBar);
LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
lp.gravity = Gravity.CENTER;
mCircularProgressBar.setLayoutParams(lp);
mRateText = new TextView(getContext());
this.addView(mRateText);
mRateText.setLayoutParams(lp);
mRateText.setGravity(Gravity.CENTER);
mRateText.setTextColor(Color.BLACK);
mRateText.setTextSize(20);
mCircularProgressBar.setOnProgressChangeListener(this);
}
/**
* 设置最大值
*/
public void setMax( int max ) {
mCircularProgressBar.setMax(max);
}
/**
* 设置进度
* @param progress
*/
public void setProgress(int progress) {
mCircularProgressBar.setProgress(progress);
}
/**
* 得到 CircularProgressBar 对象,用来设置其他的一些属性
* @return
*/
public CircularProgressBar getCircularProgressBar() {
return mCircularProgressBar;
}
/**
* 设置中间进度百分比文字的尺寸
* @param size
*/
public void setTextSize(float size) {
mRateText.setTextSize(size);
}
/**
* 设置中间进度百分比文字的颜色
* @param color
*/
public void setTextColor( int color) {
mRateText.setTextColor(color);
}
@Override
public void onChange(int duration, int progress, float rate) {
mRateText.setText(String.valueOf( (int)(rate * 100 ) + "%"));
}
}
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffff5455" />
<corners android:radius="100dp"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:drawable="@mipmap/duoxuan_s_icon" />
<item android:state_focused="false" android:drawable="@mipmap/duoxuan_n_icon"/>
<item android:drawable="@mipmap/duoxuan_n_icon"/>
</selector>
\ No newline at end of file
... ...
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F7F7F7"
tools:context=".ui.jxt.activity.DbsxActivity">
<include android:id="@+id/title" layout="@layout/include_title" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_below="@id/title"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:id="@+id/fafang_li"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#FFFFFF"
>
<LinearLayout
android:layout_marginTop="@dimen/dp_21"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<ImageView
android:id="@+id/fafang_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icaon_fafang"
android:layout_marginLeft="@dimen/dp_16"/>
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_8"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="发放任务"
android:textColor="#06121E"
android:textSize="@dimen/sp_16"
android:textStyle="bold" />
<TextView
android:layout_marginTop="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_12"
android:text="2项发放任务需要处理"
android:textColor="#8C9198"/>
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<ImageView
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_marginRight="@dimen/dp_23"
android:layout_height="wrap_content"
android:src="@mipmap/fenxi_up_s_icon"
/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"></androidx.recyclerview.widget.RecyclerView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/fafang_li"
android:layout_marginTop="@dimen/dp_10"
android:background="#FFFFFF"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_54"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_work"
android:layout_marginLeft="@dimen/dp_16"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="作业"
android:layout_marginLeft="@dimen/dp_8"
android:textSize="@dimen/sp_16"
android:textColor="#3D444C"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2份作业待点评"
android:layout_marginRight="@dimen/dp_6"
android:textSize="@dimen/sp_14"
android:textColor="#8C9198"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_right"
android:layout_marginRight="@dimen/dp_16"/>
</LinearLayout>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_54"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_tongzhi"
android:layout_marginLeft="@dimen/dp_16"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="通知"
android:layout_marginLeft="@dimen/dp_8"
android:textSize="@dimen/sp_16"
android:textColor="#3D444C"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2份作业待点评"
android:layout_marginRight="@dimen/dp_6"
android:textSize="@dimen/sp_14"
android:textColor="#8C9198"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_right"
android:layout_marginRight="@dimen/dp_16"/>
</LinearLayout>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_54"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_activity"
android:layout_marginLeft="@dimen/dp_16"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="活动"
android:layout_marginLeft="@dimen/dp_8"
android:textSize="@dimen/sp_16"
android:textColor="#3D444C"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2份作业待点评"
android:layout_marginRight="@dimen/dp_6"
android:textSize="@dimen/sp_14"
android:textColor="#8C9198"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_right"
android:layout_marginRight="@dimen/dp_16"/>
</LinearLayout>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_54"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_vote"
android:layout_marginLeft="@dimen/dp_16"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="投票"
android:layout_marginLeft="@dimen/dp_8"
android:textSize="@dimen/sp_16"
android:textColor="#3D444C"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2份作业待点评"
android:layout_marginRight="@dimen/dp_6"
android:textSize="@dimen/sp_14"
android:textColor="#8C9198"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_right"
android:layout_marginRight="@dimen/dp_16"/>
</LinearLayout>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_54"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_questionnaire"
android:layout_marginLeft="@dimen/dp_16"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="问卷调查"
android:layout_marginLeft="@dimen/dp_8"
android:textSize="@dimen/sp_16"
android:textColor="#3D444C"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2份作业待点评"
android:layout_marginRight="@dimen/dp_6"
android:textSize="@dimen/sp_14"
android:textColor="#8C9198"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_right"
android:layout_marginRight="@dimen/dp_16"/>
</LinearLayout>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_54"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_solitaire"
android:layout_marginLeft="@dimen/dp_16"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="接龙"
android:layout_marginLeft="@dimen/dp_8"
android:textSize="@dimen/sp_16"
android:textColor="#3D444C"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2份作业待点评"
android:layout_marginRight="@dimen/dp_6"
android:textSize="@dimen/sp_14"
android:textColor="#8C9198"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_right"
android:layout_marginRight="@dimen/dp_16"/>
</LinearLayout>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"/>
</LinearLayout>
</RelativeLayout>
</androidx.core.widget.NestedScrollView>
</RelativeLayout>
\ No newline at end of file
... ...
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.jxt.activity.Tjxq_Activity">
<include layout="@layout/include_title" android:id="@+id/title"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_below="@id/title">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<!--<TextView-->
<!--android:textSize=""-->
<!--android:textColor=""-->
<!--android:text=""-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content" />-->
<com.yinhebairong.clasmanage.widget.CircularProgressBar
android:layout_width="@dimen/dp_140"
android:layout_height="@dimen/dp_140"
android:layout_marginLeft="63dp"
android:layout_marginTop="@dimen/dp_16"
/>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
... ...
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F7F7F7"
tools:context=".ui.jxt.activity.Xbff_Activity">
<include android:id="@+id/title" layout="@layout/include_title"/>
<androidx.recyclerview.widget.RecyclerView
android:background="#FFFFFF"
android:layout_width="match_parent"
android:layout_below="@id/title"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/dp_50"></androidx.recyclerview.widget.RecyclerView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_60"
android:background="@color/color_fff"
android:gravity="center_vertical"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<ImageView
android:id="@+id/dpdr_a"
android:layout_width="@dimen/dp_18"
android:layout_height="@dimen/dp_18"
android:layout_marginLeft="@dimen/dp_17"
android:background="@mipmap/duoxuan_n_icon" />
<TextView
android:id="@+id/dpdr_b"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_4"
android:text="全选"
android:textColor="@color/color_666"
android:textSize="@dimen/sp_14" />
<LinearLayout
android:layout_width="@dimen/dp_0"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/dp_32"
android:layout_marginTop="@dimen/dp_8"
android:layout_marginRight="@dimen/dp_16"
android:layout_marginBottom="@dimen/dp_8"
android:layout_weight="1"
android:gravity="center">
<TextView
android:id="@+id/dpdr_sure"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/shape_solid_30_ffab13"
android:gravity="center"
android:text="点评学生 (0)"
android:textColor="@color/color_fff"
android:textSize="@dimen/sp_14" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
... ...
... ... @@ -45,6 +45,7 @@
android:layout_height="match_parent"
android:layout_weight="1" />
<LinearLayout
android:layout_width="@dimen/dp_48"
android:layout_height="match_parent"
... ... @@ -59,7 +60,12 @@
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"
android:background="@color/color_e3e3e3"
android:id="@+id/line4"
/>
<!-- 代办事项 -->
<LinearLayout
android:layout_width="match_parent"
... ...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.jxt.fragment.Jxt_Rv_Fragment">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- 代办事项 -->
<LinearLayout
android:id="@+id/jxt_matter_li"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_48"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="@dimen/dp_23"
android:layout_height="@dimen/dp_23"
android:layout_marginLeft="@dimen/dp_15"
android:src="@mipmap/icon_daiban" />
<TextView
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"
android:layout_weight="1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/dp_8"
android:text="4项"
android:textColor="@color/color_8c9198"
android:textSize="@dimen/sp_13" />
<ImageView
android:layout_width="@dimen/dp_6"
android:layout_height="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_15"
android:src="@mipmap/icon_right" />
</LinearLayout>
<!-- 日期RecyclerView -->
<androidx.recyclerview.widget.RecyclerView
android:layout_below="@id/jxt_matter_li"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/dp_50"
android:id="@+id/data_rv"></androidx.recyclerview.widget.RecyclerView>
</RelativeLayout>
</FrameLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_44"
android:background="#FFF3E0"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:orientation="horizontal">
<TextView
android:id="@+id/content_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:maxWidth="@dimen/dp_285"
android:layout_gravity="center"
android:textColor="#F57F17"
android:layout_marginLeft="@dimen/dp_16"
android:textSize="@dimen/sp_14"
android:ellipsize="end"
android:text="您有学生达到“喜报”的发放评价标准了,赶快…"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_fafang_cheng"
android:layout_gravity="center"
android:layout_marginRight="@dimen/dp_16"/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F7F7F7">
<LinearLayout
android:layout_marginTop="@dimen/dp_5"
android:background="@drawable/shape_solid_4_fff"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_150"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:orientation="vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_16"
android:text="11月24日作业"
android:textStyle="bold"
android:layout_marginTop="@dimen/dp_20"
android:layout_marginLeft="@dimen/dp_57"
android:textColor="#3D444D"/>
<TextView
android:layout_width="wrap_content"
android:layout_marginRight="@dimen/dp_16"
android:layout_marginLeft="@dimen/dp_55"
android:textSize="@dimen/sp_14"
android:maxLines="2"
android:layout_marginTop="@dimen/dp_5"
android:ellipsize="end"
android:textColor="#5B5E63"
android:text="数学:1、运动会期间,口述复习第四单元试卷,复习五单元以前所有内容,包重点的五单元…周五考试。"
android:layout_height="wrap_content" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#EBEBEB"
android:layout_marginTop="@dimen/dp_13"
android:layout_marginLeft="@dimen/dp_55"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginLeft="@dimen/dp_55"
android:layout_marginRight="@dimen/dp_16">
<View
android:layout_width="1dp"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:id="@+id/class_tv"
android:text="一(1)班"
/>
<View
android:layout_width="1dp"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_4"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:id="@+id/teacher_tv"
android:layout_marginLeft="@dimen/dp_4"
android:text="李老师"
/>
<View
android:layout_width="1dp"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_4"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:id="@+id/date_tv"
android:layout_marginLeft="@dimen/dp_4"
android:text="李老师"
/>
<View
android:layout_width="1dp"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_4"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:id="@+id/state_tv"
android:layout_marginLeft="@dimen/dp_4"
android:text="已查看"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:id="@+id/yellow_tv"
android:textColor="#FFAB13"
android:layout_marginLeft="@dimen/dp_4"
android:text="59"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:id="@+id/gray_tv"
android:textColor="#8C9198"
android:text="/59"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_17"
android:layout_marginBottom="@dimen/dp_20"
android:layout_marginLeft="@dimen/dp_4"
android:src="@mipmap/icon_right"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_marginTop="@dimen/dp_22"
android:layout_marginLeft="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/icon_notice1"
android:textColor="#FFFFFF"
android:gravity="center"
android:text="作业"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/icon_notice2"/>
</LinearLayout>
<TextView
android:layout_width="@dimen/dp_18"
android:layout_height="@dimen/dp_18"
android:gravity="center"
android:textColor="#FFFFFF"
android:text="3"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/dp_10"
android:background="@drawable/red_cricle"/>
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F7F7F7">
<TextView
android:id="@+id/date_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10"
android:text="11-24"
android:textColor="#5B5E63"
android:layout_marginBottom="@dimen/dp_12"/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/date_tv"
android:id="@+id/content_rv"></androidx.recyclerview.widget.RecyclerView>
</RelativeLayout>
\ No newline at end of file
... ...
... ... @@ -31,13 +31,13 @@
/>
<com.yinhebairong.clasmanage.widget.CircleImageView
android:layout_width="@dimen/dp_23"
android:layout_height="@dimen/dp_23"
android:id="@+id/tx_4"
android:scaleType="fitXY"
android:layout_marginLeft="@dimen/dp_46"
android:src="@mipmap/pingjia_more_icon"
/>
<!--<com.yinhebairong.clasmanage.widget.CircleImageView-->
<!--android:layout_width="@dimen/dp_23"-->
<!--android:layout_height="@dimen/dp_23"-->
<!--android:id="@+id/tx_4"-->
<!--android:scaleType="fitXY"-->
<!--android:layout_marginLeft="@dimen/dp_46"-->
<!--android:src="@mipmap/pingjia_more_icon"-->
<!--/>-->
</FrameLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="@dimen/dp_68">
<LinearLayout
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/select_img"
android:layout_marginLeft="@dimen/dp_16"
/>
<ImageView
android:layout_marginLeft="@dimen/dp_8"
android:layout_width="@dimen/dp_44"
android:layout_height="@dimen/dp_44"
android:src="@mipmap/ss"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="李婷"
android:textColor="#3D444D"
android:textSize="@dimen/sp_16"/>
<TextView
android:layout_marginTop="@dimen/dp_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="获得校园演讲第一名"
android:textColor="#8C9198"
android:textSize="@dimen/sp_14"/>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#8C9198"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"/>
</RelativeLayout>
\ No newline at end of file
... ...