728x90

65+ 무료 풀, 잔디(Grass) 텍스쳐 모음

65+ Free High Resolution Grass Texture

grass texture 01 65+ Free High Resolution Grass TexturesDownload Grass texture

grass texture 02 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 03 65+ Free High Resolution Grass TexturesDownload Grass Textures (10 HD grass textures)

grass texture 04 65+ Free High Resolution Grass TexturesDownload Grass Textures (6 Grass textures)

grass texture 05 65+ Free High Resolution Grass TexturesDownload Grass Textures (5 grass textures)

grass texture 06 e1399398833905 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 07 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 08 e1399399154475 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 09 e1399399259226 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 10 e1399399340232 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 11 e1399399433859 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 12 e1399399596184 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 13 e1399399710376 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 14 e1399399899782 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 15 65+ Free High Resolution Grass TexturesDownload Grass Textures (6 Grass Textures)

grass texture 16 e1399400190997 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 17 65+ Free High Resolution Grass TexturesDownload Grass Textures (15 Grass Textures)

grass texture 18 e1399400728183 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 19 e1399400963764 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 20 e1399401099399 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 21 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 22 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 23 e1399401297681 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 24 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 26 e1399401420312 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 27 e1399401486621 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 28 e1399401614418 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 29 e1399401689861 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 30 e1399401787257 65+ Free High Resolution Grass TexturesDownload Grass Texture

grass texture 31 e1399401902328 65+ Free High Resolution Grass TexturesDownload Grass Texture

clovery grass texture tile by womblesmack d6islu4 e1399402503741 65+ Free High Resolution Grass TexturesDownload Grass Texture


출처: http://www.fbml.co.kr/2014/07/10/65-free-high-resolution-grass-textures/


Posted by 앗뜨거
,
728x90

이 세가지 방법 말고도 뭐 다른 방법이 있겠지만 대충 요 3가지 정도만 알고 있어도 충분하고도 넘칠것 같다.

이전까지는 제일 첫번째 방법으로만 Map 에 있는 것들을 꺼내서 썼었는데

세번째 방법도 꽤 간결하고 가독성도 좋은것 같아 앞으로 세번째 방법을 주로 써야 겠다는 생각을 해본다.


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
31
32
33
34
35
36
package com.tistory.stove99;
 
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
 
public class MapIterationSample {
    public static void main(String[] agrs) {
        Map<String, String> map = new HashMap<String, String>();
         
        map.put("키1", "값1");
        map.put("키2", "값2");
        map.put("키3", "값3");
        map.put("키4", "값4");
        map.put("키5", "값5");
        map.put("키6", "값6");
         
         
        // 방법1
        Iterator<String> keys = map.keySet().iterator();
        while( keys.hasNext() ){
            String key = keys.next();
            System.out.println( String.format("키 : %s, 값 : %s", key, map.get(key)) );
        }
         
        // 방법2
        for( Map.Entry<String, String> elem : map.entrySet() ){
            System.out.println( String.format("키 : %s, 값 : %s", elem.getKey(), elem.getValue()) );
        }
         
        // 방법3
        for( String key : map.keySet() ){
            System.out.println( String.format("키 : %s, 값 : %s", key, map.get(key)) );
        }
    }
}

출처: http://stove99.tistory.com/96

Posted by 앗뜨거
,
728x90

Android Toast duration 조정하기..

안드로이드에서는 메세지를 보여주고 사라지는 용도로 Toast를 빈번하게 사용하고 있습니다.
하지만, 아쉬운 점이 하나 있다면, duration을 설정할 수 없습니다. 
그래서, 간단하게 duration을 변경하는 방법으로, Toast의 show()를 쓰레드로 원하는 시간 만큼 계속 보여주면 쉽게 해결할 수 있습니다.

간단하게, 안드로이드 Toast 클래스에서 제공하는 SHORT과 LONG의 기본 시간값입니다..

private static final int LONG_DELAY = 3500; // 3.5 seconds
private static final int SHORT_DELAY = 2000; // 2 seconds

아래는 CountDownTimer를 이용해서 총 4초동안, 1초씩 줄어들면서 Toast의 show() 메소드를 호출해서, 총 6초(Toast.LENGTH_SHORT이 duration 이니)동안 메세지를 보여주는 코드입니다..

final Toast toast = Toast.makeText(context(), getString(R.string.login_error),Toast.LENGTH_SHORT);
toast.show();
new CountDownTimer(4000, 1000) {
  public void onTick(long millisUntilFinished) {toast.show();}
  public void onFinish() {toast.show();}
}.start();

또 다른 방법으로 https://github.com/quiqueqs/Toast-Expander/blob/master/src/com/thirtymatches/toasted/ToastExpander.java 에서 쓰레드로 시간을 빼면서 루프를 돌리는 방법도 있습니다.

출처 : http://sjava.net/?p=360

Posted by 앗뜨거
,