當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。