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.fbbackup.MyFriendFragmentActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { if (BuildConfig.DEBUG) { Utils.enableStrictMode();//from w w w. j a v a 2s.c o m } super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.user_photo_layout); mContext = this; // adView adView = new AdView(this, AdSize.BANNER, "a151aa20ff8c2a2"); // /* */ // AdRequest adRequest = new AdRequest(); // adRequest.addTestDevice(AdRequest.TEST_EMULATOR); // u // adRequest.addTestDevice("TEST_DEVICE_ID"); // Android m // /* */ friendsPicture = getIntent().getExtras().getStringArray("friendPic"); friendsName = getIntent().getExtras().getStringArray("friendName"); friendsID = getIntent().getExtras().getStringArray("friendID"); tagMePicture = getIntent().getExtras().getStringArray("tagMePicture"); token = getIntent().getExtras().getString("token"); Fragment newFragment = new MyFriendFragment(); Bundle args = new Bundle(); args.putStringArray("friendPic", friendsPicture); args.putStringArray("friendName", friendsName); args.putStringArray("friendID", friendsID); args.putString("token", token); newFragment.setArguments(args); if (getSupportFragmentManager().getBackStackEntryCount() == 0) { FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.add(R.id.rl_user_photo, newFragment, "friend"); //ft.replace(R.id.rl_user_photo, newFragment, "first"); ft.addToBackStack(null); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); } setView(); setLisetner(); // new download taskAappeu@tddownload task downloadTask = new DownloadTask(); downloadTaskNoUI = new DownloadTaskNoUpdateUI(); }
From source file:cd.education.data.collector.android.activities.GeoPointMapActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null) { mLocationCount = savedInstanceState.getInt(LOCATION_COUNT); }/*from www.jav a2 s . c o m*/ requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.geopoint_layout); Intent intent = getIntent(); mLocationAccuracy = GeoPointWidget.DEFAULT_LOCATION_ACCURACY; if (intent != null && intent.getExtras() != null) { if (intent.hasExtra(GeoPointWidget.LOCATION)) { double[] location = intent.getDoubleArrayExtra(GeoPointWidget.LOCATION); mLatLng = new LatLng(location[0], location[1]); } if (intent.hasExtra(GeoPointWidget.ACCURACY_THRESHOLD)) { mLocationAccuracy = intent.getDoubleExtra(GeoPointWidget.ACCURACY_THRESHOLD, GeoPointWidget.DEFAULT_LOCATION_ACCURACY); } mCaptureLocation = !intent.getBooleanExtra(GeoPointWidget.READ_ONLY, false); mRefreshLocation = mCaptureLocation; } /* Set up the map and the marker */ mMarkerOption = new MarkerOptions(); mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap(); mMap.setOnMarkerDragListener(this); mLocationStatus = (TextView) findViewById(R.id.location_status); /*Zoom only if there's a previous location*/ if (mLatLng != null) { mLocationStatus.setVisibility(View.GONE); mMarkerOption.position(mLatLng); mMarker = mMap.addMarker(mMarkerOption); mRefreshLocation = false; // just show this position; don't change it... mMarker.setDraggable(mCaptureLocation); mZoomed = true; mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(mLatLng, 16)); } mCancelLocation = (Button) findViewById(R.id.cancel_location); mCancelLocation.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Collect.getInstance().getActivityLogger().logInstanceAction(this, "cancelLocation", "cancel"); finish(); } }); mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); // make sure we have a good location provider before continuing List<String> providers = mLocationManager.getProviders(true); for (String provider : providers) { if (provider.equalsIgnoreCase(LocationManager.GPS_PROVIDER)) { mGPSOn = true; } if (provider.equalsIgnoreCase(LocationManager.NETWORK_PROVIDER)) { mNetworkOn = true; } } if (!mGPSOn && !mNetworkOn) { Toast.makeText(getBaseContext(), getString(R.string.provider_disabled_error), Toast.LENGTH_SHORT) .show(); finish(); } if (mGPSOn) { Location loc = mLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); if (loc != null) { InfoLogger.geolog("GeoPointMapActivity: " + System.currentTimeMillis() + " lastKnownLocation(GPS) lat: " + loc.getLatitude() + " long: " + loc.getLongitude() + " acc: " + loc.getAccuracy()); } else { InfoLogger.geolog("GeoPointMapActivity: " + System.currentTimeMillis() + " lastKnownLocation(GPS) null location"); } } if (mNetworkOn) { Location loc = mLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); if (loc != null) { InfoLogger.geolog("GeoPointMapActivity: " + System.currentTimeMillis() + " lastKnownLocation(Network) lat: " + loc.getLatitude() + " long: " + loc.getLongitude() + " acc: " + loc.getAccuracy()); } else { InfoLogger.geolog("GeoPointMapActivity: " + System.currentTimeMillis() + " lastKnownLocation(Network) null location"); } } mAcceptLocation = (Button) findViewById(R.id.accept_location); if (mCaptureLocation) { mAcceptLocation.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Collect.getInstance().getActivityLogger().logInstanceAction(this, "acceptLocation", "OK"); returnLocation(); } }); mMap.setOnMapLongClickListener(this); } else { mAcceptLocation.setVisibility(View.GONE); } mReloadLocation = (Button) findViewById(R.id.reload_location); if (mCaptureLocation) { mReloadLocation.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { mRefreshLocation = true; mReloadLocation.setVisibility(View.GONE); mLocationStatus.setVisibility(View.VISIBLE); if (mGPSOn) { mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, GeoPointMapActivity.this); } if (mNetworkOn) { mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, GeoPointMapActivity.this); } } }); mReloadLocation.setVisibility(!mRefreshLocation ? View.VISIBLE : View.GONE); } else { mReloadLocation.setVisibility(View.GONE); } // Focuses on marked location mShowLocation = ((Button) findViewById(R.id.show_location)); mShowLocation.setVisibility(View.VISIBLE); mShowLocation.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Collect.getInstance().getActivityLogger().logInstanceAction(this, "showLocation", "onClick"); mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(mLatLng, 16)); } }); mShowLocation.setClickable(mMarker != null); }
From source file:biz.easymenu.easymenung.ItemFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { WindowManager.LayoutParams WMLP = this.getDialog().getWindow().getAttributes(); WMLP.windowAnimations = R.style.PauseDialogAnimation; this.getDialog().getWindow().setAttributes(WMLP); v = li.inflate(R.layout.itemdialog, container, false); np = (NumberPicker) v.findViewById(R.id.itemnumpick); ((TextView) v.findViewById(R.id.itemLabel)).setText(item.getLabel()); ((TextView) v.findViewById(R.id.itemDescription)).setText(item.getDescription()); try {/*w w w . j a v a2s .com*/ ((ImageView) v.findViewById(R.id.itemImage)).setImageBitmap(BitmapFactory .decodeStream(getActivity().openFileInput(Integer.toString(item.getIdImage()) + ".img"))); } catch (FileNotFoundException e) { Log.e(EasymenuNGActivity.TAG, "Error image file not found: " + e.getMessage()); } this.getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE); new Thread(new NumberRun()).start(); btnOk = (Button) v.findViewById(R.id.itembtnOK); btnOk.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { try { if (oldNr > 0 || np.getValue() > 0) rpc.addToOrder(sid, item.getIdMenulists(), np.getValue(), note); } catch (Exception e) { FragmentManager fm = getActivity().getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ErrorFragment f = new ErrorFragment(e.getMessage()); Fragment prev = fm.findFragmentByTag("errorDialog"); if (prev != null) { ft.remove(prev); ft.commit(); } f.show(ft, "errorDialog"); } finally { dismiss(); } } }); btnNote = (Button) v.findViewById(R.id.itembtnNote); btnNote.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { FragmentManager fm = getActivity().getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); NoteDialog f = new NoteDialog(itemFrag, note); Fragment prev = fm.findFragmentByTag("noteDialog"); if (prev != null) { ft.remove(prev); ft.commit(); } f.show(ft, "noteDialog"); } }); return v; }
From source file:com.microsoft.aad.adal.hello.MainActivity.java
@Override protected void onResume() { super.onResume(); // To test session cookie behavior mLoginProgressDialog = new ProgressDialog(this); mLoginProgressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); mLoginProgressDialog.setMessage("Login in progress..."); }
From source file:net.dian1.player.activity.HomeActivity.java
/** Called when the activity is first created. */ @Override//ww w . ja va 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(Dian1Application.getInstance().getPlayerGestureHandler()); new NewsTask().execute((Void) null); }
From source file:com.safecell.ManageProfile_Activity.java
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setWindowAnimations(R.anim.null_animation); Intent callingIntent = getIntent();//w w w . j a v a2s. c om callingActivity = callingIntent.getStringExtra("CallingActivity"); context = ManageProfile_Activity.this; dialog = new ProgressDialog(context); licenseRepository = new LicenseRepository(context); intializesecondTitleLabelArray(); intiUI(); progressDialog = new ProgressDialog(context); licenseProgressDialog = new ProgressDialog(context); licenseThread = new LicenseThread(); handleMessageFromThread(); setListAdapter(new manageProfileListAdapter(ManageProfile_Activity.this)); TabControler tabControler = new TabControler(ManageProfile_Activity.this); homeButton.setOnClickListener(tabControler.getHomeTabOnClickListner()); }
From source file:com.zira.registration.VehicleInformationActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_vehicle_information); regActivities = new ArrayList<Activity>(); regActivities.add(VehicleInformationActivity.this); initialiseVariable();/*from www .j av a 2s.com*/ DownloadData(); initialiseListener(); //Selecteddata(); //setApapterForState(); //setApapterForCountry(); }
From source file:com.zira.registration.BackgroundCheckActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_background_check); VehicleInformationActivity.regActivities.add(BackgroundCheckActivity.this); getCurrentTime();/* w ww . j a v a 2s . c o m*/ //try { initialiseVariable(); //} catch (Exception e) { // TODO Auto-generated catch block // e.printStackTrace(); //} initialiseListener(); getCity(); }
From source file:com.joker.graphs.JokerStatisticsUserRegist.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // // www . j ava 2s.c o m requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.lay_statistics_user_regist); last = (Button) findViewById(R.id.id_statistics_user_regist_last); next = (Button) findViewById(R.id.id_statistics_user_regist_next); tv_year = (TextView) findViewById(R.id.id_statistics_user_regist_year); layout = (LinearLayout) findViewById(R.id.lay_statistics_chart_user_regist); //layoutlayout setListener(); /** * 1maxyearminyear 212 3series 4 */ ThreadPoolUtils.execute(new HttpGetThread(handler1, "statistics.php?action=rangeuserregist")); // login_close = (ImageView) findViewById(R.id.loginClose); login_close.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { finish(); } }); }
From source file:com.joker.graphs.JokerStatisticsJokePost.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); // //w w w. j av a 2 s. c om setContentView(R.layout.lay_statistics_joke_post); last = (Button) findViewById(R.id.id_statistics_joke_post_last); next = (Button) findViewById(R.id.id_statistics_joke_post_next); tv_year = (TextView) findViewById(R.id.id_statistics_joke_post_year); layout = (LinearLayout) findViewById(R.id.lay_statistics_chart_joke_post); //layoutlayout setListener(); /** * 1maxyearminyear 212 3series 4 */ ThreadPoolUtils.execute(new HttpGetThread(handler1, "statistics.php?action=rangejokepostyear")); // login_close = (ImageView) findViewById(R.id.loginClose); login_close.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { finish(); } }); }