• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ProgressView类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: draw

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Override
public void draw(Canvas canvas) {			
	switch (mProgressMode) {
		case ProgressView.MODE_DETERMINATE:
			drawDeterminate(canvas);
			break;
		case ProgressView.MODE_INDETERMINATE:
			drawIndeterminate(canvas);
			break;
		case ProgressView.MODE_BUFFER:
			drawBuffer(canvas);
			break;
		case ProgressView.MODE_QUERY:
			drawQuery(canvas);
			break;
	}		
}
 
开发者ID:XhinLiang,项目名称:MDPreference,代码行数:18,代码来源:LinearProgressDrawable.java


示例2: resetAnimation

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
private void resetAnimation(){		
	mLastUpdateTime = SystemClock.uptimeMillis();
	mLastProgressStateTime = mLastUpdateTime;
	if(mProgressMode == ProgressView.MODE_INDETERMINATE){
		mStartLine = mReverse ? getBounds().width() : 0;
		mStrokeColorIndex = 0;
		mLineWidth = mReverse ? -mMinLineWidth : mMinLineWidth;
		mProgressState = PROGRESS_STATE_STRETCH;
	}
	else if(mProgressMode == ProgressView.MODE_BUFFER){
		mStartLine = 0;
	}	
	else if(mProgressMode == ProgressView.MODE_QUERY){
		mStartLine = !mReverse ? getBounds().width() : 0;
		mStrokeColorIndex = 0;
		mLineWidth = !mReverse ? -mMaxLineWidth : mMaxLineWidth;
	}		
}
 
开发者ID:XhinLiang,项目名称:MDPreference,代码行数:19,代码来源:LinearProgressDrawable.java


示例3: update

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
private void update(){
	switch (mProgressMode) {
		case ProgressView.MODE_DETERMINATE:
			updateDeterminate();
			break;
		case ProgressView.MODE_INDETERMINATE:
			updateIndeterminate();
			break;
		case ProgressView.MODE_BUFFER:
			updateBuffer();
			break;
		case ProgressView.MODE_QUERY:
			updateQuery();
			break;
	}
}
 
开发者ID:XhinLiang,项目名称:MDPreference,代码行数:17,代码来源:LinearProgressDrawable.java


示例4: loadPage

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
private void loadPage() {
    handler.removeCallbacks(stopRunnable);
    if (autoLoadListener != null) {
        setLoading(true);
        if (!isAnimating()) {
            if (loadingFooterHolder != null) {
                ProgressView pbLoadingFooter = loadingFooterHolder.pbLoadingFooter;
                if (pbLoadingFooter.getVisibility() != View.VISIBLE) {
                    pbLoadingFooter.setVisibility(View.VISIBLE);
                } else {
                    pbLoadingFooter.start();
                }
            }
        }
        autoLoadListener.onPageAutoLoad();
    }
}
 
开发者ID:chaincloud-dot-com,项目名称:chaincloud-v,代码行数:18,代码来源:EndlessRecyclerViewAdapter.java


示例5: onCreateView

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
	View v = inflater.inflate(R.layout.fragment_progress, container, false);
	
	pv_circular = (ProgressView)v.findViewById(R.id.progress_pv_circular);
	pv_circular_colors = (ProgressView)v.findViewById(R.id.progress_pv_circular_colors);
	pv_circular_inout = (ProgressView)v.findViewById(R.id.progress_pv_circular_inout);
	pv_circular_inout_colors = (ProgressView)v.findViewById(R.id.progress_pv_circular_inout_colors);
	pv_circular_determinate_in_out = (ProgressView)v.findViewById(R.id.progress_pv_circular_determinate_in_out);
	pv_circular_determinate = (ProgressView)v.findViewById(R.id.progress_pv_circular_determinate);
	pv_linear = (ProgressView)v.findViewById(R.id.progress_pv_linear);
	pv_linear_colors = (ProgressView)v.findViewById(R.id.progress_pv_linear_colors);
	pv_linear_determinate = (ProgressView)v.findViewById(R.id.progress_pv_linear_determinate);
	pv_linear_query = (ProgressView)v.findViewById(R.id.progress_pv_linear_query);
	pv_linear_buffer = (ProgressView)v.findViewById(R.id.progress_pv_linear_buffer);
	
	mHandler = new Handler(this);
									
	return v;
}
 
开发者ID:iamzhangdejian,项目名称:material-master,代码行数:21,代码来源:ProgressFragment.java


