本文整理汇总了Java中org.kymjs.kjframe.KJBitmap.display方法的典型用法代码示例。如果您正苦于以下问题:Java KJBitmap.display方法的具体用法?Java KJBitmap.display怎么用?Java KJBitmap.display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kymjs.kjframe.KJBitmap
的用法示例。
在下文中一共展示了KJBitmap.display方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUserInterface
import org.kymjs.kjframe.KJBitmap; //导入方法依赖的package包/类
/**
* 动态设置用户界面
*/
private void setUserInterface() {
String sdCardPath = FileUtils.getSavePath(AppConfig.saveFolder);
String headImgPath = sdCardPath
+ PreferenceHelper.readString(aty, TAG,
AppConfig.SPLASH_HEAD_IMG_KEY, "");
String rootBgPath = sdCardPath
+ PreferenceHelper.readString(aty, TAG,
AppConfig.SPLASH_BACKGROUND_KEY, "");
String boxBgPath = sdCardPath
+ PreferenceHelper.readString(aty, TAG,
AppConfig.SPLASH_BOX_KEY, "");
String contentStr = PreferenceHelper.readString(aty, TAG,
AppConfig.SPLASH_CONTENT_KEY,
getString(R.string.splash_content));
KJBitmap kjb = new KJBitmap();
kjb.display(mRlRoot, rootBgPath);
kjb.display(mImgHead, headImgPath);
kjb.display(mRlBox, boxBgPath);
mTvContent.setText(contentStr);
}
示例2: display2
import org.kymjs.kjframe.KJBitmap; //导入方法依赖的package包/类
private void display2() {
KJBitmap kjb = new KJBitmap();
kjb.display(
mImg2,
"http://static.oschina.net/uploads/space/2015/0420/133006_NnLQ_12.jpg",
0, 0);
}
示例3: display3
import org.kymjs.kjframe.KJBitmap; //导入方法依赖的package包/类
private void display3() {
KJBitmap kjb = new KJBitmap();
kjb.display(
mImg3,
"http://static.oschina.net/uploads/space/2015/0420/133006_NnLQ_12.jpg",
new BitmapCallBack() {
@Override
public void onPreLoad() {
super.onPreLoad();
ViewInject.toast("即将开始下载");
}
@Override
public void onSuccess(Bitmap bitmap) {
super.onSuccess(bitmap);
ViewInject.toast("加载成功");
}
@Override
public void onFailure(Exception e) {
super.onFailure(e);
ViewInject.toast("加载失败");
}
@Override
public void onFinish() {
super.onFinish();
ViewInject.toast("加载完成");
}
});
}
示例4: display1
import org.kymjs.kjframe.KJBitmap; //导入方法依赖的package包/类
private void display1() {
KJBitmap kjb = new KJBitmap();
kjb.display(mImg1,
"http://static.oschina.net/uploads/space/2015/0420/133006_NnLQ_12.jpg");
}
示例5: setImageByUrl
import org.kymjs.kjframe.KJBitmap; //导入方法依赖的package包/类
/**
* 为ImageView设置图片
*
* @param viewId
* @param url
* @return
*/
public AdapterHolder setImageByUrl(KJBitmap bitmap, int viewId, String url) {
bitmap.display(getView(viewId), url);
return this;
}