-
仿电商后台管理系统源码
【实例简介】仿电商后台管理系统源码
:本系统采用的还layUI模板,基于ssm框架,功能趋于成熟,运行环境:mysql8.0,jdk8.0及以上,IDEA;我做此项目是用来实训结业答辩,项目可流畅运行,毕竟答辩时在领导面前总不能报错吧,若有意外,请亲检查版本,believe me!
- 2021-12-06 00:37:34下载
- 积分:1
-
android 课表视图 例子源码
android 课表视图 例子源码
- 2014-10-20下载
- 积分:1
-
WiFi编程例子
WiFi编程例子
- 2015-02-03下载
- 积分:1
-
android应用集成在线客服功能(可IM实时聊天) 例子源码下载
android应用集成在线客服功能(可IM实时聊天) 例子源码下载
- 2015-04-26下载
- 积分:1
-
找茬游戏
一个很完整的找茬游戏源码,ui为自己设计
- 2014-09-15下载
- 积分:1
-
网络获取图片(缓存)
package com.hsx.imageloader.adapter;import android.content.Context;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.ImageView;import android.widget.TextView;import com.hsx.imageloader.listener.AnimateFirstDisplayListener;import com.nostra13.universalimageloader.core.DisplayImageOptions;import com.nostra13.universalimageloader.core.ImageLoader;import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;import com.hsx.imageloader.R;public class ItemAdapter extends BaseAdapter {DisplayImageOptions options;private ImageLoadingListener animateFirstListener = new AnimateFirstDisplayListener();String[] imageUrls;Context context;public ItemAdapter(String[] imageUrls, Context context) {super();this.imageUrls = imageUrls;this.context = context;options = new DisplayImageOptions.Builder().showStubImage(R.drawable.ic_launcher)//设置图片在下载期间显示的图片.showImageForEmptyUri(R.drawable.ic_launcher)//设置图片Uri为空或是错误的时候显示的图片.showImageOnFail(R.drawable.ic_launcher)//设置图片加载/解码过程中错误时候显示的图片.cacheInMemory(true)//是否緩存都內存中.cacheOnDisc(true)//是否緩存到sd卡上.displayer(new RoundedBitmapDisplayer(20)).build();}private class ViewHolder {public TextView text;public ImageView image;}@Overridepublic int getCount() {return imageUrls.length;}@Overridepublic Object getItem(int position) {return position;}@Overridepublic long getItemId(int position) {return position;}@Overridepublic View getView(final int position, View convertView, ViewGroup parent) {final ViewHolder holder;if (convertView == null) {LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);convertView = inflater.inflate(R.layout.item_list_image, parent, false);holder = new ViewHolder();holder.text = (TextView) convertView.findViewById(R.id.text);holder.image = (ImageView) convertView.findViewById(R.id.image);convertView.setTag(holder);} else {holder = (ViewHolder) convertView.getTag();}holder.text.setText("Item " (position 1));// ImageLoaderImageLoader imageLoader = ImageLoader.getInstance();imageLoader.displayImage(imageUrls[position], holder.image, options, animateFirstListener);return convertView;}}
- 2015-03-05下载
- 积分:1
-
phonegap 登录注册实例源码下载(android版)
登录注册模块代码
- 2015-01-19下载
- 积分:1
-
android 解锁例子源码
package com.codeshogun.android.swipesample;import android.app.Activity;import android.os.Bundle;import android.view.GestureDetector;import android.view.MotionEvent;import android.view.View;import android.view.GestureDetector.SimpleOnGestureListener;import android.view.animation.Animation;import android.view.animation.AnimationUtils;import android.widget.ViewFlipper;public class Main extends Activity { private static final int SWIPE_MIN_DISTANCE = 120; private static final int SWIPE_MAX_OFF_PATH = 250; private static final int SWIPE_THRESHOLD_VELOCITY = 200; private GestureDetector gestureDetector; View.OnTouchListener gestureListener; private Animation slideLeftIn; private Animation slideLeftOut; private Animation slideRightIn; private Animation slideRightOut; private ViewFlipper viewFlipper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); viewFlipper = (ViewFlipper)findViewById(R.id.flipper); slideLeftIn = AnimationUtils.loadAnimation(this, R.anim.slide_left_in); slideLeftOut = AnimationUtils.loadAnimation(this, R.anim.slide_left_out); slideRightIn = AnimationUtils.loadAnimation(this, R.anim.slide_right_in); slideRightOut = AnimationUtils.loadAnimation(this, R.anim.slide_right_out); gestureDetector = new GestureDetector(new MyGestureDetector()); gestureListener = new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (gestureDetector.onTouchEvent(event)) { return true; } return false; } }; } class MyGestureDetector extends SimpleOnGestureListener { @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { try { if (Math.abs(e1.getY() - e2.getY()) > SWIPE_MAX_OFF_PATH) return false; // right to left swipe if(e1.getX() - e2.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { viewFlipper.setInAnimation(slideLeftIn); viewFlipper.setOutAnimation(slideLeftOut); viewFlipper.showNext(); } else if (e2.getX() - e1.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { viewFlipper.setInAnimation(slideRightIn); viewFlipper.setOutAnimation(slideRightOut); viewFlipper.showPrevious(); } } catch (Exception e) { // nothing } return false; } } @Override public boolean onTouchEvent(MotionEvent event) { if (gestureDetector.onTouchEvent(event)) return true; else return false; }}
- 2014-04-16下载
- 积分:1
-
android 各种Activity切换效果例子源码
android 各种Activity切换效果例子源码
- 2014-09-29下载
- 积分:1
-
androidstudio测式-匯率變換
使用androidstudio写程式的测试
- 2015-05-22下载
- 积分:1