목록전체 글 (1353)
오늘도 공부
1down vote어댑터 내부에서 리스너 추가시 포지션 값이 잘못 되는 경우가 많음..아래와 같이 하면 됨...class MyOnClickListener implements View.OnClickListener { @Override public void onClick(View v) { int itemPosition = mRecyclerView.getChildAdapterPosition(v); myResult = results.get(itemPosition); } }And in the adapter@Override public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View v = LayoutInflater.fro..
스토리 보드 팁 스토리보드 사용시 깔끔하게 나누는 방법https://brunch.co.kr/@joonwonlee/5 http://theeye.pe.kr/archives/2292
출처 : http://blog.naver.com/PostView.nhn?blogId=sukjun40&logNo=100171180154 AudioTrack, AudioRecord 클래스를 활용하여 목소리 자동 감지 프로그램을 만들어 보았습니다. 이 소스는 code.google.com 의 sounddemodulation 원본소스 링크http://code.google.com/p/sounddemodulation/downloads/detail?name=AudioDemodulator.zip&can=2&q= 예제를 그대로 가져와 약간만 변형한 것입니다. 녹음 플레이 코드는 대부분 같고 자동으로 녹음저장과 끝을 맺는것만 다릅니다. 따로 녹음 버튼과 녹음 중지 버튼이 있는것이 아니라 목소리가 커지는 시점을 잡아서 저장하..
http://blog.weirdx.io/post/1486
출처 : http://www.journaldev.com/13792/android-gridlayoutmanager-exampleAndroid GridLayoutManagerWe’ve implemented a RecyclerView using a LinearLayoutManager here. Now let’s use a GridLayoutManagerto layout the RecyclerView as a grid.Following is the constructor for a GridLayoutManager.GridLayoutManager (Context context, int spanCount, int orientation, boolean reverseLayout)reverseLayout if set tr..
These commands are based on a askubuntu answer http://askubuntu.com/a/581497To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.ABSOLUTELY NO WARRANTY. If you are still reading let's carry on with the code. sudo apt-get update && \sudo apt-get install build-essential software-properties-common -y && \sud..
https://blog.lael.be/post/73
출처 : http://drasys.tistory.com/entry/Conoha-%EC%BD%94%EB%85%B8%ED%95%98-%EC%84%9C%EB%B2%84-%EA%B5%AC%EC%B6%95%EA%B8%B0-CentOS-67-%EA%B8%B0%EB%B0%98 Conoha (코노하) 서버 구축기 (CentOS 6.7 기반)컴퓨터 2016.01.16 00:43지인의 부탁도 있고해서 리눅스 기초적인 사용법을 곁들여 Conoha (코노하) VPS 서비스를 이용한 서버 구축기를 정리해 본다. 1) 서버 사양 선택 / OS 설치 카드 결제까지 마치고 나면 서버 추가 메뉴 ( https://manage.conoha.jp/Service/Add/ )에서 추가할 사양 및 설치할 OS를 선택하여 서버를 생성하자. 서버..