목록전체 글 (1755)
오늘도 공부
@Override public void onLowMemory() { super.onLowMemory(); Glide.get(this).clearMemory(); } @Override public void onTrimMemory(int level) { super.onTrimMemory(level); Glide.get(this).trimMemory(level); } 을 넣어주는 센스~
출처 : https://rongi.github.io/kotlin-blog/rxjava/rx/2017/08/01/error-handling-in-rxjava.html?utm_source=Android+Weekly&utm_campaign=51f4814861-android-weekly-269&utm_medium=email&utm_term=0_4eb677ad19-51f4814861-338106413Once you start writing RxJava code you realize that some things can be done in different ways and sometimes it’s hard to identify best practices right away. Error handling is one..
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
