• 大小: 6.27MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-22
  • 语言: 其他
  • 标签: RecyclerView  item  计时  

资源简介

使用一个统一的线程控制RecyclerView每个item 中的一个控件实现计时功能【使用一个统一的线程控制RecyclerView每个item 中的一个控件实现计时功能】

资源截图

代码片段和文件信息


package android.databinding;
import com.example.admin.recyclerviewtime.BR;
class DataBinderMapper  {
    final static int TARGET_MIN_SDK = 15;
    public DataBinderMapper() {
    }
    public android.databinding.ViewDataBinding getDataBinder(android.databinding.DataBindingComponent bindingComponent android.view.View view int layoutId) {
        switch(layoutId) {
                case com.example.admin.recyclerviewtime.R.layout.item:
                    return com.example.admin.recyclerviewtime.databinding.ItemBinding.bind(view bindingComponent);
                case com.example.admin.recyclerviewtime.R.layout.activity_main:
                    return com.example.admin.recyclerviewtime.databinding.ActivityMainBinding.bind(view bindingComponent);
        }
        return null;
    }
    android.databinding.ViewDataBinding getDataBinder(android.databinding.DataBindingComponent bindingComponent android.view.View[] views int layoutId) {
        switch(layoutId) {
        }
        return null;
    }
    int getLayoutId(String tag) {
        if (tag == null) {
            return 0;
        }
        final int code = tag.hashCode();
        switch(code) {
            case 450490505: {
                if(tag.equals(“layout/item_0“)) {
                    return com.example.admin.recyclerviewtime.R.layout.item;
                }
                break;
            }
            case 423753077: {
                if(tag.equals(“layout/activity_main_0“)) {
                    return com.example.admin.recyclerviewtime.R.layout.activity_main;
                }
                break;
            }
        }
        return 0;
    }
    String convertBrIdToString(int id) {
        if (id < 0 || id >= InnerBrLookup.sKeys.length) {
            return null;
        }
        return InnerBrLookup.sKeys[id];
    }
    private static class InnerBrLookup {
        static String[] sKeys = new String[]{
            “_all“
            “onclick“};
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-21 21:38  RecyclerViewTime\
     文件         127  2017-09-21 21:37  RecyclerViewTime\.gitignore
     目录           0  2017-09-21 21:38  RecyclerViewTime\.gradle\
     目录           0  2017-09-21 21:38  RecyclerViewTime\.gradle\3.3\
     目录           0  2017-09-21 21:38  RecyclerViewTime\.gradle\3.3\taskArtifacts\
     文件      163683  2017-09-21 22:19  RecyclerViewTime\.gradle\3.3\taskArtifacts\fileHashes.bin
     文件     2556204  2017-09-21 22:19  RecyclerViewTime\.gradle\3.3\taskArtifacts\fileSnapshots.bin
     文件       96131  2017-09-21 22:19  RecyclerViewTime\.gradle\3.3\taskArtifacts\taskArtifacts.bin
     文件          17  2017-09-21 22:19  RecyclerViewTime\.gradle\3.3\taskArtifacts\taskArtifacts.lock
     目录           0  2017-09-21 22:20  RecyclerViewTime\.idea\
     文件         686  2017-09-21 21:37  RecyclerViewTime\.idea\compiler.xml
     目录           0  2017-09-21 21:37  RecyclerViewTime\.idea\copyright\
     文件          76  2017-09-21 21:37  RecyclerViewTime\.idea\copyright\profiles_settings.xml
     目录           0  2017-09-21 21:39  RecyclerViewTime\.idea\dictionaries\
     文件          86  2017-09-21 21:39  RecyclerViewTime\.idea\dictionaries\admin.xml
     文件         626  2017-09-21 21:38  RecyclerViewTime\.idea\gradle.xml
     文件         232  2017-09-21 21:51  RecyclerViewTime\.idea\kotlinc.xml
     目录           0  2017-09-21 21:40  RecyclerViewTime\.idea\libraries\
     文件         554  2017-09-21 21:40  RecyclerViewTime\.idea\libraries\adapters_1_3_1.xml
     文件         622  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\animated_vector_drawable_26_0_0_alpha1.xml
     文件         586  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\appcompat_v7_26_0_0_alpha1.xml
     文件         458  2017-09-21 21:40  RecyclerViewTime\.idea\libraries\baseLibrary_2_3_3.xml
     文件         410  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\constraint_layout_1_0_2.xml
     文件         337  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\constraint_layout_solver_1_0_2.xml
     文件         579  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\espresso_core_2_2_2.xml
     文件         612  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\espresso_idling_resource_2_2_2.xml
     文件         630  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\exposed_instrumentation_api_publish_0_5.xml
     文件         526  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\hamcrest_core_1_3.xml
     文件         561  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\hamcrest_integration_1_3.xml
     文件         540  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\hamcrest_library_1_3.xml
     文件         521  2017-09-21 21:38  RecyclerViewTime\.idea\libraries\javawriter_2_1_1.xml
............此处省略1844个文件信息

评论

共有 条评论