• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java KLog类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.socks.library.KLog的典型用法代码示例。如果您正苦于以下问题:Java KLog类的具体用法?Java KLog怎么用?Java KLog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



KLog类属于com.socks.library包,在下文中一共展示了KLog类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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");
}
 
开发者ID:linsir6,项目名称:TripBuyer,代码行数:18,代码来源:SellerTravelDetailsActivity.java


示例2: network

import com.socks.library.KLog; //导入依赖的package包/类
private void network() {
    Observable<Object> merge = Observable.mergeArray(daily, daily2);
    RxNetWork.getInstance().getApi(merge, new RxNetWorkListener<Object>() {
        @Override
        public void onNetWorkStart() {
            KLog.i("onNetWorkStart");
        }

        @Override
        public void onNetWorkError(Throwable e) {
            KLog.i("onNetWorkError:" + e.getMessage());
        }

        @Override
        public void onNetWorkComplete() {
            KLog.i("onNetWorkComplete");
        }

        @Override
        public void onNetWorkSuccess(Object data) {
            KLog.i(data);
        }
    });

}
 
开发者ID:7449,项目名称:RxNetWork,代码行数:26,代码来源:RxJavaMergeActivity.java


示例3: 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);
        }
    }
}
 
开发者ID:7449,项目名称:JsoupSample,代码行数:18,代码来源:K567DetailActivity.java


示例4: onCreateViewHolder

import com.socks.library.KLog; //导入依赖的package包/类
@Override
public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int index) {

    if (index > -1) {
        //getting the ViewHolder class for a given item position
        Class viewHolderClass = this.viewHolders.get(index);

        View view = LayoutInflater.
                from(viewGroup.getContext()).
                inflate(fragmentResources.get(viewHolderClass), viewGroup, false);

        //getting the constuctor of the ViewHolder by instropection
        try {
            Constructor constructor =
                    viewHolderClass.getConstructor(View.class);
            return (ViewHolder) constructor.newInstance(view);
        } catch (Exception e) {
            KLog.e("exception while creating viewHolder : " + e.getLocalizedMessage(), e);
        }
    }

    return null;
}
 
开发者ID:LApptelier,项目名称:SmartRecyclerView,代码行数:24,代码来源:MultiGenericAdapter.java


示例5: validate

import com.socks.library.KLog; //导入依赖的package包/类
private boolean validate() {
    KLog.d("Login....");
    boolean valid = true;
    String email = _emailText.getText().toString();
    String password = _passwordText.getText().toString();

    //这是一个正则表达式
    if (email.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(email).matches()) {
        _emailText.setError("enter a valid email address");
        valid = false;
    } else {
        _emailText.setError(null);
    }

    if (password.isEmpty() || password.length() < 6) {
        _passwordText.setError("the password length must be greater than six");
        valid = false;
    } else {
        _passwordText.setError(null);
    }

    return valid;
}
 
开发者ID:haihaio,项目名称:AmenEye,代码行数:24,代码来源:LoginActivity.java


示例6: 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);
}
 
开发者ID:linsir6,项目名称:TripBuyer,代码行数:26,代码来源:OnlinePayActivity.java


示例7: initBlance

import com.socks.library.KLog; //导入依赖的package包/类
private void initBlance() {
    HttpResultListener<Obj> listener = new HttpResultListener<Obj>() {
        @Override public void onSuccess(Obj obj) {
            // KLog.i("____lin____> + " + String.valueOf(obj.getBalance()));
            KLog.i("____lin____> + 成功" + obj.getBalance());


            String money = String.valueOf(obj.getBalance());
            float scale = Float.valueOf(money);
            DecimalFormat fnum = new DecimalFormat("##0.00");
            String dd = fnum.format(scale);
            balance.setText(String.valueOf(dd + "(元)"));

        }

        @Override public void onError(Throwable e) {
            KLog.i("____lin____> + " + e.toString());
        }
    };

    A.getA(4, 0, 1).walltet(listener, "1");

}
 
开发者ID:linsir6,项目名称:TripBuyer,代码行数:24,代码来源:MeWalletActivity.java


示例8: 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;
    }
}
 
开发者ID:linsir6,项目名称:TripBuyer,代码行数:23,代码来源:TestActivity2.java


示例9: 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());
        }
    };
}
 
开发者ID:linsir6,项目名称:TripBuyer,代码行数:22,代码来源:ReleaseOrderActivity.java


示例10: animaClip

import com.socks.library.KLog; //导入依赖的package包/类
void animaClip(Rect clipFrom, Rect clipTo) {
    this.clipFrom = new RectF(clipFrom);
    this.clipTo = new RectF(clipTo);
    KLog.i("clip", "clipFrom  >>>  " + clipFrom.toShortString());
    KLog.i("clip", "clipTo  >>>  " + clipTo.toShortString());

    if (!clipFrom.isEmpty() && !clipTo.isEmpty()) {
        //算出裁剪比率
        float dx = Math.min(1.0f, clipTo.width() * 1.0f / clipFrom.width() * 1.0f);
        float dy = Math.min(1.0f, clipTo.height() * 1.0f / clipFrom.height() * 1.0f);
        //因为scroller是对起始值和终点值之间的数值影响,所以减去1,如果为0,意味着不裁剪,因为目标值比开始值大,而画布无法再扩大了,所以忽略
        dx = dx - 1;
        dy = dy - 1;
        //从1开始,乘以1w保证精度
        clipScroller.startScroll((int) (0 * PRECISION), (int) (0 * PRECISION), (int) (dx * PRECISION), (int) (dy * PRECISION), ANIMA_DURATION);
    }
}
 