示例6: ProgressBarWebView

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
public ProgressBarWebView(Context context, AttributeSet attrs) {
    super(context, attrs);

    LayoutInflater.from(context).inflate(R.layout.progressbar_webview, this);
    mProgressView = (ProgressView)findViewById(R.id.progressbar);
    mWebView = (WebView)findViewById(R.id.web_view);

    mFrameLayout = (RelativeLayout)findViewById(R.id.progressbar_webview_frame_root);
    mFrameLayout.setMinimumHeight(MApplication_.getInstance().getmScreenHeight()
            - context.getResources().getDimensionPixelSize(R.dimen.fragment_detail_head));

    mWebView.setWebViewClient(new WebViewClient());

    WebSettings webSettings = mWebView.getSettings();
    webSettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
    webSettings.setUseWideViewPort(false);
    webSettings.setLoadWithOverviewMode(true);
    webSettings.setDisplayZoomControls(false);
    webSettings.setBuiltInZoomControls(false);
    webSettings.setDisplayZoomControls(false);
    webSettings.setJavaScriptEnabled(true);
    webSettings.setPluginState(WebSettings.PluginState.ON);
}
 
开发者ID:ayaseruri,项目名称:tongnews,代码行数:24,代码来源:ProgressBarWebView.java


示例7: onCreateView

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    final View rootView = inflater.inflate(R.layout.fragment_device_edit_connection_http, container, false);
    progressView = (ProgressView) rootView.findViewById(R.id.connection_progressbar);
    btnTest = (Button) rootView.findViewById(R.id.btnTest);
    newHost = (EditText) rootView.findViewById(R.id.device_host);
    newHost.setText(ioConnection.hostName);
    newPort = (EditText) rootView.findViewById(R.id.device_http_port);
    if (ioConnection.getDestinationPort() != -1)
        newPort.setText(String.valueOf(ioConnection.getDestinationPort()));
    connectionStateImage = ((ImageView) rootView.findViewById(R.id.connection_reachable));
    connectionStateImage.setVisibility(View.VISIBLE);
    connectionStateImage.setImageResource(android.R.drawable.presence_offline);

    btnTest.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            closeIfReachable = false;
            checkConnectionReachable();
        }
    });

    return rootView;
}
 
开发者ID:davidgraeff,项目名称:Android-NetPowerctrl,代码行数:26,代码来源:IOConnectionHttpDialog.java


示例8: onCreateView

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    final View rootView = inflater.inflate(R.layout.fragment_device_edit_connection_ip, container, false);
    progressView = (ProgressView) rootView.findViewById(R.id.connection_progressbar);
    btnTest = (Button) rootView.findViewById(R.id.btnTest);
    newHost = (EditText) rootView.findViewById(R.id.device_host);
    newHost.setText(ioConnection.hostName);
    connectionStateImage = ((ImageView) rootView.findViewById(R.id.connection_reachable));
    connectionStateImage.setVisibility(View.VISIBLE);
    connectionStateImage.setImageResource(android.R.drawable.presence_offline);

    btnTest.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            closeIfReachable = false;
            checkConnectionReachable();
        }
    });

    return rootView;
}
 
开发者ID:davidgraeff,项目名称:Android-NetPowerctrl,代码行数:23,代码来源:IOConnectionUDPDialog.java


示例9: onCreate

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_confirm_setup);

	mLoginTextContainer 	= (RelativeLayout) findViewById(R.id.login_text_container);
	mSetupProgress 			= (ProgressView) findViewById(R.id.SetupProgress);
	mContinueFABContainer 	= (FrameLayout) findViewById(R.id.login_continue_circle_container);
	mGearIcon 				= (ImageView) findViewById(R.id.login_icon);
	mContinueIcon			= (ImageView) findViewById(R.id.forward_arrow);
	mLoginTextLineOne 		= (TextView) findViewById(R.id.login_text_line_one);
	mLoginTextLineTwo 		= (TextView) findViewById(R.id.login_text_line_two);
	mContinueFAB 			= findViewById(R.id.login_continue_circle);
	mContinueFABShadow 		= findViewById(R.id.login_continue_circle_shadow);
	mTransitionViewWhite 	= findViewById(R.id.transition_view_blue);

	mContinueIcon		.setVisibility(View.INVISIBLE);
	mLoginTextLineOne	.setVisibility(View.INVISIBLE);
	mLoginTextLineTwo	.setVisibility(View.INVISIBLE);
	mGearIcon			.setVisibility(View.INVISIBLE);
	mTransitionViewWhite.setVisibility(View.INVISIBLE);

	float textPosition = (int) (2.5 * (Service.getScreenHeight(getBaseContext()) / 5));
	mLoginTextContainer	.setY(textPosition);

	mContinueFABContainer	.bringToFront();
	mLoginTextLineOne		.bringToFront();
	mLoginTextLineTwo		.bringToFront();
	Service.bringToBack(mTransitionViewWhite);

	showLogoAnimations();
	showTextLineAnimations(mLoginTextLineOne, 1);
	showTextLineAnimations(mLoginTextLineTwo, 2);

	CheckDataFetchingTask checkingTask = new CheckDataFetchingTask();
	checkingTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:38,代码来源:ConfirmSetupActivity.java


