文件名称:简单的考勤打卡日历
文件大小:708KB
文件格式:ZIP
更新时间:2021-08-12 09:10:13
android 考勤打卡 日历
import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import com.org.security.app.main.R; import com.org.security.tools.DateUtils; /** * Created by Administrator on 2017/8/16. */ public class SignDate extends LinearLayout { private TextView tvYear; private InnerGridView gvWeek; private InnerGridView gvDate; private AdapterDate adapterDate; public SignDate(Context context) { super(context); init(); } public SignDate(Context context, AttributeSet attrs) { super(context, attrs); init(); } public SignDate(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(); } private void init() { View view = View.inflate(getContext(), R.layout.layout_signdate, this); tvYear = view.findViewById(R.id.tvYear); gvWeek = view.findViewById(R.id.gvWeek); gvDate = view.findViewById(R.id.gvDate); tvYear.setText(DateUtils.getCurrentYearAndMonth()); gvWeek.setAdapter(new AdapterWeek(getContext())); adapterDate = new AdapterDate(getContext()); gvDate.setAdapter(adapterDate); } /** * 签到成功的回调 * * @param onSignedSuccess */ public void setOnSignedSuccess(OnSignedSuccess onSignedSuccess) { adapterDate.setOnSignedSuccess(onSignedSuccess); } /** * 签到 */ public void setOnSigned(int postion) { adapterDate.setOnSigned(postion); } /** * 签到 */ public void setOnSigned(String date) { adapterDate.setOnSigned(date); } }
【文件预览】:
MySignDate-master
----.gitignore(91B)
----gradle()
--------wrapper()
----README.md(99B)
----build.gradle(498B)
----MySignDate.iml(941B)
----MysignDate.gif(574KB)
----gradlew.bat(2KB)
----gradlew(5KB)
----app()
--------.gitignore(7B)
--------build.gradle(715B)
--------proguard-rules.pro(666B)
--------app.iml(8KB)
--------src()
----gradle.properties(855B)
----.idea()
--------runConfigurations.xml(564B)
--------vcs.xml(164B)
--------misc.xml(3KB)
--------modules.xml(357B)
--------.name(10B)
--------copyright()
--------compiler.xml(686B)
--------gradle.xml(608B)
----settings.gradle(15B)