Android读取文本文件的demo

上传者: barryhappy | 上传时间: 2019-12-21 19:27:46 | 文件大小: 62KB | 文件类型: zip
一个Android读取文本文件的demo,txt文件放到res/raw文件夹下,通过代码将其读取并显示在屏幕上。

文件下载

资源详情

[{"title":"( 31 个子文件 62KB ) Android读取文本文件的demo","children":[{"title":"_TxtReaderDemo","children":[{"title":".project <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"hs_err_pid4412.log <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"android","children":[{"title":"txt","children":[{"title":"TxtReaderDemoActivity.java <span style='color:#111;'> 839B </span>","children":null,"spread":false},{"title":"TxtReader.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 741B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"raw","children":[{"title":"a.txt <span style='color:#111;'> 856B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 194B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"android","children":[{"title":"txt","children":[{"title":"R.java <span style='color:#111;'> 1002B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 11.80KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"android","children":[{"title":"txt","children":[{"title":"R$layout.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"TxtReaderDemoActivity$1.class <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"TxtReader.class <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"R$raw.class <span style='color:#111;'> 373B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 481B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"TxtReaderDemoActivity.class <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 418B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"_TxtReaderDemo.apk <span style='color:#111;'> 15.88KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • perfy001 :
    代码可参考,待优化
    2020-08-14
  • perfy001 :
    代码可参考,待优化
    2020-08-14
  • yueliangxing3 :
    很好用的资源
    2019-10-06
  • yueliangxing3 :
    很好用的资源
    2019-10-06
  • su86yang :
    参考参考,感谢楼主分享
    2019-01-08
  • su86yang :
    参考参考,感谢楼主分享
    2019-01-08
  • tmjkqiao :
    不错,有一定参考
    2018-11-06
  • tmjkqiao :
    不错,有一定参考
    2018-11-06
  • u013491918 :
    还是挺好的 值得下载
    2018-10-24
  • Jin铭 :
    还是挺好的 值得下载
    2018-10-24

免责申明

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