示例10: onCreateView

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
						 Bundle savedInstanceState) {
	View rootView = inflater.inflate(R.layout.fragment_channel_vods, container, false);

	Bundle args = getArguments();
	channelInfo = args.getParcelable(fragmentVodsStreamerInfoArg);
	broadcasts = args.getBoolean(fragmentVodsBroadCastsOnlyArg);

	mRecyclerView = (AutoSpanRecyclerView) rootView.findViewById(R.id.recyclerview_vods);
	progressView = (ProgressView) rootView.findViewById(R.id.circle_progress);

	findErrorView(rootView);
	if (showError) {
		showError();
	}

	if (mAdapter == null) {
		mRecyclerView.setBehaviour(new VODAutoSpanBehaviour());
		mAdapter = new VODAdapter(mRecyclerView, getActivity());
		mAdapter.setShowName(false);
		progressView.start();
	}

	mAdapter.setTopMargin((int) getResources().getDimension(R.dimen.search_new_adapter_top_margin));
	mAdapter.setSortElements(false);
	mAdapter.disableInsertAnimation();
	lazyFetchingOnScrollListener = new LazyFetchingOnScrollListener<>("VodFragment", this);
	mRecyclerView.addOnScrollListener(lazyFetchingOnScrollListener);
	mRecyclerView.setAdapter(mAdapter);
	mRecyclerView.setItemAnimator(null);
	mRecyclerView.setHasFixedSize(true);

	lazyFetchingOnScrollListener.checkForNewElements(mRecyclerView);

	return rootView;
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:38,代码来源:ChannelActivity.java


示例11: draw

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Override
public void draw(Canvas canvas) {			
	switch (mProgressMode) {
		case ProgressView.MODE_DETERMINATE:
			drawDeterminate(canvas);
			break;
		case ProgressView.MODE_INDETERMINATE:
			drawIndeterminate(canvas);
			break;
	}		
}
 
开发者ID:XhinLiang,项目名称:MDPreference,代码行数:12,代码来源:CircularProgressDrawable.java


示例12: update

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
private void update(){
	switch (mProgressMode) {
		case ProgressView.MODE_DETERMINATE:
			updateDeterminate();
			break;
		case ProgressView.MODE_INDETERMINATE:
			updateIndeterminate();
			break;
	}
}
 
开发者ID:XhinLiang,项目名称:MDPreference,代码行数:11,代码来源:CircularProgressDrawable.java


示例13: FooterViewHolder

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
public FooterViewHolder(View v) {
    super(v);
    this.itemView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams
            .MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
    this.loadingFooter = v;
    this.pbLoadingFooter = (ProgressView) v.findViewById(R.id.pb_loading_footer);
    pbLoadingFooter.setVisibility(View.GONE);
}
 
开发者ID:chaincloud-dot-com,项目名称:chaincloud-v,代码行数:9,代码来源:EndlessRecyclerViewAdapter.java


示例14: onFinishInflate

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    videoPlayer.setOnPreparedListener(this);
    videoPlayer.setOnBufferingUpdateListener(this);
    videoPlayer.setOnCompletionListener(this);
    videoPlayer.setOnErrorListener(this);
    videoPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
    textureView = new TextureView(getContext());
    addView(textureView, new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));

    LinearLayout rl = new LinearLayout(getContext());
    addView(rl, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
    rl.setId(R.id.touchId);
    rl.setOnClickListener(this);

    LayoutInflater li = LayoutInflater.from(getContext());
    videoLoadingView = li.inflate(R.layout.layout_video_loading_view, this, false);
    addView(videoLoadingView);

    controlPlayPause = li.inflate(R.layout.layout_video_img_button_play_pause, this, false);
    controlSeekBar = li.inflate(R.layout.layout_video_seek_bar, this, false);
    FrameLayout.LayoutParams lp1 = (FrameLayout.LayoutParams) controlPlayPause.getLayoutParams();
    FrameLayout.LayoutParams lp2 = (FrameLayout.LayoutParams) controlSeekBar.getLayoutParams();

    lp1.gravity = Gravity.CENTER;
    lp2.gravity = Gravity.BOTTOM;

    addView(controlPlayPause, lp1);
    addView(controlSeekBar, lp2);

    imgBtnPlayPause = (ImageButton) controlPlayPause.findViewById(R.id.imageButtonPlayPauseRetry);
    imgBtnFullScreenToggle = (ImageButton) controlSeekBar.findViewById(R.id.imageButtonFullScreenToggle);
    tvPosition = (TextView) controlSeekBar.findViewById(R.id.textViewPosition);
    tvDuration = (TextView) controlSeekBar.findViewById(R.id.textViewDuration);
    proViewVideoLoading = (ProgressView) videoLoadingView.findViewById(R.id.proViewVideoLoading);
    seekBarDuration = (SeekBar) controlSeekBar.findViewById(R.id.seekBarDuration);
    imgBtnPlayPause.setImageDrawable(playVideoDrawable);

    imgBtnPlayPause.setOnClickListener(this);
    imgBtnFullScreenToggle.setOnClickListener(this);
    textureView.setSurfaceTextureListener(this);
    seekBarDuration.setOnSeekBarChangeListener(this);
    controlPlayPause.setVisibility(INVISIBLE);
    controlSeekBar.setVisibility(INVISIBLE);
    proViewVideoLoading.start();
    setUpVideoPlayer();
}
 
