本文整理匯總了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);
}
示例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();
}
示例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);
}
示例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);
}
示例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();
}
示例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));
}
示例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);
}
示例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));
}
示例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;
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}