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:com.teleca.jamendo.activity.HomeActivity.java
/** Called when the activity is first created. */ @Override/*www. j a v a 2 s. c o m*/ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); mHomeListView = (ListView) findViewById(R.id.HomeListView); mGallery = (Gallery) findViewById(R.id.Gallery); mProgressBar = (ProgressBar) findViewById(R.id.ProgressBar); mFailureBar = (FailureBar) findViewById(R.id.FailureBar); mViewFlipper = (ViewFlipper) findViewById(R.id.ViewFlipper); mGestureOverlayView = (GestureOverlayView) findViewById(R.id.gestures); mGestureOverlayView .addOnGesturePerformedListener(JamendoApplication.getInstance().getPlayerGestureHandler()); new NewsTask().execute((Void) null); }
From source file:com.github.rutvijkumar.twittfuse.fragments.ComposeDialog.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Dialog dialog = getDialog();// w w w . j av a2 s . c om Window window = dialog.getWindow(); View view = inflater.inflate(R.layout.compose_dialog, container); window.requestFeature(Window.FEATURE_NO_TITLE); window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); window.setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); setUpUI(view); getUserAccountDetails(); return view; }
From source file:com.drunkenhamster.facerecognitionfps.SnapFaceActivity.java
/** Called when the activity is first created. */ @Override// w w w . j a v a 2s . com public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /* GoogleAnalyticsTracker */ Log.i(TAG, "GoogleAnalytics Setup"); tracker_ = GoogleAnalyticsTracker.getInstance(); tracker_.start(getString(R.string.GoogleAnalyticsUA), this); /* set Full Screen */ getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); /* set window with no title bar */ requestWindowFeature(Window.FEATURE_NO_TITLE); /* Restore preferences */ SharedPreferences settings = getSharedPreferences(getString(R.string.SnapFacePreference), 0); appMode_ = settings.getInt(getString(R.string.menu_AppMode), 0); fdetLevel_ = settings.getInt(getString(R.string.menu_Preferences), 1); //implicit intent receiver(GET_CONTENT will be invoked to add contact thumbnail) if (Intent.ACTION_GET_CONTENT.equals(getIntent().getAction())) { Log.i(TAG, "implicit intent:ACTION_GET_CONTENT"); calledACTION_GET_CONTENT_ = true; appMode_ = 0; } /* create camera view */ camPreview_ = new PreviewView(this, calledACTION_GET_CONTENT_, tracker_); camPreview_.setAppMode(appMode_); camPreview_.setfdetLevel(fdetLevel_, true); setContentView(camPreview_); /* append Overlay */ addContentView(camPreview_.getOverlay(), new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); }
From source file:com.example.android.camera.CameraActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Hide the window title. requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); // Create a RelativeLayout container that will hold a SurfaceView, // and set it as the content of our activity. // mPreview = new Preview(this); setContentView(R.layout.main);//from ww w . ja v a 2 s. c o m mPreview = (CameraPreview) findViewById(R.id.surface_view); mViewFinderView = (ViewFinderView) findViewById(R.id.viewfinder_view); textView = (TextView) findViewById(R.id.textView1); textServerView = (TextView) findViewById(R.id.textView2); imageView = (ImageView) findViewById(R.id.imageView1); // Find the total number of cameras available button = (Button) findViewById(R.id.btn_face_detection); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (fdButtonClicked) { fdButtonClicked = false; mCamera.stopFaceDetection(); button.setText("StartFaceDetection"); } else { fdButtonClicked = true; notRequesting = true; mCamera.startFaceDetection(); button.setText("StopFaceDetection"); } // mCamera.takePicture(myShutterCallback, myPictureCallback_RAW, myPictureCallback_JPG); //mViewFinderView.setDisplayOrientation(mDisplayOrientation); Log.d("Activity", "Button Clicked FD state: " + fdButtonClicked.toString()); } }); //mOrientationListener = new MyOrientationEventListener(this); //mOrientationListener.enable(); }
From source file:ch.pec0ra.mobilityratecalculator.ItineraryConfirmationDialog.java
@NonNull @Override//ww w .j ava 2 s . com public Dialog onCreateDialog(Bundle savedInstanceState) { final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); // Get the layout inflater LayoutInflater inflater = getActivity().getLayoutInflater(); final View v = inflater.inflate(R.layout.itinerary_confirmation_dialog, null); final String twoWay; if (itinerary.isTwoWay) { twoWay = getString(R.string.two_way); } else { twoWay = getString(R.string.one_way); } int distance = (int) Math.ceil((double) itinerary.distance / 1000); if (itinerary.isTwoWay) { distance = distance * 2; } final ImageView image = (ImageView) v.findViewById(R.id.map_image); image.setImageBitmap(itinerary.image); ((TextView) v.findViewById(R.id.from_text_view)).setText(getString(R.string.from_format, itinerary.from)); ((TextView) v.findViewById(R.id.to_text_view)).setText(getString(R.string.to_format, itinerary.to)); ((TextView) v.findViewById(R.id.two_way_text_view)).setText(twoWay); ((TextView) v.findViewById(R.id.total_distance_text_view)) .setText(getString(R.string.distance_format, distance)); // Inflate and set the layout for the dialog // Pass null as the parent view because its going in the dialog layout final int finalDistance = distance; builder.setView(v).setTitle(getString(R.string.itinerary)) // Add action buttons .setPositiveButton(R.string.confirm, new DialogInterface.OnClickListener() { @Override public void onClick(final DialogInterface dialog, int id) { mListener.onDialogPositiveClick(finalDistance); } }).setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { ItineraryConfirmationDialog.this.getDialog().cancel(); } }); Dialog dialog = builder.create(); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); return builder.create(); }
From source file:com.longle1.facedetection.MainActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { // Hide the window title. requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); // Create our Preview view and set it as the content of our activity. try {/* www .j a v a 2 s . c o m*/ layout = new FrameLayout(this); mFaceDetect = new FaceDetect(this); mCameraPreview = new CameraPreview(this, mFaceDetect); layout.addView(mCameraPreview); layout.addView(mFaceDetect); setContentView(layout); } catch (IOException e) { e.printStackTrace(); new AlertDialog.Builder(this).setMessage(e.getMessage()).create().show(); } }
From source file:com.ericsun.duom.Framework.Activity.BaseActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); AppManager.getAppManager().addActivity(this); ct = this;//from w w w.j a v a2 s . co m nojump = false; createRootView(LayoutInflater.from(this)); //? if (null != contentView) { contentView.addView(loadView()); } setContentView(rootView); //???? initData(savedInstanceState); }
From source file:net.reichholf.dreamdroid.activities.VirtualRemoteActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /* make window full-screen */ requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); mPrefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); mEditor = mPrefs.edit();//from www . j a v a 2 s . c o m mQuickZap = mPrefs.getBoolean(DreamDroid.PREFS_KEY_QUICKZAP, false); mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); reinit(); }
From source file:com.codetroopers.betterpickers.timezonepicker.TimeZonePickerDialogFragment.java
@NonNull @Override//from w w w. j a va 2s. c om public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); return dialog; }
From source file:com.poinsart.votar.VotarMain.java
@Override protected void onCreate(Bundle savedInstanceState) { this.requestWindowFeature(Window.FEATURE_NO_TITLE); System.loadLibrary("VotAR"); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); assetMgr = this.getAssets(); imageView = (ImageView) findViewById(R.id.imageView); bar[0] = (ProgressBar) findViewById(R.id.bar_a); bar[1] = (ProgressBar) findViewById(R.id.bar_b); bar[2] = (ProgressBar) findViewById(R.id.bar_c); bar[3] = (ProgressBar) findViewById(R.id.bar_d); barLabel[0] = (TextView) findViewById(R.id.label_a); barLabel[1] = (TextView) findViewById(R.id.label_b); barLabel[2] = (TextView) findViewById(R.id.label_c); barLabel[3] = (TextView) findViewById(R.id.label_d); wifiLabel = (TextView) findViewById(R.id.label_wifi); mainLayout = ((LinearLayout) findViewById(R.id.mainLayout)); controlLayout = ((LinearLayout) findViewById(R.id.controlLayout)); imageLayout = ((LinearLayout) findViewById(R.id.imageLayout)); adjustLayoutForOrientation(getResources().getConfiguration().orientation); findViewById(R.id.buttonCamera).setOnClickListener(new View.OnClickListener() { @Override//from ww w . j a v a2 s .c o m public void onClick(View v) { Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); cameraFileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); // create a file to save the image cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, cameraFileUri); // set the image file name startActivityForResult(cameraIntent, CAMERA_REQUEST); } }); findViewById(R.id.buttonGallery).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent, "Select Picture"), GALLERY_REQUEST); } }); votarwebserver = new VotarWebServer(51285, this); try { votarwebserver.start(); } catch (IOException e) { Log.w("Votar MainAct", "The webserver could not be started, remote display wont be available"); } }