开发者ID:JakeSteam,项目名称:Vidsta,代码行数:49,代码来源:VidstaPlayer.java


示例15: onCreate

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_login);
	trackEvent(R.string.category_read, R.string.action_login);

	mLoginTextContainer 	= (RelativeLayout) findViewById(R.id.login_text_container);
	mWebViewProgress 		= (ProgressView) findViewById(R.id.SetupProgress);
	mWebViewContainer 		= (FrameLayout) findViewById(R.id.webview_container);
	mContinueFABContainer 	= (FrameLayout) findViewById(R.id.login_continue_circle_container);
	mGearIcon 				= (ImageView) findViewById(R.id.login_icon);
	mSuccessIcon 			= (ImageView) findViewById(R.id.login_icon_done);
	mContinueIcon			= (ImageView) findViewById(R.id.forward_arrow);
	mLoginTextLineOne 		= (TextView) findViewById(R.id.login_text_line_one);
	mLoginTextLineTwo 		= (TextView) findViewById(R.id.login_text_line_two);
	mSuccessMessage			= (TextView) findViewById(R.id.login_success_message);
	mSkipText				= (TextView) findViewById(R.id.skip_text);
	loginWebView 			= (WebView) findViewById(R.id.login_webview);
	mContinueFAB 			= findViewById(R.id.login_continue_circle);
	mContinueFABShadow 		= findViewById(R.id.login_continue_circle_shadow);
	mSuccessCircle 			= findViewById(R.id.login_success_circle);
	mSuccessCircleShadow	= findViewById(R.id.login_success_shadow);
	mTransitionViewWhite 	= findViewById(R.id.transition_view);
	mTransitionViewBlue 	= findViewById(R.id.transition_view_blue);

	mSuccessMessage		.setVisibility(View.INVISIBLE);
	mContinueIcon		.setVisibility(View.INVISIBLE);
	mSuccessCircleShadow.setVisibility(View.INVISIBLE);
	mSuccessIcon		.setVisibility(View.INVISIBLE);
	mSuccessCircle		.setVisibility(View.INVISIBLE);
	mLoginTextLineOne	.setVisibility(View.INVISIBLE);
	mLoginTextLineTwo	.setVisibility(View.INVISIBLE);
	loginWebView		.setVisibility(View.INVISIBLE);
	mGearIcon			.setVisibility(View.INVISIBLE);
	mTransitionViewBlue	.setVisibility(View.INVISIBLE);
	mTransitionViewWhite.setVisibility(View.INVISIBLE);
	mSkipText			.setVisibility(View.INVISIBLE);

	checkSetupType();

	float textPosition = (int) (2.5 * (getScreenHeight() / 5));
	mLoginTextContainer	.setY(textPosition);
	mSuccessMessage		.setY(textPosition);
	mContinueFABContainer.setOnClickListener(new View.OnClickListener() {
		@Override
		public void onClick(View v) {
			showLoginView();

			if (PocketPlaysApplication.isCrawlerUpdate)
				showSkippingAnimation();
		}
	});

	Service.bringToBack(mTransitionViewWhite);
	Service.bringToBack(mTransitionViewBlue);
	mLoginTextLineOne		.bringToFront();
	mLoginTextLineTwo		.bringToFront();

	initSkipView();
	initSnackbar();
	initLoginView();
	showLogoAnimations();
	showTextLineAnimations(mLoginTextLineOne, 1);
	showTextLineAnimations(mLoginTextLineTwo, 2);
	showTextLineAnimations(mSkipText, 2);

	AnimationSet animationSet = getContinueIconAnimations(270);
	animationSet.setStartOffset(SHOW_CONTINUE_ICON_DELAY);
	animationSet.start();
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:71,代码来源:LoginActivity.java


