资源简介
XamarinAndroidListview

代码片段和文件信息
using System;
using Android.Widget;
using System.Collections.Generic;
using Android.App;
namespace XamarinAndroidListviewDemo
{
public class DemoListViewAdapter : baseAdapter
{
List texts;
List images;
Activity context;
public DemoListViewAdapter (Activity context List texts List images)
{
this.context = context;
this.texts = texts;
this.images = images;
}
#region implemented abstract members of baseAdapter
public override Java.Lang.object GetItem (int position)
{
return position;
}
public override long GetItemId (int position)
{
return position;
}
public override Android.Views.View GetView (int position Android.Views.View convertView Android.Views.ViewGroup parent)
{
var view = convertView;
if (convertView == null)
view = context.LayoutInflater.Inflate (Resource.Layout.demo_item null);
// Populate the list item
var textView = view.FindViewById (Resource.Id.demoTextView);
var imageView = view.FindViewById (Resource.Id.demoImageView);
textView.Text = texts[position];
imageView.SetImageResource(images[position]);
return view;
}
public override int Count {
get {
return texts.Count;
}
}
#endregion
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\
文件 871 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo.sln
文件 833 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo.userprefs
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Assets\
文件 604 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Assets\AboutAssets.txt
文件 1276 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\DemoListViewAdapter.cs
文件 2133 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\MainActivity.cs
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Properties\
文件 325 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Properties\AndroidManifest.xm
文件 1031 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Properties\AssemblyInfo.cs
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\
文件 1694 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\AboutResources.txt
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-hdpi\
文件 2201 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-hdpi\Icon.png
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-mdpi\
文件 1410 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-mdpi\Icon.png
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-xhdpi\
文件 3237 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-xhdpi\Icon.png
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-xxhdpi\
文件 5414 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-xxhdpi\Icon.png
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-xxxhdpi\
文件 7825 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable-xxxhdpi\Icon.png
目录 0 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\
文件 6042 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\BiColourLacing1.jpg
文件 6026 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\BowTieLacing1.jpg
文件 6366 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\BushwalkLacing1.jpg
文件 6139 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\CheckerboardLacing1.jpg
文件 6141 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\CrissCrossLacing1.jpg
文件 5399 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\DisplayShoeLacing1.jpg
文件 5990 2015-02-07 15:27 XamarinAndroidListviewDemo-master\XamarinAndroidListviewDemo\Resources\drawable\DoubleBackLacing1.jpg
............此处省略20个文件信息
相关资源
- SHA1 安全码校对工具
- Android中采用ListView实现数据列表显示
- android ListView简单
- android listview 列表 点击列表进入详细
- android listview+fragment实现仿京东分类
- Android左侧导航栏。ListView动态显示导
- Android多ListView实现展开,收起加载,
- Android ExpandableListView双层嵌套实现三级
- Android Listview嵌套Listview实现评论
- Android+sqlite
- android ExpandableListView三级菜单的使用
- Android 实现自定义多级树控件和全选
- android 记事本demolistview与SQLite
- Android SearchView和ListView结合使用Demo
- Android自定漂亮Dialog中嵌入ListView
- Android仿京东左右分类
- Android中Sqlite数据库跟Listview对数据进
- Android 仿美团网探索ListView的A-Z字母排
- android 自定义listview实现仿微信/QQ设置
- Android下拉刷新上拉加载效果功能
- Android ListView支持批量选择
- Android中ListView适配器中的view重用和接
- Android 使用ListView的A-Z字母排序功能实
- Android 任意层别 树形控件
- Android 自定义ScrollView ListView 体验各种
- Android 根据EditText搜索框ListView动态显
- android加载历史登陆用户
- android异步在网络上读取多张图片,显
- Android - \“失物招领平台\“的功能设
- Android上拉下拉XListView及向左侧滑删除
评论
共有 条评论