开发者ID:razerdp,项目名称:FriendCircle,代码行数:18,代码来源:GalleryPhotoView.java


示例11: loadData

import com.socks.library.KLog; //导入依赖的package包/类
private void loadData(boolean clean) {
    KLog.a(mDataManager);
    subscription = mRealm
            .where(Image.class)
            .isNotNull("desc")
            .findAllSortedAsync("publishedAt")
            .asObservable()
            .filter(image -> image.isLoaded())
            .flatMap(image1 ->
                    mDataManager.getImageData(mPage)
                            .subscribeOn(Schedulers.io())
                            .observeOn(AndroidSchedulers.mainThread()))
            .map(ImageToMeizhiMapper.getInstance())
            .subscribeOn(AndroidSchedulers.mainThread())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(images3 -> {
                if (clean) mMeizhisList.clear();
                mGanWuAdapter.updateItems(images3,true);
                setRequestDataRefresh(false);
                mHasLoadedOnce = true;
            }, throwable -> loadError(throwable));
}
 
开发者ID:Dimon94,项目名称:GanWuMei,代码行数:23,代码来源:GanWuFragment.java


示例12: loadData

import com.socks.library.KLog; //导入依赖的package包/类
private void loadData() {
    KLog.a(mDataManager);
    mSubscription = mDataManager.getGanWuData(mYear, mMonth, mDay)
            .map(data -> data.results)
            .map(this::addAllResults)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(list -> {
                if (list.isEmpty()) {
                    showEmptyView();
                } else {
                    mAdapter.notifyDataSetChanged();
                }
                setRequestDataRefresh(false);
                mHasLoadedOnce = true;
            }, throwable -> loadError(throwable));
}
 
开发者ID:Dimon94,项目名称:GanWuMei,代码行数:18,代码来源:GanDailyFragment.java


示例13: onCreateView

import com.socks.library.KLog; //导入依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    if (view == null) {
        view = inflater.inflate(R.layout.fragment_recyclerview, container, false);
        //获取索引值
        Bundle bundle = getArguments();
        if (bundle != null) {
            mGanWuType = bundle.getString(Constant.FRAGMENT_TYPE);
            KLog.a(mGanWuType);
        }
    }
    ButterKnife.bind(this, view);
    mRealm = Realm.getDefaultInstance();
    mNewsList = new ArrayList<>();

    //因为共用一个Fragment视图,所以当前这个视图已被加载到Activity中,必须先清除后再加入Activity
    ViewGroup parent = (ViewGroup) view.getParent();
    if (parent != null) {
        parent.removeView(view);
    }
    return view;
}
 
开发者ID:Dimon94,项目名称:GanWuMei,代码行数:24,代码来源:GanWuListFragment.java


示例14: onCreate

import com.socks.library.KLog; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_web);
    ButterKnife.bind(this);
    mUrl = getIntent().getStringExtra(EXTRA_URL);
    mTitle = getIntent().getStringExtra(EXTRA_TITLE);

    initToolbar();
    initSetting();
    KLog.a(mUrl);
    mWebView.loadUrl(mUrl);
    KLog.a(mWebView);
    mTvTitle.setFactory(() -> {
        TextView textView = new TextView(this);
        textView.setTextAppearance(this, R.style.WebTitle);
        textView.setSingleLine(true);
        textView.setEllipsize(TextUtils.TruncateAt.MARQUEE);
        textView.postDelayed(() -> textView.setSelected(true), 1738);
        return textView;
    });
    mTvTitle.setInAnimation(this, android.R.anim.fade_in);
    mTvTitle.setOutAnimation(this, android.R.anim.fade_out);
    if (mTitle != null) setTitle(mTitle);
}
 
开发者ID:Dimon94,项目名称:GanWuMei,代码行数:26,代码来源:WebActivity.java


示例15: initView

import com.socks.library.KLog; //导入依赖的package包/类
private void initView() {

        drawerToggle = new ActionBarDrawerToggle(MainActivity.this, drawerLayout, R.string.OPEN_DRAWER_CONTENT_DESC_RES
                , R.string.OPEN_DRAWER_CONTENT_DESC_RES);
        drawerLayout.setDrawerListener(drawerToggle);
        getSupportActionBar().setHomeButtonEnabled(true);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        rootLayout = (CoordinatorLayout) findViewById(R.id.rootLayout);
        fabBtn = (FloatingActionButton) findViewById(R.id.fabBtn);
        fabBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Date curDate = new Date(System.currentTimeMillis());//获取当前时间
                KLog.a(curDate);
                Intent intent = new Intent(MainActivity.this, GanDailyActivity.class);
                intent.putExtra(GanDailyActivity.EXTRA_GAN_DATE, curDate);
                startActivity(intent);
            }
        });

        mNavigation.setNavigationItemSelectedListener(this);
    }
 
