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.group7.dragonwars.GameActivity.java
@Override protected final void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); // remove the title bar requestWindowFeature(Window.FEATURE_NO_TITLE); // remove the status bar getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Log.d(TAG, "in onCreate"); //setContentView(R.layout.loading_screen); Log.d(TAG, "on inCreate"); }
From source file:com.beyondar.example.SimpleCameraWithMaxFarMinAwayActivity.java
/** Called when the activity is first created. */ @Override// ww w . j a v a2 s .c o m public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Hide the window title. requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.simple_camera_with_distance_seekbars); mBeyondarFragment = (BeyondarFragmentSupport) getSupportFragmentManager() .findFragmentById(R.id.beyondarFragment); mTextValues = (TextView) findViewById(R.id.textValues); mMaxFarText = (TextView) findViewById(R.id.textBarMax); mMinFarText = (TextView) findViewById(R.id.textBarMin); mArViewDistanceText = (TextView) findViewById(R.id.textBarArViewDistance); mZfarText = (TextView) findViewById(R.id.textBarZFar); mMaxFarText.setText("Pull closer:"); mMinFarText.setText("Push away:"); mArViewDistanceText.setText("Max dst render:"); mZfarText.setText("Dst factor:"); mSeekBarPullCloserDistance = (SeekBar) findViewById(R.id.seekBarMax); mSeekBarPushAwayDistance = (SeekBar) findViewById(R.id.seekBarMin); mSeekBarMaxDistanceToRender = (SeekBar) findViewById(R.id.seekBarArViewDistance); mSeekBarDistanceFactor = (SeekBar) findViewById(R.id.seekBarZFar); mSeekBarPullCloserDistance.setMax(1000); mSeekBarPushAwayDistance.setMax(1000); mSeekBarMaxDistanceToRender.setMax(20000); // 20 km mSeekBarDistanceFactor.setMax(50000); mSeekBarPullCloserDistance.setOnSeekBarChangeListener(this); mSeekBarPushAwayDistance.setOnSeekBarChangeListener(this); mSeekBarMaxDistanceToRender.setOnSeekBarChangeListener(this); mSeekBarDistanceFactor.setOnSeekBarChangeListener(this); updateTextValues(); mSeekBarPushAwayDistance.setProgress(115); mSeekBarMaxDistanceToRender.setProgress(20000); mSeekBarDistanceFactor.setProgress(50000); // We create the world and fill it ... mWorld = CustomWorldHelper.generateObjects(this); // .. and send it to the fragment mBeyondarFragment.setWorld(mWorld); }
From source file:edu.cwru.apo.APO.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // removes title bar on app, making image full screen requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.splash_screen); // load keys if they exist Auth.loadKeys(getSharedPreferences(APO.PREF_FILE_NAME, MODE_PRIVATE)); API api = new API(this); if (!api.callMethod(Methods.checkCredentials, this, (String[]) null)) { Intent loginIntent = new Intent(APO.this, Login.class); Bundle extras = new Bundle(); extras.putString("msg", "No saved credentials"); loginIntent.putExtras(extras);/*from w w w. j a v a 2 s . c o m*/ APO.this.startActivity(loginIntent); finish(); } }
From source file:com.tedx.alcatraz.SpeakerResultActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); mFrom = new String[] { SearchResult.NAME, SearchResult.TOPIC, SearchResult.PHOTOURL }; mTo = new int[] { android.R.id.text1, android.R.id.text2, android.R.id.icon }; super.onCreate(savedInstanceState, R.layout.searchresults, R.layout.searchresultrow); }
From source file:com.beyondar.example.SimpleCameraWithRadarActivity.java
/** Called when the activity is first created. */ @Override//from ww w. ja v a 2 s.c om public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Hide the window title. requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.simple_camera_with_radar); mBeyondarFragment = (BeyondarFragmentSupport) getSupportFragmentManager() .findFragmentById(R.id.beyondarFragment); mBeyondarFragment = (BeyondarFragmentSupport) getSupportFragmentManager() .findFragmentById(R.id.beyondarFragment); mTextviewMaxDistance = (TextView) findViewById(R.id.textMaxDistance); mSeekBarMaxDistance = (SeekBar) findViewById(R.id.seekBarMaxDistance); mRadarView = (RadarView) findViewById(R.id.radarView); // Create the Radar plugin mRadarPlugin = new RadarWorldPlugin(this); // set the radar view in to our radar plugin mRadarPlugin.setRadarView(mRadarView); // Set how far (in meters) we want to display in the view mRadarPlugin.setMaxDistance(100); // We can customize the color of the items mRadarPlugin.setListColor(CustomWorldHelper.LIST_TYPE_EXAMPLE_1, Color.RED); // and also the size mRadarPlugin.setListDotRadius(CustomWorldHelper.LIST_TYPE_EXAMPLE_1, 3); // We create the world and fill it ... mWorld = CustomWorldHelper.generateObjects(this); // .. and send it to the fragment mBeyondarFragment.setWorld(mWorld); // add the plugin mWorld.addPlugin(mRadarPlugin); // We also can see the Frames per seconds mBeyondarFragment.showFPS(true); mSeekBarMaxDistance.setOnSeekBarChangeListener(this); mSeekBarMaxDistance.setMax(300); mSeekBarMaxDistance.setProgress(23); }
From source file:com.findcab.driver.activity.Signup.java
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.register);//from www . ja v a2s.c om initView(); initLocation(); }
From source file:com.beyondar.example.CameraWithTouchEventsActivity.java
/** Called when the activity is first created. */ @Override// w w w . j av a 2s . c o m public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Hide the window title. requestWindowFeature(Window.FEATURE_NO_TITLE); loadViewFromXML(); // We create the world and fill it mWorld = CustomWorldHelper.generateObjects(this); mBeyondarFragment.setWorld(mWorld); mBeyondarFragment.showFPS(true); // set listener for the geoObjects mBeyondarFragment.setOnTouchBeyondarViewListener(this); mBeyondarFragment.setOnClickBeyondarObjectListener(this); }
From source file:com.chromium.fontinstaller.ui.backuprestore.BackupDialogFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_backup_dialog, container, false); ButterKnife.inject(this, view); getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE); return view;/*from w w w . j a va 2 s .c o m*/ }
From source file:android.support.v7.app.AppCompatDialogFragment.java
/** @hide */ @Override//from ww w. jav a 2s. c o m public void setupDialog(Dialog dialog, int style) { if (dialog instanceof AppCompatDialog) { // If the dialog is an AppCompatDialog, we'll handle it AppCompatDialog acd = (AppCompatDialog) dialog; switch (style) { case STYLE_NO_INPUT: dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE); // fall through... case STYLE_NO_FRAME: case STYLE_NO_TITLE: acd.supportRequestWindowFeature(Window.FEATURE_NO_TITLE); } } else { // Else, just let super handle it super.setupDialog(dialog, style); } }
From source file:co.codecrunch.musicplayerlite.utility.ColorChooserDialog.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Save current theme to use when user press dismiss inside dialog sharedPreferences = getActivity().getSharedPreferences("VALUES", Context.MODE_PRIVATE); currentTheme = sharedPreferences.getInt("THEME", 0); //inflate theme_dialog.xml view = inflater.inflate(R.layout.theme_dialog, container); // remove title (already defined in theme_dialog.xml) getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE); // Declare buttons and onClick methods dialogButtons();/*from www.j a v a2 s .c o m*/ return view; }