资源简介
一个简单的安卓文件管理器源码。

代码片段和文件信息
using System.Collections.Generic;
using Android.App;
using Android.Views;
using Android.Widget;
namespace FileManager
{
class AnimalListAdapter : baseAdapter
{
Activity context;
public List Animals;
public AnimalListAdapter(Activity context List animals) : base()
{
this.Animals = animals;
this.context = context;
}
public override Animal this[int position]
{
get { return this.Animals[position]; }
}
public override int Count
{
get { return this.Animals.Count; }
}
public override View GetView(int position View convertView ViewGroup parent)
{
var item = this.Animals[position];
var view = convertView;
if (convertView == null || !(convertView is LinearLayout))
{
view = context.LayoutInflater.Inflate(Resource.Layout.Item parent false);
}
var imageItem = view.FindViewById(Resource.Id.Item_imagerview) as ImageView;
var texttop = view.FindViewById(Resource.Id.Item_textview) as TextView;
var textbottom = view.FindViewById(Resource.Id.Item_textview2) as TextView;
imageItem.SetImageResource(item.Image);
texttop.SetText(item.Name TextView.BufferType.Normal);
textbottom.SetText(item.Description TextView.BufferType.Normal);
return view;
}
public override long GetItemId(int position)
{
return position;
}
}
class Animal
{
public string Name
{
get;
set;
}
public string Description
{
get;
set;
}
public int Image
{
get;
set;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-06-21 16:29 FileManager\
目录 0 2017-06-21 16:29 FileManager\.vs\
目录 0 2017-06-21 16:29 FileManager\.vs\FileManager\
目录 0 2017-06-21 16:29 FileManager\.vs\FileManager\v14\
目录 0 2017-06-21 16:30 FileManager\FileManager\
文件 1166 2017-06-21 14:21 FileManager\FileManager.sln
文件 1957 2017-06-21 14:36 FileManager\FileManager\AnimalListAdapter.cs
目录 0 2017-06-21 16:20 FileManager\FileManager\Assets\
文件 620 2017-06-21 14:21 FileManager\FileManager\Assets\AboutAssets.txt
文件 5901 2017-06-21 14:41 FileManager\FileManager\FileManager.csproj
文件 357 2017-06-21 14:21 FileManager\FileManager\FileManager.csproj.user
文件 160 2017-06-21 14:21 FileManager\FileManager\GettingStarted.Xamarin
文件 7833 2017-06-21 16:18 FileManager\FileManager\MainActivity.cs
文件 290 2017-06-21 14:29 FileManager\FileManager\packages.config
目录 0 2017-06-21 16:20 FileManager\FileManager\Properties\
文件 521 2017-06-21 14:41 FileManager\FileManager\Properties\AndroidManifest.xm
文件 1092 2017-06-21 14:21 FileManager\FileManager\Properties\AssemblyInfo.cs
目录 0 2017-06-21 16:20 FileManager\FileManager\Resources\
文件 1736 2017-06-21 14:21 FileManager\FileManager\Resources\AboutResources.txt
目录 0 2017-06-21 16:20 FileManager\FileManager\Resources\drawable\
文件 188 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\add_white.png
文件 4571 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\apk.png
文件 4844 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\archive_yellow.png
文件 3218 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\databa
文件 2796 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\folder_blue.png
文件 159 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\home_white.png
文件 4147 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\Icon.png
文件 9571 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\image.png
文件 6569 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\text.png
文件 4835 2017-06-21 14:21 FileManager\FileManager\Resources\drawable\unknown.png
目录 0 2017-06-21 16:20 FileManager\FileManager\Resources\layout\
............此处省略18个文件信息
- 上一篇:sqljdbc.zip
- 下一篇:课程设计——员工管理系统
相关资源
- C#和Java实现互通的RSADES加解密算法
- 寿星万年历C#版bug修正
- JSP项目技术源代码(15个项目)
- C#写的医院挂号信息管理系统
- C# [分享] 写给心爱的女孩的一个漂亮
- RSA算法JAVA公钥加密,C#私钥解密
- Introduction to Neural Networks
- .proto 各种语言转换
- .NET C#利用ZXing生成、识别二维码/条形
- java网站后台管理系统源码
- 数据结构与算法:C#语言描述(中,英
- Protocbuf2.5,windows已经编译版本protoc
- C#开发Android应用程序(连接SQL Server)
- C#培训全套资源讲师:周红安
- Android应用源码安卓与PC的Socket通信项
- CTP接口c/C#/jAVA/MATLAB
- C# RSA加密、支持JAVA格式公钥私钥
- Android studio3.0.1; vs2013 ; 调用C#写的We
- C# 实现的 Android ADB工具
- 西电计算机数据库上机作业_2016级SQ
- itextsharp5.5.10源代码
- 第三方登录[含QQ、微信、新浪微博]
- JAVA通过JNI调用C#dll的整个项目工程
- C#调用java直接调用无需生成.net组件
- AntiSamy Xss跨站脚本攻击WebService War包
- SM4加密C#类
- android 访问c# webservice 实现登陆注册功
- 《Visual+C#+2010从入门到精通》全部源码
- ACCP8.0所有课件以及源码
- 小米推送服务端SDK-C#/.Net版
评论
共有 条评论