开发者ID:Dimon94,项目名称:GanWuMei,代码行数:23,代码来源:MainActivity.java


示例16: initViews

import com.socks.library.KLog; //导入依赖的package包/类
@Override
public void initViews() {
    mDrawerLayout.addDrawerListener(new DrawerLayout.SimpleDrawerListener() {
        @Override
        public void onDrawerClosed(View drawerView) {
            super.onDrawerClosed(drawerView);
            if(isSwitchNight && ismIsAddedView()){
                setIsAddedView(false);
                getWindow().setWindowAnimations(R.style.WindowAnimationFadeInOut);
                KLog.d("NightMode"," - recreate - ");
                recreate();
            }
        }
    });

    mNavigationView.setNavigationItemSelectedListener(this);
    initNightModeSwitch();
    childFragmentType = childFragmentType == null ? CHILD_FRAGMENT_TAG_NEWS : childFragmentType;
    setDefaultChildFragment(childFragmentType);
}
 
开发者ID:LuoboDcom,项目名称:ZZShow,代码行数:21,代码来源:HomeActivity.java


示例17: encrypt

import com.socks.library.KLog; //导入依赖的package包/类
@Deprecated
private static String encrypt(String cleartext) {
    if (cleartext == null || cleartext.length() == 0) {
        return cleartext;
    }
    try {
        final Cipher cipher = Cipher.getInstance(AES_KEY_ALG, PROVIDER);
        cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(
                SecurePreferences.sKey, AES_KEY_ALG));
        return SecurePreferences.encode(cipher.doFinal(cleartext
                .getBytes("UTF-8")));
    } catch (Exception e) {
        if (sLoggingEnabled) {
            KLog.e(TAG, "encrypt:::" + e.toString());
        }
        return null;
    }
}
 
开发者ID:ydmmocoo,项目名称:StudyApp,代码行数:19,代码来源:SecurePreferences.java


示例18: decrypt

import com.socks.library.KLog; //导入依赖的package包/类
@Deprecated
private static String decrypt(String ciphertext) {
    if (ciphertext == null || ciphertext.length() == 0) {
        return ciphertext;
    }
    try {
        final Cipher cipher = Cipher.getInstance(AES_KEY_ALG, PROVIDER);
        cipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(
                SecurePreferences.sKey, AES_KEY_ALG));
        return new String(cipher.doFinal(SecurePreferences
                .decode(ciphertext)), "UTF-8");
    } catch (Exception e) {
        if (sLoggingEnabled) {
            KLog.e(TAG, "decrypt:::" + e);
        }
        return null;
    }
}
 
开发者ID:ydmmocoo,项目名称:StudyApp,代码行数:19,代码来源:SecurePreferences.java


示例19: getDataSuccess

import com.socks.library.KLog; //导入依赖的package包/类
@Override
public void getDataSuccess(CookBookListModel model) {
    KLog.e(new Gson().toJson(model));
    if (model.getTngou()!=null){
        if (isFirst){
            isFirst=false;
            mData=model;
            mAdapter=new CookBookListAdapter(context,mData);
            mXRecyclerView.setAdapter(mAdapter);
            mAdapter.setOnItemClickLitener(new ItemClickListener());
        }else {
            if (page==1){
                mData.getTngou().clear();
                mData=model;
                mAdapter.setData(mData);
                mXRecyclerView.refreshComplete();
            }else {
                mData.getTngou().addAll(model.getTngou());
                mAdapter.setData(mData);
                mXRecyclerView.loadMoreComplete();
            }
        }
    }
}
 
开发者ID:ydmmocoo,项目名称:StudyApp,代码行数:25,代码来源:CookBookListActivity.java


示例20: onCreate

import com.socks.library.KLog; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();

    init();

    //初始化KLog
    KLog.init(BuildConfig.LOG_DEBUG);
    // fresco图片库的初始化
    ImagePipelineConfig.Builder configBuilder = ImagePipelineConfig.newBuilder(this);
    ImagePipelineConfig imagePipelineConfig = configBuilder.build();
    Fresco.initialize(this, imagePipelineConfig);

    /**
     * 如果存在SD卡则将缓存写入SD卡,否则写入手机内存
     */
    if (getApplicationContext().getExternalCacheDir() != null && ExistSDCard()) {
        cacheDir = getApplicationContext().getExternalCacheDir().toString();
    } else {
        cacheDir = getApplicationContext().getCacheDir().toString();
    }
}
 
开发者ID:ydmmocoo,项目名称:StudyApp,代码行数:23,代码来源:App.java



注:本文中的com.socks.library.KLog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AxiomType类代码示例发布时间:2022-05-21
下一篇:
Java ThrowingCallable类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap