本文整理汇总了Java中com.androidquery.callback.ImageOptions类的典型用法代码示例。如果您正苦于以下问题:Java ImageOptions类的具体用法?Java ImageOptions怎么用?Java ImageOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ImageOptions类属于com.androidquery.callback包,在下文中一共展示了ImageOptions类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: TweetView
点赞 3
import com.androidquery.callback.ImageOptions; //导入依赖的package包/类
public TweetView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
LayoutInflater.from(context).inflate(R.layout.view_tweet, this, true);
FontChanger.setViewGroupFont(this,
getResources().getString(R.string.font_default));
mTweetView = (TextView) findViewById(R.id.tweetText);
mTweetTimeView = (TextView) findViewById(R.id.tweetTime);
mUserNameView = (TextView) findViewById(R.id.userName);
userImageView = (ImageView) findViewById(R.id.userImage);
aQuery = new AQuery(context);
imageOptions = new ImageOptions();
// imageOptions.animation = AQuery.FADE_IN_NETWORK;
imageOptions.fallback = R.drawable.ic_launcher;
imageOptions.preset = BitmapFactory.decodeResource(getResources(),
R.drawable.ic_launcher);
}
开发者ID:MoshDev,
项目名称:TwitterFeedReaderSample,
代码行数:21,
代码来源:TweetView.java
示例2: image
点赞 2
import com.androidquery.callback.ImageOptions; //导入依赖的package包/类
protected T image(String url, ImageOptions options, String networkUrl)
{
if (view instanceof ImageView)
{
BitmapAjaxCallback.async(act, getContext(), (ImageView) view, url, progress, ah, options, proxy, networkUrl);
reset();
}
return self();
}
开发者ID:libit,
项目名称:lr_dialer,
代码行数:10,
代码来源:AbstractAQuery.java
示例3: image
点赞 2
import com.androidquery.callback.ImageOptions; //导入依赖的package包/类
protected T image(String url, ImageOptions options, String networkUrl){
if(view instanceof ImageView){
BitmapAjaxCallback.async(act, getContext(), (ImageView) view, url, progress, ah, options, proxy, networkUrl);
reset();
}
return self();
}
开发者ID:bblue000,
项目名称:ExoPlayerDemo,
代码行数:10,
代码来源:AbstractAQuery.java