다수의 텍스트들을 String array로 만들어서 리소스에 박아둡니다..(android String array 구글링하면 나옵니다)
그것을 array 배열로 가져오신다음에... 숫자 랜덤출력하는 소스로... 숫자를 가져오고
그 숫자에 맞는 배열의 인덱스 값을 가져오시면... 될거 같네요 ~~
2011.07.12 15:52:48
Stamford
<array name="Cat"> <item>Pride will have a fall.</item> <item>The language of truth is simple.</item> <item>Patience is a virtue.</item> <item>Negligence is a crime.</item> <item>Union is strength.</item> </array>
텍스트가 배열이나 리스트로 있는건가요?
그러면 랜덤으로 숫자를 만들어서
배열[index] or list.get(index)이런식으로 가져오시면 될거같네요