• 大小: 62KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-11
  • 语言: Java
  • 标签: android  demo  txt  

资源简介

一个Android读取文本文件的demo,txt文件放到res/raw文件夹下,通过代码将其读取并显示在屏幕上。

资源截图

代码片段和文件信息

/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package com.android.txt;

public final class R {
    public static final class attr {
    }
    public static final class drawable {
        public static final int ic_launcher=0x7f020000;
    }
    public static final class id {
        public static final int button1=0x7f060000;
        public static final int linearLayout1=0x7f060002;
        public static final int scrollView1=0x7f060001;
        public static final int textView1=0x7f060003;
    }
    public static final class layout {
        public static final int main=0x7f030000;
    }
    public static final class raw {
        public static final int a=0x7f040000;
    }
    public static final class string {
        public static final int app_name=0x7f050001;
        public static final int hello=0x7f050000;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-03-17 18:59  _TxtReaderDemo\
     文件         364  2012-03-17 18:00  _TxtReaderDemo\.classpath
     文件         850  2012-03-17 18:00  _TxtReaderDemo\.project
     文件         741  2012-03-17 20:50  _TxtReaderDemo\AndroidManifest.xml
     目录           0  2012-03-17 19:03  _TxtReaderDemo\assets\
     目录           0  2012-03-17 22:32  _TxtReaderDemo\bin\
     目录           0  2012-03-17 19:42  _TxtReaderDemo\bin\classes\
     文件        4676  2012-03-17 22:31  _TxtReaderDemo\bin\classes.dex
     目录           0  2012-03-17 19:42  _TxtReaderDemo\bin\classes\com\
     目录           0  2012-03-17 19:42  _TxtReaderDemo\bin\classes\com\android\
     目录           0  2012-03-17 20:50  _TxtReaderDemo\bin\classes\com\android\txt\
     文件         331  2012-03-17 22:30  _TxtReaderDemo\bin\classes\com\android\txt\R$attr.class
     文件         398  2012-03-17 22:30  _TxtReaderDemo\bin\classes\com\android\txt\R$drawable.class
     文件         481  2012-03-17 22:30  _TxtReaderDemo\bin\classes\com\android\txt\R$id.class
     文件         385  2012-03-17 22:30  _TxtReaderDemo\bin\classes\com\android\txt\R$layout.class
     文件         373  2012-03-17 22:30  _TxtReaderDemo\bin\classes\com\android\txt\R$raw.class
     文件         418  2012-03-17 22:30  _TxtReaderDemo\bin\classes\com\android\txt\R$string.class
     文件         551  2012-03-17 22:30  _TxtReaderDemo\bin\classes\com\android\txt\R.class
     文件        1902  2012-03-17 20:43  _TxtReaderDemo\bin\classes\com\android\txt\TxtReader.class
     文件        1318  2012-03-17 22:51  _TxtReaderDemo\bin\classes\com\android\txt\TxtReaderDemoActivity$1.class
     文件        1108  2012-03-17 22:51  _TxtReaderDemo\bin\classes\com\android\txt\TxtReaderDemoActivity.class
     目录           0  2012-03-17 18:49  _TxtReaderDemo\bin\res\
     文件       12082  2012-03-17 22:32  _TxtReaderDemo\bin\resources.ap_
     目录           0  2012-03-17 18:49  _TxtReaderDemo\bin\res\drawable-hdpi\
     文件        3966  2012-03-17 18:49  _TxtReaderDemo\bin\res\drawable-hdpi\ic_launcher.png
     目录           0  2012-03-17 18:49  _TxtReaderDemo\bin\res\drawable-ldpi\
     文件        1537  2012-03-17 18:49  _TxtReaderDemo\bin\res\drawable-ldpi\ic_launcher.png
     目录           0  2012-03-17 18:49  _TxtReaderDemo\bin\res\drawable-mdpi\
     文件        2200  2012-03-17 18:49  _TxtReaderDemo\bin\res\drawable-mdpi\ic_launcher.png
     文件       16265  2012-03-17 22:32  _TxtReaderDemo\bin\_TxtReaderDemo.apk
     目录           0  2012-03-17 18:00  _TxtReaderDemo\gen\
............此处省略26个文件信息

评论

共有 条评论