String substring(int start) : 현재 문자열 객체 start위치부터 끝까지 문자열 발췌 String substrnig(int start, int end) : 현재 문자열 객체에서 start 부터 end 직전까지 문자열 발췌 Char charAt(int location) : 현재 문자열 객체에서 해당위치의 문자값 1개를 발췌. 반환값은 char형 int indexOf(int ch) : 현재 문자열 객체에서 ch문자가 첫번째로 발견된 위치를 반환,없으면 -1반환 int indexOf(String str) : 현재 문자열 객체에서 str를 찾아서 존재하면 첫째문자 위치를 반환하고 없으면 -1반환 ----------------------------------------- ex1) 문자과 문..
요약 HTML 문법을 이용하여 문자 스타일을 변경한다. myTextView.setText(Html.fromHtml(""+문자+"")); main.xml //myTextView1 ~ myTextView5 까지. 너무 길어져서 생략 ▪ ▪ ▪ .java file package com.textstyle; import android.app.Activity; import android.os.Bundle; import android.text.Html; import android.widget.TextView; public class Textstyle extends Activity{ TextView myTextView1,myTextView2,myTextView3,myTextView4,myTextView5; String..
- Total
- Today
- Yesterday