-
遗传算法代码
云环境下的任务调度算法,将遗传算法做改进,主要在变异算子做了改进,通过java开发环境,使用cloudsim模拟云环境,对改进算法仿真,得到有效的结果
- 2022-07-11 00:40:33下载
- 积分:1
-
AndroidBaseControls
android常用控件的代码实现,非常适合初学者,值得拥有(This demo shows us how to use the basic controls in android, it is really useful for the beginners, it is worthful)
- 2014-08-09 09:09:43下载
- 积分:1
-
教务管理系统毕业设计
资源描述帮人写的教务管理系统毕业设计,基于java+swing+mysql实现,绝对原创
- 2022-07-24 01:56:50下载
- 积分:1
-
Android UI 教程大师
智能 android 画廊与多个图像选择行动挑选单个图像,并选择多个图像的也和你可以更改你的应用程序的主题
- 2022-03-20 03:29:45下载
- 积分: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
-
基于MVC的权限过滤和分页实现的JavWeb案例
资源描述javaweb的权限过滤以及登录验证后的分页实现案例。基于MVC模式开发。
- 2023-06-28 02:30:05下载
- 积分:1
-
疫情信息查询android app源码
【实例简介】
- 2021-09-09 00:31:01下载
- 积分:1
-
基于android的百度地图的实现
基于android百度地图的开发,实现定位和搜索功能。能够让新手更清楚熟练的了解到android开发以及百度地图的开发过程,以及百度地图KEY的申请过程,了解LBS服务系统。
- 2022-04-08 09:45:11下载
- 积分:1
-
在 java 实现 FP 增长算法
它是实现频繁的数据挖掘和用于测试或与其他代码比较有用的 FP 增长
- 2023-01-17 00:35:03下载
- 积分:1
-
AhHuiUniversity
随着经济与科技的快速发展,智能手机一步步进入普通人得生活,它将成为人们获取信息的主要设备,因此基于Android手机的手机地图服务需求越开越迫切,为外出旅游的人们提供了极大地便利。Android是Google开发的基于Linux平台的开源手机操作系统。它包括操作系统、中间件、用户界面和应用程序,是为移动终端打造的真正开放和完整的移动软件。本文对目前应用的Symbian、WindowsMoblie、Mac OS X和Android平台的现状进行了分析与比较,主要阐述以面向对象程序开发语言JAVA,以eclipse为开发工具,基于智能手机Android之上设计一个导览系统。本文主要介绍安徽大学,界面友好 、操作便捷,具有良好的可扩展性和可维护性,系统经过测试,可以稳定运行,能够满足手机用户基本的地图服务需求。(With the rapid development of economy and technology,Smartphone enters into the lives of ordinary people step by step,it will become the main device to obtain information,Therefore,based on the Android mobile phone mobile map service needs become more and more urgent for people who travel offers great convenience.Android is the Google development opens the source handset operating system based on Linux platform. It includes the operating system,the Middleware,he user interface and the application procedure. It is for the mobile terminal to create a truly open and complete mobile software. In this thesis,there is a analysis and comparion about the status of the current applide platforms like Symbiam ,WindowsMoblie,Mac OS X and Android ,this thesis Mainly expounds the development of object-oriented programming language java, eclipse as a
development tool, to design a navigation system-based smartphone on Android. This paper mainly introduces the anhui university,user-friendly,easy to)
- 2013-10-30 13:56:55下载
- 积分:1