本文整理汇总了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);
}