티스토리 뷰
AlphaAnimation alphaDown,alphaUp;
_button = (Button)findViewById(R.id.button1);
//set animation
alphaDown =
new
AlphaAnimation(
1
.0f,
0
.5f);
alphaUp =
new
AlphaAnimation(
0
.5f,
1
.0f);
alphaDown.setDuration(
100
);
alphaUp.setDuration(
100
);
alphaDown.setFillAfter(
true
);
alphaUp.setFillAfter(
true
);
//set OnTouchListener
_button.setOnTouchListener(
new
View.OnTouchListener() {
@Override
public
boolean
onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
if
(event.getAction()==MotionEvent.ACTION_DOWN)
_button.startAnimation(alphaDown);
if
(event.getAction()==MotionEvent.ACTION_UP)
_button.startAnimation(alphaUp);
return
false
;
}
});
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 공인구
- 기아짤방
- tomcat
- 간식송
- svn
- 연도
- 구글수표
- jQuery
- Ant
- ie6과 ie7 같이 사용하기 multi ie
- wii wi-fi 51330
- MySQL
- JEUS
- Java
- CSS
- log4j
- 김치송
- oracle
- erwin Schema Generation 시 필드 순서
- 한글유니코드
- 커플링
- TinyMCE
- 자블라니
- 이미지리사이즈
- trac
- ERwin
- 아디다시
- java 엑셀
- imagemagick
- eclipse plugin
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함