개발관련 썸네일형 리스트형 DragHelper 를 활용한 View Drag&Drop 애니메이션 간단한 예제 만드는법 VIewDragHelper 생성자를 통해 초기화(1.0f는 시작시 민감도라고 함) public class DragLayout extends LinearLayout { private final ViewDragHelper mDragHelper; private View mDragView; public DragLayout(Context context) { this(context, null); } public DragLayout(Context context, AttributeSet attrs) { this(context, attrs, 0); } public DragLayout(Context context, AttributeSet attrs, int defStyle) { super(contex.. 더보기 TimeZone ID 확인 하기 SimpleDateFormat sdf = new SimpleDateFormat ( dateFormat ); sdf.setTimeZone ( TimeZone.getTimeZone ( "Asia/Seoul" ) ); System.out.println("Asia/Seoul:"+sdf.format(time)); 결과) Asia/Seoul:20140825T141111.232+0900 "Asia/Seoul" 이런걸 Timezone ID 라고 한다. TimeZone.getAvailableIDs(); 이걸로 Timezone ID를 알 수 있다. 더보기 highligher 사용방법 //코드작성부분 더보기 syntaxhighlighter 테스트! public class Text extends Activity{ public static final String TAG = Text.class.getSimpleName(); protected void oncreate(Bundle saveInstance){ Log.d(TAG, "hello"); } } 더보기 이전 1 2 다음