登录
首页 » Android » 多图片上传android的实现代码 功能仿微信

多图片上传android的实现代码 功能仿微信

于 2022-07-04 发布 文件大小:780.60 kB
0 114
下载积分: 2 下载次数: 1

代码说明:

多图片上传android的实现代码 功能仿微信,是进入相册显示所有图片的界面,同时还有一个用于进行图片浏览时的界面和显示一个文件夹里面的所有图片的界面,这里要使用一个显示手机里的所有图片的列表控件,当手机里没有图片时,提示用户没有图片的控件,注册一个广播,这个广播主要是用于在GalleryActivity进行预览时,防止当所有图片都删除完后,再回到该页面时被取消选中的图片仍处于选中状态,同时创建了一些监听函数,用于监听返回按钮、预览按钮、完成按钮等。   看一看效果预览,你就会立刻明白本源码的功能了,是不是很熟悉的微信上传图片界面?

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

发表评论

0 个回复

  • android 播放网络MP3 音乐播放
    简单的基本功能,实测可行。 核心代码:package com.sharpandroid.music.activity;import java.io.IOException;import android.app.Activity;import android.os.Bundle;import android.util.Log;import android.view.View;import android.widget.Button;import android.widget.ImageButton;import android.widget.SeekBar;import android.widget.TextView;import com.sharpandroid.music.R;import com.sharpandroid.music.StreamingMediaPlayer;public class MediaPlayer extends Activity { private Button streamButton; private ImageButton playButton; private boolean isPlaying; private TextView playTime; private StreamingMediaPlayer audioStreamer; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); initControls(); } private void initControls() { playTime=(TextView) findViewById(R.id.playTime); streamButton = (Button) findViewById(R.id.button_stream); streamButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { startStreamingAudio(); }}); playButton = (ImageButton) findViewById(R.id.button_play); playButton.setEnabled(false); playButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { if (audioStreamer.getMediaPlayer().isPlaying()) { audioStreamer.getMediaPlayer().pause(); playButton.setImageResource(R.drawable.button_play); } else { audioStreamer.getMediaPlayer().start(); audioStreamer.startPlayProgressUpdater(); playButton.setImageResource(R.drawable.button_pause); } isPlaying = !isPlaying; }}); } private void startStreamingAudio() { try { final SeekBar progressBar = (SeekBar) findViewById(R.id.progress_bar); if ( audioStreamer != null) { audioStreamer.interrupt(); } audioStreamer = new StreamingMediaPlayer(this, playButton, streamButton, progressBar,playTime); audioStreamer.startStreaming("http://192.168.64.1/xa.mp3",5208, 216); streamButton.setEnabled(false); } catch (IOException e) { Log.e(getClass().getName(), "读取音乐出错!", e); } }}
    2014-05-26下载
    积分:1
  • Andriod DrifBall 重力感应游戏
    Andriod DrifBall 重力感应游戏源码实例,各个文件说明如下:   BallListener.java:主要功能是感应传感器的姿态数据,通过onSensorChanged方法读取数据,并调用RoatatUtil中的静态方法来确定小球应该移动的方向。   Cannon.java对应地图中的大炮,地图模型中每有一个大炮,就会有一个Cannon对象创建Cannon对象主要的方法是fire,此方法会根据当时小球的位置,创建并返回一个Missile对象,该Missile对象会被添加到一个集合中并被绘制。   DrawThread.java主要功能是提供GameView的定时绘制采用的方式是SurfaceHolder对象将画布锁上,然后对其进行绘制。   DriftBall.java游戏的主类,所有的View对象在这里有所引用,主要的功能是实现游戏的流程控制,提供游戏需要的常量,在视图之间进行切换。   GameMenuThread.java主要负责将菜单及菜单项在屏幕上的位置进行改变以达到动画效果。。   更多文件作用请下载查看源代码。
    2022-03-11 05:46:31下载
    积分:1
  • BMI
    一个基于android的 BMI 计算小系统,涉及到多个控件和activity间传值(a bases android app,include some widgets )
    2016-03-08 02:32:53下载
    积分:1
  • 2015全国大学生电子设计竞赛风力摆
    说明:  脉冲宽度调制是一种模拟控制方式,根据相应载荷的变化来调制晶体管基极或MOS管栅极的偏置,来实现晶体管或MOS管导通时间的改变,从而实现开关稳压电源输出的改变。这种方式能使电源的输出电压在工作条件变化时保持恒定,是利用微处理器的数字信号对模拟电路进行控制的一种非常有效的技术。脉冲宽度调制是利用微处理器的数字输出来对模拟电路进行控制的一种非常有效的技术,广泛应用在从测量、通信到功率控制与变换的许多领域中。(Pulse width modulation (PWM) is an analog control method, which modulates the bias of transistor base or MOS gate according to the change of load, so as to change the turn-on time of transistor or MOS and realize the change of output of switching regulated power supply. This method can keep the output voltage of the power supply constant when the working conditions change. It is a very effective technology to control the analog circuit by using the digital signal of the microprocessor. Pulse width modulation (PWM) is a very effective technology to control analog circuits by using the digital output of microprocessors. It is widely used in many fields, from measurement, communication to power control and conversion.)
    2020-06-22 16:20:02下载
    积分:1
  • Gallery
    android gallary桌面切换效果,超炫,带翻转效果(android gallary desktop switching effects, stunning, with rollover effects)
    2011-07-02 12:48:05下载
    积分:1
  • Android 的微调器源代码
    在默认状态下,微调器将显示其当前选定的值。触摸微调器将显示包含所有其他可用值的下拉菜单,用户可以从中选择新值。
    2023-05-19 19:45:03下载
    积分:1
  • android 联系人分类排序
    android 联系人分类排序
    2014-03-14下载
    积分:1
  • Android_Library_Giri
    axure rp 模板库 具体的还没用过,不知道优劣,大家可以参考下-Axture some instances, specific not used, do not know the pros and cons, we can refer to(axure rp)
    2013-07-05 15:29:24下载
    积分:1
  • 七牛云SDK源码
    七牛云SDK源码
    2015-05-19下载
    积分:1
  • android 获取联系人信息 例子源码下载
    android手机的通讯录联系人全部都存在系统的数据库中,如果须要获得通讯里联系人的信息就须要访问系统的数据库,才能将信息拿出来。 这一篇文章我主要带领同学们熟悉Android的通讯录机制。
    2015-04-14下载
    积分:1
  • 696516资源总数
  • 106648会员总数
  • 8今日下载