我需要在像2D repetitive wave animation
这样的视图的背景上创建ImageView
,或者像这个链接一样在简单的视图中创建TextView
:
https://Github.com/RomainPiel/Titanic
但问题是这个图书馆在background
而不是simple 2D horizontal repetitive wave animation
left to right or vice versa
的文本上放了波浪。
我认为这将有一个简单的解决方案,但我无法弄清楚!只需1) First add this code as mention in above answer
private void loadTimer(){
try{
musicControlBar.setVisibility(View.VISIBLE);
countDownTimer = new CountDownTimer(7000, 1000){
@Override
public void onTick(long millisUntilFinished) {
//do nothing
}
@Override
public void onFinish() {
//this hide your layout when reach at 7 sec
musicControllBar.setVisibility(View.INVISIBLE);
}
}.start();
}catch(Exception e){}
}
2) Try onClickListener at VideoView in onClick() repeat your above code
if(isShowing){
musicControllBar.setVisibility(View.GONE);
isShowing=false;
}else{
if(countDownTimer!=null){
countDownTimer.cancel();
loadTimer();//start timer
}
musicControllBar.setVisibility(View.VISIBLE);
isShowing=true;
}
来自{{1}}。
(并且它不是可能重复的东西!我已经搜索过了;))
任何帮助都将不胜感激。