에러 내용 : Incorrect line ending: found carriage return (\r) without corresponding newline (\n) 증상 : xml 레이아웃 편집중에 갑자기 아무것도 이상한것이 없는데위와같은 메세지의 에러가 떴다.나의 경우는 LinearLayout에서 발생. 해결법 : Ctrl+Shift+F 참고 : http://stackoverflow.com/questions/14049508/incorrect-line-ending-found-carriage-return-r-without-corresponding-newline
/** * 소수점 n째자리까지 자름. * 반올림이 아니라 버림이다. 주의하셍 * */ public String adjustMinority(String minority, int n){ // 소수점이 있다면 if(minority.contains(".")){ // .을 기준으로 쪼개서 String[] splitedMinority = minority.split("[.]"); // 소수점 이하 자리수가 n보다 큰지 작은지 재보자 //n보다 크다면 잘라내고, //n보다 작다면 n만큼 0을 채워넣어야겠지? if(splitedMinority[1].length() > n){ splitedMinority[1] = splitedMinority[1].substring(0, n); }else if(splitedMinority[..
BACK_TIMEOUT 은 밀리초단위로 2000이면 2초이다. 2초 이내에 BACK 키가 다시 눌릴경우 종료하는 코드.FLAG를 이용해서 2초이내에 눌렸는지 판단한다.//================================================== // Back key 두번 종료 private static final int MSG_TIMER_EXPIRED = 1; private static final int BACK_TIMEOUT= 2000; private boolean mIsBackKeyPressed= false; private long mCurrentTimeInMillis= 0; @Override public void onBackPressed() { if(mIsBackKeyPressed ..
- Total
- Today
- Yesterday
- IOS
- Phaser
- Swift
- xcode
- mysql
- C언어
- php
- 노드
- 깃헙
- git hub
- 안드로이드
- 뉴스룸
- GIT
- 스위프트
- Kotlin
- CentOS
- 서버
- 앵커브리핑
- 배열
- C
- 손석희
- BBC 가쉽
- Asterisk
- node.js
- Node
- 점유율
- linux
- nodejs
- Android
- 리눅스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |