登录
首页 » Android » 管理文件

管理文件

于 2022-03-07 发布 文件大小:114.74 kB
0 144
下载积分: 2 下载次数: 1

代码说明:

适用于Android手机的文件浏览,安装之后可以浏览手机内部的文件资源,并对文件资源进行管理。界面简单,操作容易

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

发表评论

0 个回复

  • 仿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
  • thread线程中断新方法
    传统中断线程可以使用标记或调养interrput(),但是我们也可以尝试使用自定义的异常来处理,本demo就是出于这个思路设计的
    2022-01-26 18:34:27下载
    积分:1
  • TouchActivity
    触屏触摸活动测试代码,声明ImageView变量,声明相关变量作为存储图片宽高,位置使用,声明存储屏幕的分辨率变量,取得屏幕对象,取得屏幕解析像素,通过findViewById构造器创建ImageView对象,将图片从Drawable赋值给ImageView来呈现,当点击ImageView,还原初始位置,取得手指触控屏幕的位置,覆盖触控事件,防图片超过屏幕的相关处理,防止屏幕向右超过屏幕,以setLayoutParams方法,重新安排Layout上的位置,以setLayoutParams方法,重新安排Layout上的位置... (Weather Android source code, obtained Google s weather API data themselves may again be extended run shot more difficult to grasp here, an environmental source test it on the download, Android Weather WeatherForecast seems to be common and the primary example of a simple Android , but would like to develop a beautiful and feature-rich weather application, it requires a lot of knowledge of the perfect combination.)
    2013-08-01 18:19:48下载
    积分:1
  • fdd
    android的局域网聊天的android的局域网聊天的源代码源代码(LAN chat android' s source code)
    2011-08-18 15:36:21下载
    积分:1
  • 基于android的xmpp的即时通信客户端
    这是基于xmpp的安卓即时通信客户端,参照jitsi;有音视频聊天,共享桌面,传输文件等基础功能; 导入eclipse后,用户只需下载个openfire服务器配置好就可以直接运行啦
    2022-04-23 14:02:06下载
    积分:1
  • 安卓图片上传
    安卓图片上传到java服务器,服务端采用struts
    2022-02-11 13:46:06下载
    积分:1
  • 仿微信图片轮播
    用ViewGroup实现的图片轮播,带小圆点,图片轮播时,小圆点跟着滑动播放。放在srollview里会有点卡,这主要是由于要做触摸方向的判断,可以对scrollview稍做改动即可!
    2022-03-23 15:59:18下载
    积分:1
  • android 画板,
    android,android源码,
    2022-02-26 09:21:03下载
    积分:1
  • c++ ftp 例子源码下载
    FTP(File Transfer Protocol)协议主要用来在网络上进行文件传输。FTP通讯除了有一个默认的端口21外,还有其他端口,同城两个端口同时进行数据传输。一个是默认的端口(通常为21),主要进行控制连接,即进行命令协议及服务器端响应码的传输。另一个非标准端口主要进行数据,上传下载文件等。
    2015-03-05下载
    积分:1
  • pubu
    Android项目源码带瀑布流的旅游指南应用是一款旅游型的APP,是旅游目的地攻略指南,可以自动定位到城市,景点,餐馆,酒店,还可以分享旅游经验,与参与者互动。该项目的架构合理,有详细的注解,其中引入了第三方的瀑布流项目,以源代码的形式直接加入,很好的学习材料。默认使用UTF-8编码,编译版本为4.3(The Android project source code with a waterfall flow guide application is app a type of tourism, tourism destination strategy guide, can automatically locate the city, attractions, restaurants, hotels, can also share travel experiences, to interact with the participants. The framework of the project is reasonable, there are detailed notes, which introduces the third side of the waterfall flow project, in the form of source code to join, a good learning materials. The default use of UTF-8 code, the compiler version is 4.3)
    2020-12-27 16:59:03下载
    积分:1
  • 696516资源总数
  • 106415会员总数
  • 3今日下载