package com.example.administrator.project; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.ViewTreeObserver; import android.widget.EditText; import android.widget.ScrollView; import android.widget.TextView; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; /** * Created by Administrator on 2017/11/26. */ public class FullContent extends Activity { public TextView contentTv; private BufferedReader br; public Context context; public boolean isLoading; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.full_content); contentTv = (TextView) findViewById(R.id.content); InputStream inputStream = getResources().openRawResource(R.raw.full_t); String t = getString(inputStream); contentTv.setText(t); } public static String getString(InputStream inputStream) { InputStreamReader inputStreamReader = null; try { inputStreamReader = new InputStreamReader(inputStream, "GBK"); } catch (Exception e1) { e1.printStackTrace(); } BufferedReader reader = new BufferedReader(inputStreamReader); StringBuffer sb = new StringBuffer(""); String line; try { while ((line = reader.readLine()) != null) { sb.append(line); sb.append("\n"); } } catch (Exception e) { e.printStackTrace(); } return sb.toString(); } @Override protected void onDestroy() { super.onDestroy(); if(null != br){ try { br.close(); } catch (Exception e) { e.printStackTrace(); } } } }

_nrxsh LV12
6月16日
阿九11111 LV4
2024年5月21日
求学的熊猫 LV11
2024年5月20日
121514713 LV2
2023年5月26日
dglin20001030 LV1
2023年5月18日
watsonChen LV1
2023年2月9日
1532593037 LV8
2023年1月7日
yzhszz LV3
2022年12月27日
SQ2930501923 LV14
2022年12月12日
Highlighz LV4
2022年6月29日

_nrxsh LV12
6月16日
5460545
2024年12月24日
暂无贡献等级
chenranr LV10
2024年12月20日
2636804923 LV6
2024年6月20日
AIWU1234 LV2
2024年6月9日
lilitu LV6
2024年5月29日
今晚都别睡啦 LV9
2024年5月29日
happySuperman LV2
2024年5月29日
阿九11111 LV4
2024年5月21日
Aban-beautiful
2024年5月13日
暂无贡献等级