当前位置: 首页>>代码示例>>Java>>正文


Java KLog类代码示例

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


KLog类属于com.socks.library包,在下文中一共展示了KLog类的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");
}
 
开发者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


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