안드로이드 개발에서 많은 비중을 차지하는 UI패턴은 ListView에서 여러 이미지를 보여주는 Activity입니다. 전형적인 흐름을 정리하면 아래와 같습니다.
1. 목록조회 API호출
2. API를 파싱하고 ListView에 데이터를 보여 줌.
3. 각 아이템마다의 이미지 주소로 다시 서버를 호출
4. 이미지를 디코딩하고 ImageView에서 보여줌.
안드로이드 개발에서 많은 비중을 차지하는 UI패턴은 ListView에서 여러 이미지를 보여주는 Activity입니다. 전형적인 흐름을 정리하면 아래와 같습니다.
1. 목록조회 API호출
2. API를 파싱하고 ListView에 데이터를 보여 줌.
3. 각 아이템마다의 이미지 주소로 다시 서버를 호출
4. 이미지를 디코딩하고 ImageView에서 보여줌.
JAVA_HOME | |
/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home |
Fixing "There was a problem with the editor 'vi'" for Git on Mac OS X Snow Leopard | |
error: There was a problem with the editor ‘vi' | |
$ git config --global core.editor /usr/bin/vim | |
http://tooky.co.uk/there-was-a-problem-with-the-editor-vi-git-on-mac-os-x/ |
find ./ -name \*.java -type f | \ | |
(while read file; do \ | |
iconv -f CP949 -t UTF-8 "$file" | sponge "$file"; \ | |
done); | |
export BUILD_NUMBER=${USER}-`date +%Y%m%d-%H%M%S` | |
$ echo "hello" | tee logfile_$(date '+%Y%m%d-%H%M%S').txt | |
hello | |
$ ls logfile_* | |
logfile_20130821-101235.txt | |
$ date '+%Y%m%d-%H%M%S' | |
20140302-091211 | |
progname 2>&1 | tee tempfile ; textmate tempfile |
Put this into ~/.gradle/gradle.properties | |
RELEASE_STORE_FILE={path to your keystore} | |
RELEASE_STORE_PASSWORD=***** | |
RELEASE_KEY_ALIAS=***** | |
RELEASE_KEY_PASSWORD=***** | |
Modify your build.gradle like this: |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
''' | |
@package smi2srt | |
@brief this module is for convert .smi subtitle file into .srt subtitle | |
(Request by Alfred Chae) | |
Started : 2011/08/08 | |
license: GPL |
#!/usr/bin/env bash | |
SOURCE_PATH=$1 | |
for f in "$SOURCE_PATH"/*.png; do | |
fullname=$(basename "$f") | |
filename=${fullname%@2x.*} | |
imageset="$SOURCE_PATH"/"$filename".imageset | |
jsonfile="$imageset"/Contents.json |
PackageInfo info; | |
try { | |
info = getPackageManager().getPackageInfo("ecentinela.mercadotes", PackageManager.GET_SIGNATURES); | |
for (Signature signature : info.signatures) { | |
MessageDigest md; | |
md = MessageDigest.getInstance("SHA"); | |
md.update(signature.toByteArray()); |