• 大小: 62.98MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-05-26
  • 语言: Java
  • 标签: android  

资源简介

这是一款基于Android的简单新闻类APP应用,代码结构相对较简单。

资源截图

代码片段和文件信息


package android.databinding;
import io.bxbxbai.zhuanlan.BR;
class DataBinderMapper  {
    final static int TARGET_MIN_SDK = 21;
    public DataBinderMapper() {
    }
    public android.databinding.ViewDataBinding getDataBinder(android.databinding.DataBindingComponent bindingComponent android.view.View view int layoutId) {
        switch(layoutId) {
                case io.bxbxbai.zhuanlan.R.layout.people_info:
                    return io.bxbxbai.zhuanlan.databinding.PeopleInfoBinding.bind(view bindingComponent);
                case io.bxbxbai.zhuanlan.R.layout.text_post:
                    return io.bxbxbai.zhuanlan.databinding.TextPostBinding.bind(view bindingComponent);
                case io.bxbxbai.zhuanlan.R.layout.image_post:
                    return io.bxbxbai.zhuanlan.databinding.ImagePostBinding.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 -2071738774: {
                if(tag.equals(“layout/people_info_0“)) {
                    return io.bxbxbai.zhuanlan.R.layout.people_info;
                }
                break;
            }
            case -1695621058: {
                if(tag.equals(“layout/text_post_0“)) {
                    return io.bxbxbai.zhuanlan.R.layout.text_post;
                }
                break;
            }
            case -1999155590: {
                if(tag.equals(“layout/image_post_0“)) {
                    return io.bxbxbai.zhuanlan.R.layout.image_post;
                }
                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“
            “firstName“
            “lastName“
            “post“
            “user“};
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-05 17:51  ZhuanLanmaster\
     文件         908  2016-10-26 17:43  ZhuanLanmaster\.gitignore
     目录           0  2018-03-05 17:51  ZhuanLanmaster\.gradle\
     目录           0  2018-03-05 17:51  ZhuanLanmaster\.gradle\3.3\
     目录           0  2018-03-05 17:51  ZhuanLanmaster\.gradle\3.3\taskArtifacts\
     文件      271669  2018-03-05 17:45  ZhuanLanmaster\.gradle\3.3\taskArtifacts\fileHashes.bin
     文件     3439279  2018-03-05 17:45  ZhuanLanmaster\.gradle\3.3\taskArtifacts\fileSnapshots.bin
     文件      118258  2018-03-05 17:45  ZhuanLanmaster\.gradle\3.3\taskArtifacts\taskArtifacts.bin
     文件          17  2018-03-05 17:45  ZhuanLanmaster\.gradle\3.3\taskArtifacts\taskArtifacts.lock
     目录           0  2018-03-05 17:51  ZhuanLanmaster\.idea\
     文件         686  2018-03-04 20:39  ZhuanLanmaster\.idea\compiler.xml
     目录           0  2018-03-05 17:51  ZhuanLanmaster\.idea\copyright\
     文件          76  2018-03-04 20:39  ZhuanLanmaster\.idea\copyright\profiles_settings.xml
     文件         626  2018-03-04 20:43  ZhuanLanmaster\.idea\gradle.xml
     目录           0  2018-03-05 17:51  ZhuanLanmaster\.idea\libraries\
     文件         577  2018-03-04 20:44  ZhuanLanmaster\.idea\libraries\adapters_1_3_1.xml
     文件         264  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\android_android_23.xml
     文件         624  2018-03-04 20:47  ZhuanLanmaster\.idea\libraries\animated_vector_drawable_23_3_0.xml
     文件         588  2018-03-04 20:47  ZhuanLanmaster\.idea\libraries\appcompat_v7_23_3_0.xml
     文件         458  2018-03-04 20:44  ZhuanLanmaster\.idea\libraries\baseLibrary_2_3_3.xml
     文件         532  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\butterknife_7_0_1.xml
     文件         514  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\commons_cli_1_2.xml
     文件         399  2018-03-04 20:47  ZhuanLanmaster\.idea\libraries\common_1_6_1.xml
     文件         561  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\converter_gson_2_1_0.xml
     文件         570  2018-03-04 20:47  ZhuanLanmaster\.idea\libraries\design_23_2_0.xml
     文件         537  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\disklrucache_2_0_2.xml
     文件         400  2018-03-04 20:47  ZhuanLanmaster\.idea\libraries\flexbox_0_1_3.xml
     文件         522  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\glide_3_7_0.xml
     文件         497  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\gson_2_7.xml
     文件         330  2018-03-04 20:43  ZhuanLanmaster\.idea\libraries\jsr305_2_0_1.xml
     文件         574  2018-03-04 20:44  ZhuanLanmaster\.idea\libraries\library_1_3_1.xml
............此处省略3397个文件信息

评论

共有 条评论