登录
首页 » Java » daocrud

daocrud

于 2013-12-14 发布 文件大小:55KB
0 67
下载积分: 1 下载次数: 7

代码说明:

  android的DAO操作(provider带观察者模式)( The DAO android operating (provider with observer pattern))

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • java模拟猜数字游戏
    用Java写的一个猜数字小游戏,虽然简单,很用心,界面是用Java的界面,没有调用windows的界面,总的来说挺好玩的,界面还好
    2022-05-13 18:27:54下载
    积分:1
  • 仿IOS 对话框
    package com.zf.iosdialog.widget;import android.app.Dialog;import android.content.Context;import android.view.Display;import android.view.LayoutInflater;import android.view.View;import android.view.View.OnClickListener;import android.view.WindowManager;import android.widget.Button;import android.widget.FrameLayout;import android.widget.ImageView;import android.widget.LinearLayout;import android.widget.LinearLayout.LayoutParams;import android.widget.TextView;import com.zf.iosdialog.R;public class AlertDialog {private Context context;private Dialog dialog;private LinearLayout lLayout_bg;private TextView txt_title;private TextView txt_msg;private Button btn_neg;private Button btn_pos;private ImageView img_line;private Display display;private boolean showTitle = false;private boolean showMsg = false;private boolean showPosBtn = false;private boolean showNegBtn = false;public AlertDialog(Context context) {this.context = context;WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);display = windowManager.getDefaultDisplay();}public AlertDialog builder() {// 获取Dialog布局View view = LayoutInflater.from(context).inflate(R.layout.view_alertdialog, null);// 获取自定义Dialog布局中的控件lLayout_bg = (LinearLayout) view.findViewById(R.id.lLayout_bg);txt_title = (TextView) view.findViewById(R.id.txt_title);txt_title.setVisibility(View.GONE);txt_msg = (TextView) view.findViewById(R.id.txt_msg);txt_msg.setVisibility(View.GONE);btn_neg = (Button) view.findViewById(R.id.btn_neg);btn_neg.setVisibility(View.GONE);btn_pos = (Button) view.findViewById(R.id.btn_pos);btn_pos.setVisibility(View.GONE);img_line = (ImageView) view.findViewById(R.id.img_line);img_line.setVisibility(View.GONE);// 定义Dialog布局和参数dialog = new Dialog(context, R.style.AlertDialogStyle);dialog.setContentView(view);// 调整dialog背景大小lLayout_bg.setLayoutParams(new FrameLayout.LayoutParams((int) (display.getWidth() * 0.85), LayoutParams.WRAP_CONTENT));return this;}public AlertDialog setTitle(String title) {showTitle = true;if ("".equals(title)) {txt_title.setText("标题");} else {txt_title.setText(title);}return this;}public AlertDialog setMsg(String msg) {showMsg = true;if ("".equals(msg)) {txt_msg.setText("内容");} else {txt_msg.setText(msg);}return this;}public AlertDialog setCancelable(boolean cancel) {dialog.setCancelable(cancel);return this;}public AlertDialog setPositiveButton(String text,final OnClickListener listener) {showPosBtn = true;if ("".equals(text)) {btn_pos.setText("确定");} else {btn_pos.setText(text);}btn_pos.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {listener.onClick(v);dialog.dismiss();}});return this;}public AlertDialog setNegativeButton(String text,final OnClickListener listener) {showNegBtn = true;if ("".equals(text)) {btn_neg.setText("取消");} else {btn_neg.setText(text);}btn_neg.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {listener.onClick(v);dialog.dismiss();}});return this;}private void setLayout() {if (!showTitle && !showMsg) {txt_title.setText("提示");txt_title.setVisibility(View.VISIBLE);}if (showTitle) {txt_title.setVisibility(View.VISIBLE);}if (showMsg) {txt_msg.setVisibility(View.VISIBLE);}if (!showPosBtn && !showNegBtn) {btn_pos.setText("确定");btn_pos.setVisibility(View.VISIBLE);btn_pos.setBackgroundResource(R.drawable.alertdialog_single_selector);btn_pos.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {dialog.dismiss();}});}if (showPosBtn && showNegBtn) {btn_pos.setVisibility(View.VISIBLE);btn_pos.setBackgroundResource(R.drawable.alertdialog_right_selector);btn_neg.setVisibility(View.VISIBLE);btn_neg.setBackgroundResource(R.drawable.alertdialog_left_selector);img_line.setVisibility(View.VISIBLE);}if (showPosBtn && !showNegBtn) {btn_pos.setVisibility(View.VISIBLE);btn_pos.setBackgroundResource(R.drawable.alertdialog_single_selector);}if (!showPosBtn && showNegBtn) {btn_neg.setVisibility(View.VISIBLE);btn_neg.setBackgroundResource(R.drawable.alertdialog_single_selector);}}public void show() {setLayout();dialog.show();}}
    2015-01-03下载
    积分:1
  • Android编程权威指南 第3版
    说明:  Android编程权威指南 第3版,适合初学者和进阶使用,内容详实。(android development for all Android developer with detailed content and good examples. Easy to understand and make it by yourself.)
    2020-06-29 18:43:23下载
    积分:1
  • CH06
    Android sdk开发范例大全(第二版)第6章节
    2013-08-02 11:12:28下载
    积分:1
  • CSDN
    基于 java android 开发的一个抓取csdn网站新闻的客户端,类似于网易新闻版本(Based on java android developed a crawl csdn Site news client, similar to Netease news release)
    2015-06-03 13:15:16下载
    积分:1
  • 逻辑电路,你可以将自己与 java
    它如此的上帝那你让你的电路来检查在草绘时在 paper.in 上我们做这个项目,或 xor,led,,,,钢丝盖茨那 u 链接到对方,然后 u 得到对他们的投入,看看结果,如果这是你想要你让你的电路
    2022-11-25 11:50:05下载
    积分:1
  • android 邮件程序
    用于发送邮件,无需用户干预
    2023-02-10 21:15:03下载
    积分:1
  • whg_Syllabus
    android 仿超级课程表,实现本地数据库保存课表内容,到了指定时间提示上课(Android super curriculum, for local saving schedule, tips to the specified time for class)
    2021-01-07 12:38:52下载
    积分:1
  • Java应用程序
    这个项目是基于特定的域是java应用程序。在这个项目中我们董过程创建示例java窗口的应用程序
    2023-01-03 06:10:04下载
    积分:1
  • EQ聊天系统
    利用JavaBin、JEE等方法实现了在线聊天系统的建立。特别是预留出许多接口以供实现更多功能。代码已调试成功,放心使用。
    2022-08-22 02:01:35下载
    积分:1
  • 696522资源总数
  • 104042会员总数
  • 18今日下载