[안드로이드] GridView 활용 How to create Icon With text like home screen, here is my example screen: To do something like this we need to use GridView and make The Icon with text using the XML layout and then using LayoutInflater to read the XML and put it into the Adapter. Lets begin with the icon.xml(we put it into /res/layout/) that will be the view to show ImageView and Text together. 01 10 14 15 22 23 Here we put the.. 더보기 [안드로이드] xml 없이 직접 코딩하기 순서 없이 그냥 막 넣어 놨씁니다. 필요한 것들만 쓰면 됨. LinearLayout layout = new LinearLayout(getApplicationContext()); layout.setOrientation(LinearLayout.VERTICAL); layout.setBackgroundColor(Color.WHITE); LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT); layoutParams.setMargins(0,0,0,0); layoutParams.weight = 1.0f; .. 더보기 [안드로이드] HTML 문서 보일때 <BR> 처리 RSS 나 HTML 로 문서 내용을 불러 왔을때 을 처리하는 방법을 나눌려고 합니다. PHP 경우 nl2br 을 사용해 nl 을 br 로 바꿔주는 작업을 합니다. galleryView.contentView.setText(description); fromHtml 을 사용해주려 햇는데 안 하여도 BR 테그를 잘 읽고 있어 아래 는 적용하지 않았습니다. 참고) // galleryView.contentView.setText(Html.fromHtml(description)); - fromHtml은 혹 HTML 문서를 호출할때 필요할때 사용하도록 합니다. 더보기 이전 1 ··· 236 237 238 239 240 241 242 ··· 253 다음