2012-04-03から1日間の記事一覧

androidでxmlを読み込む。

ファイルからの読み込みの場合は、getAssets()を使う。 この場合、ファイルはassets配下に置くこと。 // 参照元 http://isakado.blog106.fc2.com/blog-entry-10.html TextView tv = (TextView) findViewById(R.id.txt); StringBuffer sb = new StringBuffer(…