登录
首页 » Android » 安卓课程表

安卓课程表

于 2023-03-05 发布 文件大小:455.80 kB
0 50
下载积分: 2 下载次数: 1

代码说明:

安卓课程表,用listview实现

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

发表评论

0 个回复

  • 开发学习的例子
    开发学习的例子
    2015-05-09下载
    积分:1
  • 安卓解析服务端XML、JSON数据
    Android解析服务端XML、JSON数据,代码很完整,可直接运行,适合初学者学习,欢迎大家多多支持
    2022-01-25 19:47:12下载
    积分:1
  • 功能测试参考代码
    @Override public void onItemClick(AdapterView parent, View view, int position, long id) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(), itemName.get(position), Toast.LENGTH_SHORT).show(); isAllTest = false; switch (position) { case 0: startCorrelationActivity(TouchEdgeActivity.class); break; case 1: startCorrelationActivity(ScreenActivity.class); break; case 2: startCorrelationActivity(SpeekActivity.class); break; case 3: startCorrelationActivity(WifiActivity.class); break; case 4: startCorrelationActivity(WifiProbeActivity.class); brea
    2022-01-22 15:12:48下载
    积分:1
  • 获取系统图库的图片,调用系统相机,并生成预览,
    ** * 这个是进入相册显示所有图片的界面 *  * @author king * @QQ:595163260 * @version 2014年10月18日  下午11:47:15 */public class AlbumActivity extends Activity {//显示手机里的所有图片的列表控件private GridView gridView;//当手机里没有图片时,提示用户没有图片的控件private TextView tv;//gridView的adapterprivate AlbumGridViewAdapter gridImageAdapter;//完成按钮private Button okButton;// 返回按钮private Button back;// 取消按钮private Button cancel;private Intent intent;// 预览按钮private Button preview;private Context mContext;private ArrayList dataList;private AlbumHelper helper;public static List contentList;public static Bitmap bitmap;protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(Res.getLayoutID("plugin_camera_album"));PublicWay.activityList.add(this);mContext = this;//注册一个广播,这个广播主要是用于在GalleryActivity进行预览时,防止当所有图片都删除完后,再回到该页面时被取消选中的图片仍处于选中状态IntentFilter filter = new IntentFilter("data.broadcast.action");  registerReceiver(broadcastReceiver, filter);          bitmap = BitmapFactory.decodeResource(getResources(),Res.getDrawableID("plugin_camera_no_pictures"));        init();initListener();//这个函数主要用来控制预览和完成按钮的状态isShowOkBt();}BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {           @Override          public void onReceive(Context context, Intent intent) {          //mContext.unregisterReceiver(this);            // TODO Auto-generated method stub          gridImageAdapter.notifyDataSetChanged();        }      };  // 预览按钮的监听private class PreviewListener implements OnClickListener {public void onClick(View v) {if (Bimp.tempSelectBitmap.size() > 0) {intent.putExtra("position", "1");intent.setClass(AlbumActivity.this, GalleryActivity.class);startActivity(intent);}}}// 完成按钮的监听private class AlbumSendListener implements OnClickListener {public void onClick(View v) {overridePendingTransition(R.anim.activity_translate_in, R.anim.activity_translate_out);intent.setClass(mContext, MainActivity.class);startActivity(intent);finish();}}// 返回按钮监听private class BackListener implements OnClickListener {public void onClick(View v) {intent.setClass(AlbumActivity.this, ImageFile.class);startActivity(intent);}}// 取消按钮的监听private class CancelListener implements OnClickListener {public void onClick(View v) {Bimp.tempSelectBitmap.clear();intent.setClass(mContext, MainActivity.class);startActivity(intent);}}// 初始化,给一些对象赋值private void init() {helper = AlbumHelper.getHelper();helper.init(getApplicationContext());contentList = helper.getImagesBucketList(false);dataList = new ArrayList();for(int i = 0; i= PublicWay.num) {toggleButton.setChecked(false);chooseBt.setVisibility(View.GONE);if (!removeOneData(dataList.get(position))) {Toast.makeText(AlbumActivity.this, Res.getString("only_choose_num"),200).show();}return;}if (isChecked) {chooseBt.setVisibility(View.VISIBLE);Bimp.tempSelectBitmap.add(dataList.get(position));okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");} else {Bimp.tempSelectBitmap.remove(dataList.get(position));chooseBt.setVisibility(View.GONE);okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");}isShowOkBt();}});okButton.setOnClickListener(new AlbumSendListener());}private boolean removeOneData(ImageItem imageItem) {if (Bimp.tempSelectBitmap.contains(imageItem)) {Bimp.tempSelectBitmap.remove(imageItem);okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");return true;}return false;}public void isShowOkBt() {if (Bimp.tempSelectBitmap.size() > 0) {okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");preview.setPressed(true);okButton.setPressed(true);preview.setClickable(true);okButton.setClickable(true);okButton.setTextColor(Color.WHITE);preview.setTextColor(Color.WHITE);} else {okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");preview.setPressed(false);preview.setClickable(false);okButton.setPressed(false);okButton.setClickable(false);okButton.setTextColor(Color.parseColor("#E1E0DE"));preview.setTextColor(Color.parseColor("#E1E0DE"));}}public boolean onKeyDown(int keyCode, KeyEvent event) {if (keyCode == KeyEvent.KEYCODE_BACK) {intent.setClass(AlbumActivity.this, ImageFile.class);startActivity(intent);}return false;}@Overrideprotected void onRestart() {isShowOkBt();super.onRestart();}
    2014-12-10下载
    积分:1
  • 图书管理系统JSP+SQL 完整源码下载
    用的的组件: struts1.2jsp2.0 servlet2.4jdk1.5tomcat5.5jstl1.1
    2015-04-25下载
    积分:1
  • db
    说明:  android中sqlite数据库的操作(android sqlite database operations in)
    2011-08-31 10:37:52下载
    积分:1
  • android speex ogg封装
    实现了语音的录制和压缩,通过speex进行编码,用ogg封装,效果不错,问价体积小
    2022-06-17 06:39:51下载
    积分:1
  • Android连连看源码
    Android连连看源码,一款可以允许在android手机上的连连看游戏,附带源码                                          
    2023-03-08 17:05:04下载
    积分:1
  • Android指南针demo
    资源描述Android的指南针动画及其安卓传感器的应用,对初学者了解传感器有一定的帮助
    2023-01-10 13:30:04下载
    积分:1
  • 安卓实现划屏切换页面
    安卓实现划屏切换页面
    2015-02-07下载
    积分:1
  • 696518资源总数
  • 104226会员总数
  • 29今日下载