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:fragments.NewTicket.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); View view = inflater.inflate(R.layout.ticket_new, container, false); scrolly = (ScrollView) view.findViewById(R.id.scrollbar); ticketSerial = (EditText) view.findViewById(R.id.ticketserial); ticketName = (EditText) view.findViewById(R.id.ticketname); ticketdate = (TextView) view.findViewById(R.id.ticketdate); sedanRadio = (RadioButton) view.findViewById(R.id.sedanradio); sportRadio = (RadioButton) view.findViewById(R.id.sportradio); vanRadio = (RadioButton) view.findViewById(R.id.vanradio); truckRadio = (RadioButton) view.findViewById(R.id.truckradio); bikeRadio = (RadioButton) view.findViewById(R.id.bikeradio); ticketModel = (EditText) view.findViewById(R.id.ticketmodel); ticketColor = (EditText) view.findViewById(R.id.ticketcolor); ticketLicense = (EditText) view.findViewById(R.id.ticketlicense); ticketPark = (EditText) view.findViewById(R.id.ticketparklocation); ticketKey = (EditText) view.findViewById(R.id.ticketkeylocation); ticketSubmit = (Button) view.findViewById(R.id.ticketsubmit); colorWheel = (ImageView) view.findViewById(R.id.colorwheel); colorWheel.setOnClickListener(this); ticketColor.setOnClickListener(this); scrolly.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_LEFT); String currentDate = new SimpleDateFormat("EEEE / MMMM-dd-yyyy / h:mm a", Locale.getDefault()) .format(new Date()); final String dateforSQL = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.getDefault()) .format(new Date()); ticketdate.setText(currentDate);//from w ww . j a va 2 s. c o m ticketSubmit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String ticket, name, date, cartype, model, color, license, park, key; ticket = ticketSerial.getText().toString().trim(); name = ticketName.getText().toString().trim(); date = dateforSQL; cartype = CarType(); model = ticketModel.getText().toString().trim(); color = ticketColor.getText().toString().trim(); license = ticketLicense.getText().toString().trim(); park = ticketPark.getText().toString().trim(); key = ticketKey.getText().toString().trim(); ticketTask = new AddTicketDataAsync(getActivity(), getFragmentManager()); ticketTask.execute(ticket, name, date, cartype, model, color, license, park, key); } }); return view; }
From source file:com.android.gallery3d.filtershow.info.InfoPanel.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (getDialog() != null) { getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); }// w w w . j a v a2s . c o m mMainView = (LinearLayout) inflater.inflate(R.layout.filtershow_info_panel, null, false); mImageThumbnail = (ImageView) mMainView.findViewById(R.id.imageThumbnail); Bitmap bitmap = MasterImage.getImage().getFilteredImage(); mImageThumbnail.setImageBitmap(bitmap); mImageName = (TextView) mMainView.findViewById(R.id.imageName); mImageSize = (TextView) mMainView.findViewById(R.id.imageSize); mExifData = (TextView) mMainView.findViewById(R.id.exifData); TextView exifLabel = (TextView) mMainView.findViewById(R.id.exifLabel); HistogramView histogramView = (HistogramView) mMainView.findViewById(R.id.histogramView); histogramView.setBitmap(bitmap); Uri uri = MasterImage.getImage().getUri(); String path = ImageLoader.getLocalPathFromUri(getActivity(), uri); Uri localUri = null; if (path != null) { localUri = Uri.parse(path); } if (localUri != null) { mImageName.setText(localUri.getLastPathSegment()); } Rect originalBounds = MasterImage.getImage().getOriginalBounds(); mImageSize.setText("" + originalBounds.width() + " x " + originalBounds.height()); List<ExifTag> exif = MasterImage.getImage().getEXIF(); String exifString = ""; boolean hasExifData = false; if (exif != null) { for (ExifTag tag : exif) { exifString += createStringFromIfFound(tag, ExifInterface.TAG_MODEL, R.string.filtershow_exif_model); exifString += createStringFromIfFound(tag, ExifInterface.TAG_APERTURE_VALUE, R.string.filtershow_exif_aperture); exifString += createStringFromIfFound(tag, ExifInterface.TAG_FOCAL_LENGTH, R.string.filtershow_exif_focal_length); exifString += createStringFromIfFound(tag, ExifInterface.TAG_ISO_SPEED_RATINGS, R.string.filtershow_exif_iso); exifString += createStringFromIfFound(tag, ExifInterface.TAG_SUBJECT_DISTANCE, R.string.filtershow_exif_subject_distance); exifString += createStringFromIfFound(tag, ExifInterface.TAG_DATE_TIME_ORIGINAL, R.string.filtershow_exif_date); exifString += createStringFromIfFound(tag, ExifInterface.TAG_F_NUMBER, R.string.filtershow_exif_f_stop); exifString += createStringFromIfFound(tag, ExifInterface.TAG_EXPOSURE_TIME, R.string.filtershow_exif_exposure_time); exifString += createStringFromIfFound(tag, ExifInterface.TAG_COPYRIGHT, R.string.filtershow_exif_copyright); hasExifData = true; } } if (hasExifData) { exifLabel.setVisibility(View.VISIBLE); mExifData.setText(Html.fromHtml(exifString)); } else { exifLabel.setVisibility(View.GONE); } return mMainView; }
From source file:com.example.juswitch.MainActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); initView();/* ww w .ja v a2 s.com*/ initDevice(); btChoose.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View v) { if (jumaDevice != null && jumaDevice.isConnected()) jumaDevice.disconnect(); scanDialog = new CustomDialog(MainActivity.this, CustomDialog.DIALOG_TYPE_SCAN); scanDialog.setScanCallback(new Callback() { @Override public void onName(String name) { jumaDevices.clear(); scanHelper.startScan(name); } @Override public void onDevice(final UUID uuid, final String name) { scanHelper.stopScan(); jumaDevice = jumaDevices.get(uuid); runOnUiThread(new Runnable() { @Override public void run() { btChoose.setText("" + jumaDevice.getName()); jumaDevice.connect(new JumaDeviceCallback() { }); } }); } }); scanDialog.setNegativeButton(new OnClickListener() { @Override public void onClick(View arg0) { scanDialog.dismiss(); scanHelper.stopScan(); } }); scanDialog.show(); } }); mySwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (jumaDevice != null && jumaDevice.isConnected()) { jumaDevice.send((byte) 0x00, hexToByte(isChecked ? "01" : "00")); } } }); }
From source file:ca.ualberta.app.activity.MainActivity.java
/** * onCreate method. Once the activity is created, first set the content * view, and initialize ActionBar for fragments, and a Spinner for sort * options./*from w ww . j av a 2 s. c o m*/ * * @param savedInstanceState * the saved instance state bundle */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); bottom_Rg = (RadioGroup) findViewById(R.id.main_menu); main_Rb = (RadioButton) findViewById(R.id.main_menu_button); add_Rb = (RadioButton) findViewById(R.id.add_menu_button); fragments = new Fragment[2]; fragmentManager = getSupportFragmentManager(); fragments[0] = fragmentManager.findFragmentById(R.id.fragement_main); fragments[1] = fragmentManager.findFragmentById(R.id.fragement_profile); fragmentTransaction = fragmentManager.beginTransaction().hide(fragments[0]).hide(fragments[1]); fragmentTransaction.show(fragments[0]).commit(); setFragmentIndicator(); }
From source file:com.example.androidx.media.VideoViewTest.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Remove title bar requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.video_activity); mVideoView = findViewById(R.id.video_view); String errorString = null;// ww w .j a v a 2 s .c om Intent intent = getIntent(); Uri contentUri; if (intent == null || (contentUri = intent.getData()) == null || !contentUri.isAbsolute()) { errorString = "Invalid intent"; } else { mUseTextureView = intent.getBooleanExtra(USE_TEXTURE_VIEW_EXTRA_NAME, false); if (mUseTextureView) { mVideoView.setViewType(VideoView2.VIEW_TYPE_TEXTUREVIEW); } mVideoView.setFullScreenRequestListener(new FullScreenRequestListener()); mVideoView.setVideoUri(contentUri); mMediaControlView = new MediaControlView2(this); mVideoView.setMediaControlView2(mMediaControlView, 2000); } if (errorString != null) { showErrorDialog(errorString); } }
From source file:com.zira.registration.DocumentUploadActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_document_upload); VehicleInformationActivity.regActivities.add(DocumentUploadActivity.this); prefs = getSharedPreferences("Zira", MODE_PRIVATE); initialiseVariable();/* ww w . j a v a 2 s. c o m*/ initialiseListener(); }
From source file:de.teambluebaer.patientix.activities.EndActivity.java
/** * This method creates the layout of the Activity, sets the fullscreenmode and * removes the titlebar. In here also the Views are referenced. * * @param savedInstanceState default parameter *///w w w . j av a 2 s . c o m @Override protected void onCreate(Bundle savedInstanceState) { //removes the titlebar in fullscreenmode requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); setContentView(R.layout.activity_end); textViewEndtext = (TextView) findViewById(R.id.textViewEnd); Constants.TORESTART = false; Constants.LISTOFACTIVITIES.add(this); Constants.CURRENTACTIVITY = this; PrefUtils.setKioskModeActive(true, this); if (isFormula()) { String xml = Constants.GLOBALMETAANDFORM.toXMLString(); //set um parameterMap for RestPost to send formula data parameterMap.add(new BasicNameValuePair("formula", xml)); parameterMap .add(new BasicNameValuePair("patientID", Constants.GLOBALMETAANDFORM.getMeta().getPatientID())); Log.d("Response", Constants.GLOBALMETAANDFORM.getMeta().getPatientID()); Log.d("Response", xml); new SendFormula().execute(); } else { Toast.makeText(EndActivity.this, "Kein Formular vorhanden!", Toast.LENGTH_LONG).show(); textViewEndtext.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { Intent intent = new Intent(EndActivity.this, LoginActivity.class); startActivity(intent); PrefUtils.setKioskModeActive(false, EndActivity.this); finish(); return true; } }); } }
From source file:com.eurotong.orderhelperandroid.OrderMenuActivity.java
@Override public void onCreate(Bundle savedInstanceState) { try {/*from w w w.j a v a2 s . c o m*/ this.requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_order_menu); menusContainer = (LinearLayout) findViewById(R.id.MenusContainer); btnGoHome = (Button) findViewById(R.id.btnGoHome); btnGoHome.setOnClickListener(this); btnExtra = (Button) findViewById(R.id.btnExtra); btnExtra.setOnClickListener(this); btnCurrentOrders = (Button) findViewById(R.id.btnCurrentOrders); btnCurrentOrders.setOnClickListener(this); btnPrint = (Button) findViewById(R.id.btnPrint); btnPrint.setOnClickListener(this); btnMenuGroup = (Button) findViewById(R.id.btnMenuGroup); btnMenuGroup.setOnClickListener(this); btnCloseKeyboard = (Button) findViewById(R.id.btnCloseKeyboard); btnCloseKeyboard.setOnClickListener(this); editTextInput = (EditText) findViewById(R.id.editTextInput); editTextInput.addTextChangedListener(this); editTextInput.setOnTouchListener(this); _table = Common.GetTableFromIntent(this); int totalmenuitem = InitVMMenuGroup(); ShowCurrentOrders(); /* if(totalmenuitem>50) { MakeMenuGroupButtons(); } else { BindingMenuList(); } */ //load menu hints ProductHints.Current(); //http://stackoverflow.com/questions/2150656/how-to-set-focus-on-a-view-when-a-layout-is-created-and-displayed //close soft input when start up getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
From source file:bos.whu.familytree.ui.activitys.base.BaseActivity.java
@Override public void onNavigationDrawerItemSelected(int position) { switch (position) { case DrawerMenu.HOME: fragmentTransaction(new HomeFragment()); break;/*from w ww . j av a 2s. co m*/ case DrawerMenu.ABOUT: Dialog dialog = new Dialog(this); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.about_dialog); dialog.show(); break; } }
From source file:zjut.soft.finalwork.ui.SlidingActivity.java
@Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main);/* w w w . ja v a2s . c om*/ init(); // initListener(); mHandler.postDelayed(new Runnable() { @Override public void run() { showLeft(); // updateClassName(); // } }, 600); }