final Button listBtn = (Button)findViewById(R.id.icon_list);
coverBtn.setOnClickListener(new Button.OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
mPage1.setVisibility(View.INVISIBLE);
mPage2.setVisibility(View.INVISIBLE);
listBtn.setVisibility(View.INVISIBLE);
coverBtn.setVisibility(View.INVISIBLE);
switch (v.getId()) {
case R.id.icon_cover:
mPage1.setVisibility(View.VISIBLE);
listBtn.setVisibility(View.VISIBLE);
break;
}
}
});
ImageButton channerBtn = (ImageButton)findViewById(R.id.channelButton);
channerBtn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent intent = new Intent(getWindow().getContext(), Channel.class);
//startActivity(intent);
startActivityForResult(intent, ACT_EDIT);
//dismissDialog(0);
}
});
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
mPage1.setVisibility(View.INVISIBLE);
mPage2.setVisibility(View.INVISIBLE);
listBtn.setVisibility(View.INVISIBLE);
coverBtn.setVisibility(View.INVISIBLE);
switch (v.getId()) {
case R.id.icon_cover:
mPage1.setVisibility(View.VISIBLE);
listBtn.setVisibility(View.VISIBLE);
break;
}
}
});
ImageButton channerBtn = (ImageButton)findViewById(R.id.channelButton);
channerBtn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent intent = new Intent(getWindow().getContext(), Channel.class);
//startActivity(intent);
startActivityForResult(intent, ACT_EDIT);
//dismissDialog(0);
}
});
'개발도구 > aOS - 안드로이드 개발' 카테고리의 다른 글
[안드로이드] TitleBar 없애기 (0) | 2011.05.18 |
---|---|
[Android] Intent 활용 예시[펌] (0) | 2011.05.18 |
특정view 보이게 안보이데 - setVisibility(View.INVISIBLE) (0) | 2011.05.18 |
iMovie 사용 블로그 추천 (0) | 2011.05.17 |
Rss listview (0) | 2011.05.17 |