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


Java R类代码示例

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


R类属于com.mingle.shapeloading包,在下文中一共展示了R类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onFinishInflate

import com.mingle.shapeloading.R; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
    Log.e("LoadingView", "onFinishInflate");
    super.onFinishInflate();

    View view = LayoutInflater.from(getContext()).inflate(R.layout.sjt_load_view, null);

    xDistance = dip2px(28.5f);
    yDistance = dip2px(38.5f);

    LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    layoutParams.gravity = Gravity.CENTER;

    mSJTShapeLoadingView = (SJTShapeLoadingView) view.findViewById(R.id.shapeLoadingView);
    mSJTShapeLoadingView2 = (SJTShapeLoadingView) view.findViewById(R.id.shapeLoadingView2);
    mSJTShapeLoadingView.setColor(R.color.red);
    mSJTShapeLoadingView2.setColor(R.color.pink);

    addView(view, layoutParams);
    startLoading(0);
}
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:22,代码来源:SJTLoadingView.java

示例2: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init(Context context, AttributeSet attrs) {

        TypedArray typedArray = context
                .obtainStyledAttributes(attrs, R.styleable.WUBALoadingView);
        mLoadText = typedArray.getString(R.styleable.WUBALoadingView_loadingText);
        mTextAppearance = typedArray.getResourceId(R.styleable.WUBALoadingView_loadingTextAppearance, -1);

        typedArray.recycle();
    }
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:10,代码来源:WUBALoadingView.java

示例3: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init() {
    mPaint = new Paint();
    mPaint.setColor(getResources().getColor(R.color.triangle));
    mPaint.setAntiAlias(true);
    mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
    setBackgroundColor(getResources().getColor(R.color.view_bg));
      mTriangleColor = getResources().getColor(R.color.triangle);
      mCircleColor = getResources().getColor(R.color.circle);
      mRectColor = getResources().getColor(R.color.triangle);
}
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:11,代码来源:WUBAShapeLoadingView.java

示例4: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init() {
    mDialog = new Dialog(mContext, R.style.custom_dialog);
    mDialogContentView= LayoutInflater.from(mContext).inflate(R.layout.layout_dialog,null);


    mLoadingView= (LoadingView) mDialogContentView.findViewById(R.id.loadView);
    mDialog.setContentView(mDialogContentView);
}
 
开发者ID:liufatao,项目名称:android-shapeLoadingView,代码行数:9,代码来源:ShapeLoadingDialog.java

示例5: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init(Context context, AttributeSet attrs) {

        TypedArray typedArray = context
                .obtainStyledAttributes(attrs, R.styleable.LoadingView);
        mLoadText = typedArray.getString(R.styleable.LoadingView_loadingText);
        mTextAppearance = typedArray.getResourceId(R.styleable.LoadingView_loadingTextAppearance, -1);

        typedArray.recycle();
    }
 
开发者ID:liufatao,项目名称:android-shapeLoadingView,代码行数:10,代码来源:LoadingView.java

示例6: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init() {
    mPaint = new Paint();
    mPaint.setColor(getResources().getColor(R.color.triangle));
    mPaint.setAntiAlias(true);
    mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
    setBackgroundColor(getResources().getColor(R.color.view_bg));
}
 
开发者ID:canmeidanxue,项目名称:android-shapeLoadingView-master,代码行数:8,代码来源:ShapeLoadingView.java

示例7: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init() {
    mDialog = new Dialog(mContext, R.style.custom_dialog);
    mDialogContentView = LayoutInflater.from(mContext).inflate(R.layout.layout_dialog, null);
    mLoadingView = (SJTLoadingView) mDialogContentView.findViewById(R.id.loadView);
    mDialog.setContentView(mDialogContentView);
}
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:7,代码来源:ShapeLoadingDialog.java

示例8: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init() {
    mPaint = new Paint();
    mPaint.setAntiAlias(true);
    mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
    setBackgroundColor(getResources().getColor(R.color.view_bg));
}
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:7,代码来源:SJTShapeLoadingView.java

示例9: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init(Context context, AttributeSet attrs) {
    TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.WUBALoadingView);
    typedArray.recycle();
    run = true;
}
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:6,代码来源:SJTLoadingView.java

示例10: onFinishInflate

import com.mingle.shapeloading.R; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
    super.onFinishInflate();

    View view = LayoutInflater.from(getContext()).inflate(R.layout.wuba_load_view, null);

    mDistance = dip2px(54f);

    LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

    layoutParams.gravity = Gravity.CENTER;

    mShapeLoadingView = (WUBAShapeLoadingView) view.findViewById(R.id.shapeLoadingView);

    mIndicationIm = (ImageView) view.findViewById(R.id.indication);
    mLoadTextView = (TextView) view.findViewById(R.id.promptTV);

    if (mTextAppearance != -1) {
        mLoadTextView.setTextAppearance(getContext(), mTextAppearance);
    }
    setLoadingText(mLoadText);

    addView(view, layoutParams);


    startLoading(900);
}
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:28,代码来源:WUBALoadingView.java

示例11: init

import com.mingle.shapeloading.R; //导入依赖的package包/类
private void init() {

        View view = LayoutInflater.from(context).inflate(R.layout.load_animation_list, this, true);

        imageView = (ImageView) view.findViewById(R.id.iv_animation);

        imageView.setImageResource(R.drawable.animation_list);
        //给动画资源赋值
        animationDrawable = (AnimationDrawable) imageView.getDrawable();

        animationDrawable.start();
    }
 
开发者ID:LinLeyang,项目名称:wuba_sjt_loadingview,代码行数:13,代码来源:FrameLoadingView.java

示例12: onFinishInflate

import com.mingle.shapeloading.R; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
    super.onFinishInflate();

    View view = LayoutInflater.from(getContext()).inflate(R.layout.load_view, null);

    mDistance = dip2px(54f);

    LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

    layoutParams.gravity = Gravity.CENTER;

    mShapeLoadingView = (ShapeLoadingView) view.findViewById(R.id.shapeLoadingView);

    mIndicationIm = (ImageView) view.findViewById(R.id.indication);
    mLoadTextView = (TextView) view.findViewById(R.id.promptTV);

    if (mTextAppearance != -1) {
        mLoadTextView.setTextAppearance(getContext(), mTextAppearance);
    }
    setLoadingText(mLoadText);

    addView(view, layoutParams);


    startLoading(900);
}
 
开发者ID:liufatao,项目名称:android-shapeLoadingView,代码行数:28,代码来源:LoadingView.java

示例13: onFinishInflate

import com.mingle.shapeloading.R; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
    super.onFinishInflate();

    View view = LayoutInflater.from(getContext()).inflate(R.layout.load_view, null);

    mDistance = dip2px(54f);

    LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

    layoutParams.gravity = Gravity.CENTER;

    mShapeLoadingView = (ShapeLoadingView) view.findViewById(R.id.shapeLoadingView);

    mIndicationIm = (ImageView) view.findViewById(R.id.indication);
    mLoadTextView = (TextView) view.findViewById(R.id.promptTV);

    if (mTextAppearance != -1) {
        mLoadTextView.setTextAppearance(getContext(), mTextAppearance);
    }
    setLoadingText(mLoadText);

    addView(view, layoutParams);

    this.postDelayed(new Runnable() {
        @Override
        public void run() {
            freeFall();
        }
    }, 900);


}
 
开发者ID:canmeidanxue,项目名称:android-shapeLoadingView-master,代码行数:34,代码来源:LoadingView.java


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