本文整理汇总了Java中com.socks.library.KLog.i方法的典型用法代码示例。如果您正苦于以下问题:Java KLog.i方法的具体用法?Java KLog.i怎么用?Java KLog.i使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.socks.library.KLog
的用法示例。
在下文中一共展示了KLog.i方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: down
import com.socks.library.KLog; //导入方法依赖的package包/类
@OnClick(R.id.down)
public void down() {
if (mFlowLayout2.getVisibility() == View.VISIBLE) {
mFlowLayout2.setVisibility(View.GONE);
KLog.i("---lin---> ok1111");
return;
}
if (mFlowLayout2.getVisibility() == View.GONE) {
mFlowLayout2.setVisibility(View.VISIBLE);
KLog.i("---lin---> ok2222");
}
KLog.i("---lin---> ok");
}
示例2: netWorkSuccess
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void netWorkSuccess(List<MovieModel> data) {
if (mStatusView != null) {
if (TextUtils.isEmpty(data.get(0).playUrl)) {
mAdapter.removeAll();
mStatusView.setStatus(StatusLayout.ERROR);
UIUtils.snackBar(mStatusView, R.string.video_error);
} else {
mAdapter.removeAll();
mAdapter.addAllData(data);
jcVideoPlayerStandard.setVisibility(View.VISIBLE);
KLog.i(data.get(0).playUrl);
jcVideoPlayerStandard.setUp(data.get(0).playUrl, JCVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, title);
ImageLoaderUtils.display(jcVideoPlayerStandard.thumbImageView, imageUrl);
}
}
}
示例3: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_release_order);
initAddress();
ButterKnife.bind(this);
listener = new HttpResultListener<String>() {
@Override public void onSuccess(String s) {
KLog.i("----lin----> 发布成功+ " + s);
wid = s;
choosePayDialog();
}
@Override public void onError(Throwable e) {
KLog.i("____lin____> 发布失败+ " + e.toString());
}
};
}
示例4: onActivityResult
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case 105:
Log.d("lin", "----lin---->CHOOSE_BIG_PICTURE: data = " + data);//it seems to be null
KLog.i("----lin---->" + imageUri);
if (imageUri != null) {
Bitmap bitmap = decodeUriAsBitmap(imageUri);//decode bitmap
KLog.i("----lin---->" + bitmap);
bigIv.setImageBitmap(bitmap);
}
break;
default:
break;
}
}
示例5: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_online_pay);
ButterKnife.bind(this);
zhiFuBao.setChecked(true);
Intent intent = getIntent();
orderId = intent.getExtras().getString("orderId");
_money.setText(intent.getExtras().getString("yajin"));
_orderId.setText(orderId);
KLog.i("____lin____> orderId " + orderId);
HttpResultListener<String> listener = new HttpResultListener<String>() {
@Override public void onSuccess(String obj) {
KLog.i("____lin____> onlinePay +++" + obj);
s = obj;
}
@Override public void onError(Throwable e) {
}
};
A.getA(5, 0, 1).depositPay(listener, orderId);
}
示例6: applyOptions
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void applyOptions(Context context, GlideBuilder builder) {
//解决setTag问题
ViewTarget.setTagId(R.id.glide_tag_id);
//磁盘缓存
builder.setDiskCache(new DiskLruCacheFactory(AppFileHelper.getAppCachePath(), 50 * 1024 * 1024));
builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
//内存缓存
MemorySizeCalculator calculator = new MemorySizeCalculator(context);
int defaultMemoryCacheSize = calculator.getMemoryCacheSize();
int defaultBitmapPoolSize = calculator.getBitmapPoolSize();
//设置比默认大小大1.5倍的缓存和图片池大小
int customMemoryCacheSize = (int) (1.5 * defaultMemoryCacheSize);
int customBitmapPoolSize = defaultBitmapPoolSize;
KLog.i("poolSize", "bitmapPoolSize >>>>> "
+ android.text.format.Formatter.formatFileSize(context, customBitmapPoolSize)
+ " memorySize>>>>>>>> " +
android.text.format.Formatter.formatFileSize(context, customMemoryCacheSize));
builder.setMemoryCache(new LruResourceCache(customMemoryCacheSize));
builder.setBitmapPool(new LruBitmapPool(customBitmapPoolSize));
}
示例7: onClick
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btn_send:
RxBus.getInstance().post(BUS_TAG, "传递对象");
break;
case R.id.btn_unregister:
KLog.i(RxBus.getInstance().unregister(BUS_TAG));
break;
case R.id.btn_test_bus:
startActivity(A.class);
break;
case R.id.btn_start_network:
Observable<List<ListModel>> daily = RxNetWork
.observable(Api.ZLService.class)
.getList("daily", 20, 0)
.compose(RxCache.getInstance().transformerCN("1", true, new TypeToken<List<ListModel>>() {
}))
.map(new Function<CacheResult<List<ListModel>>, List<ListModel>>() {
@Override
public List<ListModel> apply(CacheResult<List<ListModel>> listCacheResult) throws Exception {
return listCacheResult.getResult();
}
});
RxNetWork
.getInstance()
.setLogInterceptor(new SimpleLogInterceptor())
.getApiTask(getClass().getSimpleName(), daily, this);
break;
case R.id.btn_cancel_network:
RxNetWork.getInstance().cancel(getClass().getSimpleName());
break;
case R.id.btn_test_rxjava:
startActivity(RxJavaMergeActivity.class);
break;
}
textView.setText("");
}
示例8: getList
import com.socks.library.KLog; //导入方法依赖的package包/类
public List<MagneticModel> getList() {
List<MagneticModel> listModels = new ArrayList<>();
MagneticModel magneticModel;
Elements a = document.select("ul.mlist").select("li");
for (Element element : a) {
magneticModel = new MagneticModel();
magneticModel.title = element.select("div.T1").text();
magneticModel.url = element.select("div.dInfo").select("a[href]").eq(0).attr("href");
KLog.i(magneticModel.url);
listModels.add(magneticModel);
}
return listModels;
}
示例9: onEventMainThread
import com.socks.library.KLog; //导入方法依赖的package包/类
public void onEventMainThread(FirstEvent event) {
KLog.i("____lin____" + event.getMsg());
String msg = event.getMsg();
if (msg.split(";")[0].equals("1")) {
where1.setText(msg.split(";")[1]);
}
if (msg.split(";")[0].equals("2")) {
where2.setText(msg.split(";")[1]);
}
if (msg.split(";")[0].equals("3")) {
where3.setText(msg.split(";")[1]);
}
}
示例10: netWork
import com.socks.library.KLog; //导入方法依赖的package包/类
protected void netWork(String url) {
KLog.i(url);
RxJsoupNetWork.getInstance().cancel(tag);
RxJsoupNetWork
.getInstance()
.getApi(tag, url, this);
}
示例11: bindData
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void bindData(Object o) {
super.bindData(o);
AVIMMessage message = (AVIMMessage) o;
if (message instanceof AVIMTextMessage) {
AVIMTextMessage textMessage = (AVIMTextMessage) message;
//contentView.setText(textMessage.getText());
try {
ImageUtil.requestImg(BaseApplication.get().getAppContext(), textMessage.getText().split("♂")[1], productPicture);
KLog.i("_____linsir_____1" + textMessage.getText().split("♂")[1]);
userName.setText(textMessage.getText().split("♂")[2]);
KLog.i("_____linsir_____2" + textMessage.getText().split("♂")[2]);
productName.setText(textMessage.getText().split("♂")[3]);
KLog.i("_____linsir_____3" + textMessage.getText().split("♂")[3]);
productCount.setText(textMessage.getText().split("♂")[4]);
KLog.i("_____linsir_____4" + textMessage.getText().split("♂")[4]);
productCount.setText(textMessage.getText().split("♂")[5]);
KLog.i("_____linsir_____5" + textMessage.getText().split("♂")[5]);
} catch (Exception e) {
}
}
}
示例12: call
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public Obj call(ResponseModel_no_list responseModel) {
if (responseModel.getCode() == NetworkException.REQUEST_OK) {
KLog.i("____lin____> + aaaaa");
return responseModel.getObj();
} else {
Log.i("lin", "---lin---> 错误代码: " + responseModel.getCode());
throw new NetworkException(responseModel.getCode());
}
}
示例13: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_me_route);
ButterKnife.bind(this);
mAdapter = new MeRouteAdapter();
rc.addOnItemTouchListener(new RecyclerItemClickListener(this, onItemClickListener));
rc.setLayoutManager(new LinearLayoutManager(this));
rc.setAdapter(mAdapter);
if (Shared.getUserInfo() == null) {
AlertDialog.Builder builder = new AlertDialog.Builder(MeRouteActivity.this);
dialog2(builder);
}
HttpResultListener<List<JourneyModel>> listener = new HttpResultListener<List<JourneyModel>>() {
@Override public void onSuccess(List<JourneyModel> journeyModels) {
KLog.i("========================成功");
mList = journeyModels;
if (journeyModels.size() == 0) {
hint.setVisibility(View.VISIBLE);
}
mAdapter.refresh(journeyModels);
}
@Override public void onError(Throwable e) {
KLog.i("========================失败" + e.toString());
hint.setVisibility(View.VISIBLE);
}
};
A.getA(2, 0, 1).meRoute(listener, "1", "200");
}
示例14: onScrollStateChanged
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
super.onScrollStateChanged(recyclerView, newState);
KLog.i("----0----5>");
if (madapter != null && newState == RecyclerView.SCROLL_STATE_IDLE && lastVisibleItem + 1 == madapter.getItemCount()) {
loadMoreData();
KLog.i("----0----4>" + madapter.getItemCount());
KLog.i("----0----4>" + lastVisibleItem + 1);
}
}
示例15: initListener
import com.socks.library.KLog; //导入方法依赖的package包/类
private void initListener() {
listener = new HttpResultListener<List<JourneyModel>>() {
@Override
public void onSuccess(List<JourneyModel> list) {
KLog.v("-----lin----->" + list.get(0).getMainCity());
refreshLayout.setRefreshing(false);
if (isLoadMore) {
KLog.i("----0----0>" + isLoadMore);
mlist.addAll(list);
madapter.refreshList(mlist);
madapter.notifyDataSetChanged();
madapter.showNoMore();
} else {
KLog.i("----0----1>" + isLoadMore);
if (list.size() != 0)
mlist = list;
madapter.refreshList(mlist);
madapter.notifyDataSetChanged();
}
KLog.i("----0----3>" + mlist.size());
}
@Override
public void onError(Throwable e) {
Log.i("lin", "----lin----> refresh error " + e.toString());
refreshLayout.setRefreshing(false);
madapter.showNoMore();
}
};
}