반응형 Development/Android55 Uri 세팅방법. // Basic Uri set// example// http://foo.com/someservlet?param1=foo¶m2=barUri uri = new Uri.Builder() .scheme("http") .authority("foo.com") .path("someservlet") .appendQueryParameter("param1", "foo") .appendQueryParameter("param2", "bar") .build(); 2014. 2. 12. TextView 취소선 SourceTextView someLabel = (TextView) findViewById(R.id.some_label);someLabel.setText("Aldiko Book Reader"); someLabel.setPaintFlags(someLabel.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); StringResource Aldiko Book Reader 2013. 6. 17. [android] xml string에서 폰트 컬러 넣기. 색을 입힐 문자열 2013. 5. 23. Spannable을 이용하여 문자열 특정부분에 Click 이벤트와 press 색을 노출하는 예제. // Sourcefinal TextView test = (TextView)findViewById(R.id.text);Spannable span = new SpannableString("I know just how to whisper, And I know just how to cry,I know just where to find the answers"); span.setSpan(new TestClickableSpan(), 15, 30, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);test.setText(span); test.setMovementMethod(TestMovementMethod.getInstance()); // ClickableSpan 을/를 본따 만든 클래스로 onClick.. 2013. 5. 14. 이전 1 ··· 10 11 12 13 14 다음 반응형