BLCheung
2018-06-28 01:06
rlRootView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (llTopPanel.getVisibility() == View.VISIBLE || llBottomPanel.getVisibility() == View.VISIBLE) { llTopPanel.setVisibility(View.GONE); llBottomPanel.setVisibility(View.GONE); } llTopPanel.setVisibility(View.VISIBLE); llBottomPanel.setVisibility(View.VISIBLE); // 5秒后无操作就GONE掉 mHandler.postDelayed(new Runnable() { @Override public void run() { llTopPanel.setVisibility(View.GONE); llBottomPanel.setVisibility(View.GONE); } }, AUTO_HIDE_TIME); } });
还没有人回答问题,可以看看其他问题
Android节目直播案例开发
12362 学习 · 22 问题
相似问题