當前位置: 首頁>>代碼示例>>Java>>正文


Java TextView.bringToFront方法代碼示例

本文整理匯總了Java中android.widget.TextView.bringToFront方法的典型用法代碼示例。如果您正苦於以下問題:Java TextView.bringToFront方法的具體用法?Java TextView.bringToFront怎麽用?Java TextView.bringToFront使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.widget.TextView的用法示例。


在下文中一共展示了TextView.bringToFront方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCreate

import android.widget.TextView; //導入方法依賴的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

示例2: onCreateView

import android.widget.TextView; //導入方法依賴的package包/類
@Override
@SuppressLint("SimpleDateFormat")
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

    viewReference = inflater.inflate(R.layout.fragment_qr, container, false);
    activityReference = (EssensbonActivity) getActivity();

    iv1 = viewReference.findViewById(R.id.imageView);
    iv2 = viewReference.findViewById(R.id.imageViewError);

    TextView t = viewReference.findViewById(R.id.textViewDatum);
    t.bringToFront();

    t2 = viewReference.findViewById(R.id.textViewMenu);
    t2.bringToFront();

    t3 = viewReference.findViewById(R.id.textViewMenuDetails);

    spinner = viewReference.findViewById(R.id.progressBar1);
    spinner.setVisibility(View.GONE);

    Date             d  = new Date();
    SimpleDateFormat df = new SimpleDateFormat("dd.MM.yy");
    t.setText(df.format(d));

    synchronize(true);

    return viewReference;
}
 
開發者ID:LCA311,項目名稱:leoapp-sources,代碼行數:30,代碼來源:QRFragment.java

示例3: onCreate

import android.widget.TextView; //導入方法依賴的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


注:本文中的android.widget.TextView.bringToFront方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。