본문 바로가기

전체 글

(124)
layout에서 round rect 그리기 radius topLeft, topRight, bottomLeft, bottomRight 따로 조절할때 에뮬에서는 제대로 안보임 --> 실제 디바이스에서 봐야함
레이아웃에서 include 사용시 주의 사항 를 사용할 때, 최상위 레이아웃 바로 밑에서 사용해야 함 예) 잘못된 예)
IT관련 pdf 받는곳 IT관련 pdf 무료로 받을 수 있는곳 http://it-ebooks.info/
안드로이드 apk 받는곳 apk 무료로 받을 수 있는곳http://android.mob.org/
HTML5 곡선 그리기 function drawArc() { var canvas = document.getElementById("drawArcCanvas"); var context = canvas.getContext("2d"); context.lineWidth = 15; context.strokeStyle = "blue"; context.arc(canvas.width / 2, canvas.height / 2 + 40, 80, 1.1 * Math.PI, 1.9 * Math.PI, false); context.stroke(); }; drawArc() 메서드는 에서 정의하고 에서 바로 실행
string[] to ArrayList<string> String[] stringsnew ArrayList(Arrays.asList(strings));
ArrayList sort private final static Comparator compatator = new Comparator() { @Overridepublic int compare(T lhs, T rhs) {int result = 0;if(lhs.getValue > rhs.getValue) {result = 1;} else if(lhs.getValue < rhs.getValue) {result = -1;}return result;}}; (위 comparator는 오름차순, 내용을 반대로 하면 내림차순, 기타 조건에 따라 정렬 가능) 타입에 맞게 Comparator를 정의 해놓고, ArrayList result Collections.sort(result, compatator);
string 검색 String targetString searchingString target.indexOf(searchingString) >= 0 target이 searchingString을 포함하고 있으면 인덱스가 존재(없으면 -1) 이것을 활용해서 검색기능 구현 가능