FlowTag-Android流式布局,支持点击、单选、多选,支持初始化选中标签(只针对单选和多选模式),适合用于产品标签等,用法采用Adapter模式,和ListView、G.zip

上传者: 38743481 | 上传时间: 2023-04-04 14:34:19 | 文件大小: 112KB | 文件类型: ZIP
Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样!2016/6/26号新添加初始化标签功能,使用非常简单,只要你的Adapter实现OnInitSelectedPosition即可,对于点击模式是不存在初始化标签一说的;对于单选模式来说,如果有多个初始化选择,则默认去第一个;对于多选来说正常使用!!!特色填充数据和ListView、GridView用法一样使用Adapter,更新数据直接通过adapter.notifyDataChanged来更新支持点击、单选、多选事件三种模式:FLOW_TAG_CHECKED_NONE、FLOW_TAG_CHECKED_SINGLE、FLOW_TAG_CHECKED_MULTI支持OnTagClickListener单点事件支持OnTagSelectListener单选、多选事件效果图版本更新2016/6/26添加初始化选中标签单选模式下初始化标签只有第一个起作用多选模式下只要设置初始化选中就可以添加初始化选中标签代码示例Adapter实现OnInitSelectedPosition接口实现接口中isSelectedPosition方法就可以,选中返回true,不选中默认返回false public class TagAdapter extends BaseAdapter implements OnInitSelectedPosition {
 @Override
        public boolean isSelectedPosition(int position) {
        if (position % 2 == 0) {
            return true;
        }
        return false;
    }
 }

文件下载

资源详情

[{"title":"( 53 个子文件 112KB ) FlowTag-Android流式布局,支持点击、单选、多选,支持初始化选中标签(只针对单选和多选模式),适合用于产品标签等,用法采用Adapter模式,和ListView、G.zip","children":[{"title":"FlowTag-master","children":[{"title":".gitignore <span style='color:#111;'> 103B </span>","children":null,"spread":false},{"title":"app","children":[{"title":".gitignore <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 703B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hhl","children":[{"title":"flowlayoutdemo","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 353B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 776B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"tag_item.xml <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"content_main.xml <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"menu_main.xml <span style='color:#111;'> 389B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"round_rectangle_bg.xml <span style='color:#111;'> 762B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-v21","children":[{"title":"styles.xml <span style='color:#111;'> 328B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false}],"spread":false},{"title":"color","children":[{"title":"normal_text_color.xml <span style='color:#111;'> 316B </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 130B </span>","children":null,"spread":false},{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 253B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 708B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"hhl","children":[{"title":"flowlayoutdemo","children":[{"title":"MainActivity.java <span style='color:#111;'> 7.41KB </span>","children":null,"spread":false},{"title":"TagAdapter.java <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hhl","children":[{"title":"flowlayoutdemo","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 315B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-rules.pro <span style='color:#111;'> 668B </span>","children":null,"spread":false}],"spread":true},{"title":"settings.gradle <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"library","children":[{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hhl","children":[{"title":"library","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 346B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 70B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"hhl","children":[{"title":"library","children":[{"title":"OnTagClickListener.java <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"FlowTagLayout.java <span style='color:#111;'> 11.85KB </span>","children":null,"spread":false},{"title":"OnTagSelectListener.java <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"OnInitSelectedPosition.java <span style='color:#111;'> 162B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hhl","children":[{"title":"library","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 308B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-rules.pro <span style='color:#111;'> 668B </span>","children":null,"spread":false}],"spread":true},{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"_config.yml <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 464B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 48.73KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明