本文整理匯總了Java中pl.droidsonroids.gif.GifDrawable.isPlaying方法的典型用法代碼示例。如果您正苦於以下問題:Java GifDrawable.isPlaying方法的具體用法?Java GifDrawable.isPlaying怎麽用?Java GifDrawable.isPlaying使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pl.droidsonroids.gif.GifDrawable
的用法示例。
在下文中一共展示了GifDrawable.isPlaying方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onClick
import pl.droidsonroids.gif.GifDrawable; //導入方法依賴的package包/類
@Override
public void onClick(View v) {
GifDrawable drawable = (GifDrawable) ((GifImageView) v).getDrawable();
if (drawable.isPlaying())
drawable.stop();
else
drawable.start();
}
示例2: onGifClick
import pl.droidsonroids.gif.GifDrawable; //導入方法依賴的package包/類
@OnClick({R.id.gif1, R.id.gif2})
public void onGifClick(GifImageView view) {
GifDrawable drawable = (GifDrawable) view.getDrawable();
if (drawable.isPlaying())
drawable.stop();
else
drawable.start();
}
示例3: onGifClick
import pl.droidsonroids.gif.GifDrawable; //導入方法依賴的package包/類
@OnClick({R.id.gif1, R.id.gif2, R.id.gif3})
public void onGifClick(GifImageView view) {
GifDrawable drawable = (GifDrawable) view.getDrawable();
if (drawable.isPlaying())
drawable.stop();
else
drawable.start();
}
示例4: onGifClick
import pl.droidsonroids.gif.GifDrawable; //導入方法依賴的package包/類
@OnClick(R.id.gif1)
public void onGifClick(GifImageView view) {
GifDrawable drawable = (GifDrawable) view.getDrawable();
if (drawable.isPlaying())
drawable.stop();
else
drawable.start();
}
示例5: startGif
import pl.droidsonroids.gif.GifDrawable; //導入方法依賴的package包/類
public static void startGif(GifImageView view) {
GifDrawable drawable = (GifDrawable) view.getDrawable();
if (!drawable.isPlaying()) {
drawable.reset();
drawable.start();
}
}
示例6: stopGif
import pl.droidsonroids.gif.GifDrawable; //導入方法依賴的package包/類
public static void stopGif(GifImageView view) {
GifDrawable drawable = (GifDrawable) view.getDrawable();
if (drawable.isPlaying())
drawable.stop();
}