登录
首页 » Java » Cards-UI-master

Cards-UI-master

于 2015-01-24 发布 文件大小:83KB
0 281
下载积分: 1 下载次数: 10

代码说明:

  卡片式View,支持单个卡片,item为卡片的ListView 使用: CardListView list = ... list.setCardTheme(CardTheme.Dark) CardAdapter adapter = new CardAdapter(this, android.R.color.holo_blue_dark) list.setAdapter(adapter) // Alternatively, you can pass a context and string resources in place of strings // CardHeader has an optional second parameter for a subtitle CardHeader header = new CardHeader( I m a header ) // You can optionally set an action to the header // Specifying no action title will default to See More header.setAction( See More , new CardHeader.ActionListener() { @Override public void onHeaderActionClick(CardHeader header) { // Do whatever you want } }) // Add the header to the adapter, automatically notifies the list adapter.add(header) // Again, you can pass a context and string resources in place of strings Card card = new Card( Hello , My name is Aidan ) adapter.add(card) (This library is no longer maintained, as this implementation is generally frowned upon in the new Google Material design guidelines, excluding certain situations (like Google Keep type UI). See the new CardView APIs in the Support Library.)

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

发表评论

0 个回复

  • didi_car
    基于rexsee源码,搭建的一款android应用,实现租车服务,功能类似滴滴打车-An android app,based on rexsee sourcecode,render car service(Based on rexsee source code, build a Android application to achieve car rental services, functions similar to the taxi drops android app based, on rexsee sourcecode render, car service-An)
    2020-10-22 16:17:23下载
    积分:1
  • 网络获取图片(缓存)
    package com.hsx.imageloader.adapter;import android.content.Context;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.ImageView;import android.widget.TextView;import com.hsx.imageloader.listener.AnimateFirstDisplayListener;import com.nostra13.universalimageloader.core.DisplayImageOptions;import com.nostra13.universalimageloader.core.ImageLoader;import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;import com.hsx.imageloader.R;public class ItemAdapter extends BaseAdapter {DisplayImageOptions options;private ImageLoadingListener animateFirstListener = new AnimateFirstDisplayListener();String[] imageUrls;Context context;public ItemAdapter(String[] imageUrls, Context context) {super();this.imageUrls = imageUrls;this.context = context;options = new DisplayImageOptions.Builder().showStubImage(R.drawable.ic_launcher)//设置图片在下载期间显示的图片.showImageForEmptyUri(R.drawable.ic_launcher)//设置图片Uri为空或是错误的时候显示的图片.showImageOnFail(R.drawable.ic_launcher)//设置图片加载/解码过程中错误时候显示的图片.cacheInMemory(true)//是否緩存都內存中.cacheOnDisc(true)//是否緩存到sd卡上.displayer(new RoundedBitmapDisplayer(20)).build();}private class ViewHolder {public TextView text;public ImageView image;}@Overridepublic int getCount() {return imageUrls.length;}@Overridepublic Object getItem(int position) {return position;}@Overridepublic long getItemId(int position) {return position;}@Overridepublic View getView(final int position, View convertView, ViewGroup parent) {final ViewHolder holder;if (convertView == null) {LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);convertView = inflater.inflate(R.layout.item_list_image, parent, false);holder = new ViewHolder();holder.text = (TextView) convertView.findViewById(R.id.text);holder.image = (ImageView) convertView.findViewById(R.id.image);convertView.setTag(holder);} else {holder = (ViewHolder) convertView.getTag();}holder.text.setText("Item " (position 1));// ImageLoaderImageLoader imageLoader = ImageLoader.getInstance();imageLoader.displayImage(imageUrls[position], holder.image, options, animateFirstListener);return convertView;}}
    2015-03-05下载
    积分:1
  • FusionChart实例
    FusionChart实例 structs、FusionChart实现的小实例 显示Flash图表 FusionChart实例 structs、FusionChart实现的小实例 显示Flash图表  
    2022-01-25 23:28:00下载
    积分:1
  • ContactLocaleUtilsTest
    ContactLocaleUtilsTest extends AndroidTestCase.
    2013-12-02 15:37:18下载
    积分:1
  • android animation 实例
    android animation 实例
    2013-05-24下载
    积分:1
  • 安卓日历源码下载
    android 日历
    2014-12-24下载
    积分:1
  • FileUpLoadAndDownLoad
    解析EXCEL,to html ,txt to html(jie xi excel)
    2014-05-13 08:38:45下载
    积分:1
  • 567222
    自定义数字键盘,IOS编程学习源码,很好的参考资料。(Custom digital keyboard, learning IOS programming source code, a good reference.)
    2013-12-05 09:10:35下载
    积分:1
  • 华为技术有限公司c语言编程规范
    C语言规范
    2021-10-27 00:31:14下载
    积分:1
  • java 排课系统,桌面版
    java 排课系统,基于swt,swing进行界面开发,可以进行教师,教室,时间冲突检查,
    2022-07-14 22:39:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载