示例16: Builder

import com.rey.material.widget.ProgressView; //导入依赖的package包/类
public Builder(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes){
	TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.LinearProgressDrawable, defStyleAttr, defStyleRes);
	int resId;
	
	progressPercent(a.getFloat(R.styleable.LinearProgressDrawable_pv_progress, 0));	
	secondaryProgressPercent(a.getFloat(R.styleable.LinearProgressDrawable_pv_secondaryProgress, 0));
	
	TypedValue value = a.peekValue(R.styleable.LinearProgressDrawable_lpd_maxLineWidth);
	if(value == null)
		maxLineWidth(0.75f);
	else if(value.type == TypedValue.TYPE_FRACTION)
		maxLineWidth(a.getFraction(R.styleable.LinearProgressDrawable_lpd_maxLineWidth, 1, 1, 0.75f));
	else 
		maxLineWidth(a.getDimensionPixelSize(R.styleable.LinearProgressDrawable_lpd_maxLineWidth, 0));
	
	value = a.peekValue(R.styleable.LinearProgressDrawable_lpd_minLineWidth);
	if(value == null)
		minLineWidth(0.25f);
	else if(value.type == TypedValue.TYPE_FRACTION)
		minLineWidth(a.getFraction(R.styleable.LinearProgressDrawable_lpd_minLineWidth, 1, 1, 0.25f));
	else 
		minLineWidth(a.getDimensionPixelSize(R.styleable.LinearProgressDrawable_lpd_minLineWidth, 0));
	
	strokeSize(a.getDimensionPixelSize(R.styleable.LinearProgressDrawable_lpd_strokeSize, ThemeUtil.dpToPx(context, 4)));
	verticalAlign(a.getInteger(R.styleable.LinearProgressDrawable_lpd_verticalAlign, LinearProgressDrawable.ALIGN_BOTTOM));
	strokeColors(a.getColor(R.styleable.LinearProgressDrawable_lpd_strokeColor, ThemeUtil.colorPrimary(context, 0xFF000000)));
	if((resId = a.getResourceId(R.styleable.LinearProgressDrawable_lpd_strokeColors, 0)) != 0){
		TypedArray ta = context.getResources().obtainTypedArray(resId);				        	
		int[] colors = new int[ta.length()];
		for(int j = 0; j < ta.length(); j++)
		    colors[j] = ta.getColor(j, 0);				        	
		ta.recycle();
		strokeColors(colors);
	}
	strokeSecondaryColor(a.getColor(R.styleable.LinearProgressDrawable_lpd_strokeSecondaryColor, 0));
	reverse(a.getBoolean(R.styleable.LinearProgressDrawable_lpd_reverse, false));
	travelDuration(a.getInteger(R.styleable.LinearProgressDrawable_lpd_travelDuration, context.getResources().getInteger(android.R.integer.config_longAnimTime)));
	transformDuration(a.getInteger(R.styleable.LinearProgressDrawable_lpd_transformDuration, context.getResources().getInteger(android.R.integer.config_mediumAnimTime)));
	keepDuration(a.getInteger(R.styleable.LinearProgressDrawable_lpd_keepDuration, context.getResources().getInteger(android.R.integer.config_shortAnimTime)));
	if((resId = a.getResourceId(R.styleable.LinearProgressDrawable_lpd_transformInterpolator, 0)) != 0)
		transformInterpolator(AnimationUtils.loadInterpolator(context, resId));
	progressMode(a.getInteger(R.styleable.LinearProgressDrawable_pv_progressMode, ProgressView.MODE_INDETERMINATE));
	inAnimDuration(a.getInteger(R.styleable.LinearProgressDrawable_lpd_inAnimDuration, context.getResources().getInteger(android.R.integer.config_mediumAnimTime)));
	outAnimDuration(a.getInteger(R.styleable.LinearProgressDrawable_lpd_outAnimDuration, context.getResources().getInteger(android.R.integer.config_mediumAnimTime)));
	
	a.recycle();				
}
 
开发者ID:XhinLiang,项目名称:MDPreference,代码行数:48,代码来源:LinearProgressDrawable.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java OpenSessionInViewFilter类代码示例发布时间:2022-05-22
下一篇:
Java BinaryUtils类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap