List of usage examples for android.view Window FEATURE_NO_TITLE
int FEATURE_NO_TITLE
To view the source code for android.view Window FEATURE_NO_TITLE.
Click Source Link
From source file:org.medcare.Dicom.DicomActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.e(TAG, "ONCREATE TESTDICOM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); requestWindowFeature(Window.FEATURE_NO_TITLE); dicomView = new DicomView(this); setContentView(dicomView);//from w ww. ja v a 2s . co m mPopupView = getLayoutInflater().inflate(R.layout.web_view, null); mPopupWebView = (WebView) mPopupView.findViewById(R.id.web); collabBoard = new CollabBoard(this); }
From source file:ee.ioc.phon.android.speak.RecognizerIntentActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.recognizer); mMessageHandler = new SimpleMessageHandler(this); mErrorMessages = createErrorMessages(); // Don't shut down the screen getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); mTvPrompt = (TextView) findViewById(R.id.tvPrompt); mBStartStop = (Button) findViewById(R.id.bStartStop); mLlTranscribing = (LinearLayout) findViewById(R.id.llTranscribing); mLlProgress = (LinearLayout) findViewById(R.id.llProgress); mLlError = (LinearLayout) findViewById(R.id.llError); mTvBytes = (TextView) findViewById(R.id.tvBytes); mChronometer = (Chronometer) findViewById(R.id.chronometer); mIvVolume = (ImageView) findViewById(R.id.ivVolume); mIvWaveform = (ImageView) findViewById(R.id.ivWaveform); mTvChunks = (TextView) findViewById(R.id.tvChunks); mTvErrorMessage = (TextView) findViewById(R.id.tvErrorMessage); mRes = getResources();// w w w . j av a2 s . com mVolumeLevels = new ArrayList<Drawable>(); mVolumeLevels.add(mRes.getDrawable(R.drawable.speak_now_level0)); mVolumeLevels.add(mRes.getDrawable(R.drawable.speak_now_level1)); mVolumeLevels.add(mRes.getDrawable(R.drawable.speak_now_level2)); mVolumeLevels.add(mRes.getDrawable(R.drawable.speak_now_level3)); mVolumeLevels.add(mRes.getDrawable(R.drawable.speak_now_level4)); mVolumeLevels.add(mRes.getDrawable(R.drawable.speak_now_level5)); mVolumeLevels.add(mRes.getDrawable(R.drawable.speak_now_level6)); mExtras = getIntent().getExtras(); if (mExtras == null) { // For some reason getExtras() can return null, we map it // to an empty Bundle if this occurs. mExtras = new Bundle(); } else { mExtraResultsPendingIntent = Utils.getPendingIntent(mExtras); } mPrefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); // For the change in the autostart-setting to take effect, // the user must restart the app. This seems more natural. mStartRecording = mPrefs.getBoolean("keyAutoStart", false); try { mRecSessionBuilder = new ChunkedWebRecSessionBuilder(this, mExtras, getCallingActivity()); } catch (MalformedURLException e) { // The user has managed to store a malformed URL in the configuration. handleResultError(mMessageHandler, RecognizerIntent.RESULT_CLIENT_ERROR, "", e); } }
From source file:com.amazon.appstream.fireclient.ConnectDialogFragment.java
/** * Create callback; performs initial set-up. *//*ww w . j ava 2 s. c o m*/ @Override public Dialog onCreateDialog(Bundle savedInstanceState) { mEmpty.setAlpha(0); final Dialog connectDialog = new Dialog(getActivity()); connectDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); connectDialog.setCanceledOnTouchOutside(false); connectDialog.setCancelable(false); connectDialog.setContentView(R.layout.server_address); connectDialog.getWindow().setBackgroundDrawable(mEmpty); mAddressTitle = (TextView) connectDialog.findViewById(R.id.address_title); mAddressField = (TextView) connectDialog.findViewById(R.id.address); mTextEntryFields = connectDialog.findViewById(R.id.text_entry_fields); mProgressBar = (ProgressBar) connectDialog.findViewById(R.id.progress_bar); mUseHardware = (CheckBox) connectDialog.findViewById(R.id.hardware); mUseHardware.setChecked(false); final CheckBox useAppServerBox = (CheckBox) connectDialog.findViewById(R.id.appserver); useAppServerBox.setChecked(mUseAppServer); useAppServerBox.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { if (!mUseAppServer) { mDESServerAddress = mAddressField.getText().toString(); } } else { if (mUseAppServer) { mServerAddress = mAddressField.getText().toString(); } } mUseAppServer = isChecked; updateFields(); } }); mAppIdField = (TextView) connectDialog.findViewById(R.id.appid); mSpace1 = connectDialog.findViewById(R.id.space1); mSpace2 = connectDialog.findViewById(R.id.space2); mAppIdTitle = connectDialog.findViewById(R.id.appid_title); mUserIdTitle = connectDialog.findViewById(R.id.userid_title); if (mAppId != null) { mAppIdField.setText(mAppId); } mUserIdField = (TextView) connectDialog.findViewById(R.id.userid); if (mUsername != null) { mUserIdField.setText(mUsername); } mErrorMessageField = (TextView) connectDialog.findViewById(R.id.error_message); mReconnect = connectDialog.findViewById(R.id.reconnect_fields); mReconnectMessage = (TextView) connectDialog.findViewById(R.id.reconnect_message); final Button connectButton = (Button) connectDialog.findViewById(R.id.connect); connectButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { onConnect(); } }); TextView.OnEditorActionListener listener = new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_GO) { InputMethodManager imm = (InputMethodManager) mActivity .getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(mUserIdField.getWindowToken(), 0); onConnect(); } return true; } }; View.OnFocusChangeListener focusListener = new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { connectButton.setFocusableInTouchMode(false); } }; mAppIdField.setOnFocusChangeListener(focusListener); mUserIdField.setOnFocusChangeListener(focusListener); mUserIdField.setOnFocusChangeListener(focusListener); mUserIdField.setOnEditorActionListener(listener); updateFields(); if (mAddressField.getText().length() == 0) { mAddressField.requestFocus(); connectButton.setFocusableInTouchMode(false); } else { connectButton.requestFocus(); } if (mReconnectMessageString != null) { reconnecting(mReconnectMessageString); mReconnectMessageString = null; } return connectDialog; }
From source file:com.vk.sdk.dialogs.VKShareDialog.java
@NonNull @Override/*from w w w. j a v a 2 s .co m*/ public Dialog onCreateDialog(Bundle savedInstanceState) { Context context = getActivity(); View mInternalView = LayoutInflater.from(context).inflate(R.layout.vk_share_dialog, null); assert mInternalView != null; mSendButton = (Button) mInternalView.findViewById(R.id.sendButton); mSendProgress = (ProgressBar) mInternalView.findViewById(R.id.sendProgress); mPhotoLayout = (LinearLayout) mInternalView.findViewById(R.id.imagesContainer); mShareTextField = (EditText) mInternalView.findViewById(R.id.shareText); mPhotoScroll = (HorizontalScrollView) mInternalView.findViewById(R.id.imagesScrollView); LinearLayout mAttachmentLinkLayout = (LinearLayout) mInternalView.findViewById(R.id.attachmentLinkLayout); mSendButton.setOnClickListener(sendButtonPress); //Attachment text if (savedInstanceState != null) { mShareTextField.setText(savedInstanceState.getString(SHARE_TEXT_KEY)); mAttachmentLink = savedInstanceState.getParcelable(SHARE_LINK_KEY); mAttachmentImages = (VKUploadImage[]) savedInstanceState.getParcelableArray(SHARE_IMAGES_KEY); mExistingPhotos = savedInstanceState.getParcelable(SHARE_UPLOADED_IMAGES_KEY); } else if (mAttachmentText != null) { mShareTextField.setText(mAttachmentText); } //Attachment photos mPhotoLayout.removeAllViews(); if (mAttachmentImages != null) { for (VKUploadImage mAttachmentImage : mAttachmentImages) { addBitmapToPreview(mAttachmentImage.mImageData); } mPhotoLayout.setVisibility(View.VISIBLE); } if (mExistingPhotos != null) { processExistingPhotos(); } if (mExistingPhotos == null && mAttachmentImages == null) { mPhotoLayout.setVisibility(View.GONE); } //Attachment link if (mAttachmentLink != null) { TextView linkTitle = (TextView) mAttachmentLinkLayout.findViewById(R.id.linkTitle), linkHost = (TextView) mAttachmentLinkLayout.findViewById(R.id.linkHost); linkTitle.setText(mAttachmentLink.linkTitle); linkHost.setText(VKUtil.getHost(mAttachmentLink.linkUrl)); mAttachmentLinkLayout.setVisibility(View.VISIBLE); } else { mAttachmentLinkLayout.setVisibility(View.GONE); } Dialog result = new Dialog(context); result.requestWindowFeature(Window.FEATURE_NO_TITLE); result.setContentView(mInternalView); result.setCancelable(true); result.setOnCancelListener(new DialogInterface.OnCancelListener() { @Override public void onCancel(DialogInterface dialogInterface) { if (mListener != null) { mListener.onVkShareCancel(); } VKShareDialog.this.dismiss(); } }); return result; }
From source file:com.franmontiel.fullscreendialog.FullScreenDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { initBuilderArguments();//from w w w . ja v a 2 s . c om Dialog dialog = new Dialog(getActivity(), getTheme()) { @Override public void onBackPressed() { onDiscardButtonClick(); } }; if (!fullScreen) dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); return dialog; }
From source file:com.yayandroid.utility.MapHelperFragment.java
private void ShowProgressDialog(String message) { if (progressDialog == null) { progressDialog = new ProgressDialog(getActivity()); progressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); progressDialog.setCancelable(progressDialogCancelable); }//from ww w . jav a2 s.com progressDialog.setMessage(message); if (getActivity() != null) progressDialog.show(); }
From source file:com.digitalarx.android.authentication.AuthenticatorActivity.java
/** * {@inheritDoc}//from w w w. j a va 2 s. com * * IMPORTANT ENTRY POINT 1: activity is shown to the user */ @Override protected void onCreate(Bundle savedInstanceState) { //Log_OC.wtf(TAG, "onCreate init"); super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); // bind to Operations Service mOperationsServiceConnection = new OperationsServiceConnection(); if (!bindService(new Intent(this, OperationsService.class), mOperationsServiceConnection, Context.BIND_AUTO_CREATE)) { Toast.makeText(this, R.string.error_cant_bind_to_operations_service, Toast.LENGTH_LONG).show(); finish(); } /// init activity state mAccountMgr = AccountManager.get(this); mNewCapturedUriFromOAuth2Redirection = null; /// get input values mAction = getIntent().getByteExtra(EXTRA_ACTION, ACTION_CREATE); mAccount = getIntent().getExtras().getParcelable(EXTRA_ACCOUNT); if (savedInstanceState == null) { initAuthTokenType(); } else { mAuthTokenType = savedInstanceState.getString(KEY_AUTH_TOKEN_TYPE); mWaitingForOpId = savedInstanceState.getLong(KEY_WAITING_FOR_OP_ID); } /// load user interface setContentView(R.layout.account_setup); /// initialize general UI elements initOverallUi(savedInstanceState); mOkButton = findViewById(R.id.buttonOK); /// initialize block to be moved to single Fragment to check server and get info about it initServerPreFragment(savedInstanceState); /// initialize block to be moved to single Fragment to retrieve and validate credentials initAuthorizationPreFragment(savedInstanceState); //Log_OC.wtf(TAG, "onCreate end"); }
From source file:com.example.gemswin.screencastrecevertest.MainActivity_Reciever.java
protected void DoubtBox () { // TODO Auto-generated method stub dialogDoubt = new Dialog(MainActivity_Reciever.this); dialogDoubt.requestWindowFeature(Window.FEATURE_NO_TITLE); dialogDoubt.setContentView(R.layout.activity_doubt_reciever); // name1 = (EditText)dialogDoubt.findViewById(R.id.name_reg1); class1 = (EditText)dialogDoubt.findViewById(R.id.class_reg1); doubt1 = (EditText)dialogDoubt.findViewById(R.id.doubt_reg1); submit1 = (Button) dialogDoubt.findViewById(R.id.doubtsubmit); submit1.setOnClickListener(new View.OnClickListener() { @Override/*w w w . java2 s. c o m*/ public void onClick(View v) { doubtstring = doubt1.getText().toString(); //username //password = pass.getText().toString(); // nameString = name1.getText().toString(); classget = class1.getText().toString(); new login().execute(); dialogDoubt.dismiss(); } }); dialogDoubt.show(); }
From source file:com.findcab.activity.LocationOverlay.java
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = getApplicationContext();//from w w w. j ava 2 s .co m initManager(); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.mapview); Tools.init(); iniView(); // ???????????? MyJpushTools.setAlias(context, "passenger_" + psID); Log.e("???", "passenger_" + psID); }
From source file:com.codetroopers.betterpickers.calendardatepicker.CalendarDatePickerDialogFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Log.d(TAG, "onCreateView: "); if (getShowsDialog()) { getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); }// w ww . ja va 2 s . c om View view = inflater.inflate(R.layout.calendar_date_picker_dialog, container, false); mSelectedDateLayout = (LinearLayout) view.findViewById(R.id.day_picker_selected_date_layout); mDayOfWeekView = (TextView) view.findViewById(R.id.date_picker_header); mMonthAndDayView = (LinearLayout) view.findViewById(R.id.date_picker_month_and_day); mMonthAndDayView.setOnClickListener(this); mSelectedMonthTextView = (TextView) view.findViewById(R.id.date_picker_month); mSelectedDayTextView = (TextView) view.findViewById(R.id.date_picker_day); mYearView = (TextView) view.findViewById(R.id.date_picker_year); mYearView.setOnClickListener(this); int listPosition = -1; int listPositionOffset = 0; int currentView = MONTH_AND_DAY_VIEW; if (savedInstanceState != null) { mWeekStart = savedInstanceState.getInt(KEY_WEEK_START); mMinDate = new CalendarDay(savedInstanceState.getLong(KEY_DATE_START)); mMaxDate = new CalendarDay(savedInstanceState.getLong(KEY_DATE_END)); currentView = savedInstanceState.getInt(KEY_CURRENT_VIEW); listPosition = savedInstanceState.getInt(KEY_LIST_POSITION); listPositionOffset = savedInstanceState.getInt(KEY_LIST_POSITION_OFFSET); mStyleResId = savedInstanceState.getInt(KEY_THEME); mDisabledDays = savedInstanceState.getSparseParcelableArray(KEY_DISABLED_DAYS); } final Activity activity = getActivity(); mDayPickerView = new SimpleDayPickerView(activity, this); mYearPickerView = new YearPickerView(activity, this); Resources res = getResources(); TypedArray themeColors = getActivity().obtainStyledAttributes(mStyleResId, R.styleable.BetterPickersDialogs); mDayPickerDescription = res.getString(R.string.day_picker_description); mSelectDay = res.getString(R.string.select_day); mYearPickerDescription = res.getString(R.string.year_picker_description); mSelectYear = res.getString(R.string.select_year); int headerBackgroundColor = themeColors.getColor(R.styleable.BetterPickersDialogs_bpHeaderBackgroundColor, ContextCompat.getColor(getActivity(), R.color.bpWhite)); int preHeaderBackgroundColor = themeColors.getColor( R.styleable.BetterPickersDialogs_bpPreHeaderBackgroundColor, ContextCompat.getColor(getActivity(), R.color.bpWhite)); int bodyBgColor = themeColors.getColor(R.styleable.BetterPickersDialogs_bpBodyBackgroundColor, ContextCompat.getColor(getActivity(), R.color.bpWhite)); int buttonBgColor = themeColors.getColor(R.styleable.BetterPickersDialogs_bpButtonsBackgroundColor, ContextCompat.getColor(getActivity(), R.color.bpWhite)); int buttonTextColor = themeColors.getColor(R.styleable.BetterPickersDialogs_bpButtonsTextColor, ContextCompat.getColor(getActivity(), R.color.bpBlue)); mSelectedColor = themeColors.getColor(R.styleable.BetterPickersDialogs_bpHeaderSelectedTextColor, ContextCompat.getColor(getActivity(), R.color.bpWhite)); mUnselectedColor = themeColors.getColor(R.styleable.BetterPickersDialogs_bpHeaderUnselectedTextColor, ContextCompat.getColor(getActivity(), R.color.radial_gray_light)); mAnimator = (AccessibleDateAnimator) view.findViewById(R.id.animator); mAnimator.addView(mDayPickerView); mAnimator.addView(mYearPickerView); mAnimator.setDateMillis(mCalendar.getTimeInMillis()); // TODO: Replace with animation decided upon by the design team. Animation animation = new AlphaAnimation(0.0f, 1.0f); animation.setDuration(ANIMATION_DURATION); mAnimator.setInAnimation(animation); // TODO: Replace with animation decided upon by the design team. Animation animation2 = new AlphaAnimation(1.0f, 0.0f); animation2.setDuration(ANIMATION_DURATION); mAnimator.setOutAnimation(animation2); Button doneButton = (Button) view.findViewById(R.id.done_button); if (mDoneText != null) { doneButton.setText(mDoneText); } doneButton.setTextColor(buttonTextColor); doneButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { tryVibrate(); if (mCallBack != null) { mCallBack.onDateSet(CalendarDatePickerDialogFragment.this, mCalendar.get(Calendar.YEAR), mCalendar.get(Calendar.MONTH), mCalendar.get(Calendar.DAY_OF_MONTH)); } dismiss(); } }); Button cancelButton = (Button) view.findViewById(R.id.cancel_button); if (mCancelText != null) { cancelButton.setText(mCancelText); } cancelButton.setTextColor(buttonTextColor); cancelButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { tryVibrate(); dismiss(); } }); view.findViewById(R.id.ok_cancel_buttons_layout).setBackgroundColor(buttonBgColor); updateDisplay(false); setCurrentView(currentView); if (listPosition != -1) { if (currentView == MONTH_AND_DAY_VIEW) { mDayPickerView.postSetSelection(listPosition); } else if (currentView == YEAR_VIEW) { mYearPickerView.postSetSelectionFromTop(listPosition, listPositionOffset); } } mHapticFeedbackController = new HapticFeedbackController(activity); mDayPickerView.setTheme(themeColors); mYearPickerView.setTheme(themeColors); mSelectedDateLayout.setBackgroundColor(headerBackgroundColor); mYearView.setBackgroundColor(headerBackgroundColor); mMonthAndDayView.setBackgroundColor(headerBackgroundColor); if (mDayOfWeekView != null) { mDayOfWeekView.setBackgroundColor(preHeaderBackgroundColor); } view.setBackgroundColor(bodyBgColor); mYearPickerView.setBackgroundColor(bodyBgColor); mDayPickerView.setBackgroundColor(bodyBgColor); return view; }