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.catchoom.craftarsdkexamples.LaunchersActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_launchers); // Setup howto links findViewById(R.id.howto_link).setOnClickListener(this); findViewById(R.id.howto_link_ar_programmatically).setOnClickListener(this); findViewById(R.id.howto_link_ar_from_craftar).setOnClickListener(this); findViewById(R.id.howto_link_recognition_only).setOnClickListener(this); findViewById(R.id.howto_link_on_device_ar).setOnClickListener(this); // Setup example links findViewById(R.id.play_ar_programmatically).setOnClickListener(this); findViewById(R.id.play_ar_from_craftar).setOnClickListener(this); findViewById(R.id.play_recognition_only).setOnClickListener(this); findViewById(R.id.play_on_device_ar).setOnClickListener(this); // Setup bottom Links findViewById(R.id.imageButton_logo).setOnClickListener(this); findViewById(R.id.button_signUp).setOnClickListener(this); }
From source file:com.chromium.fontinstaller.ui.install.TryFontFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_try_font, container, false); ButterKnife.inject(this, view); getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE); title.setText(fontPackage.getName()); input.setTypeface(fontPackage.getTypeface(style, getActivity())); return view;/*from w w w .j av a2 s . c o m*/ }
From source file:android.support.design.widget.BottomSheetDialog.java
public BottomSheetDialog(@NonNull Context context, @StyleRes int theme) { super(context, getThemeResId(context, theme)); // We hide the title bar for any style configuration. Otherwise, there will be a gap // above the bottom sheet when it is expanded. supportRequestWindowFeature(Window.FEATURE_NO_TITLE); }
From source file:com.androzic.PreferencesHelpDialog.java
@SuppressLint("NewApi") @Override//from w w w . j av a 2 s . c o m public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) { dialog.setOnShowListener(new DialogInterface.OnShowListener() { @Override public void onShow(DialogInterface dialog) { scrollToView(rootView, rootView.findViewById(sectionId)); } }); } return dialog; }
From source file:com.ezeeideas.wordjam.GameDialog.java
public GameDialog(Context context) { super(context); mContext = context;/*from w ww. ja v a 2 s .c o m*/ mListener = (GameDialogListener) mContext; //don't show a title requestWindowFeature(Window.FEATURE_NO_TITLE); }
From source file:com.bjdz.brsse.ui.gallery.ActivityGallery.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); AppCutscenes.setHorizontalIn(ActivityGallery.this); setContentView(R.layout.activity_gallery); //gallery/*w ww . j a v a2 s . c om*/ mContent = (RelativeLayout) super.findViewById(R.id.gallery_content); mViewPager = new HackyViewPager(this); mViewPager.setBackgroundColor(Color.parseColor("#000000")); RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); mContent.addView(mViewPager, lp); //data imgList = this.getIntent().getExtras().getStringArrayList("photos"); oNum = imgList.size(); page = this.getIntent().getExtras().getInt("page"); //adapter mViewPager.setAdapter(new SamplePagerAdapter(imgList)); mViewPager.setCurrentItem(page); mViewPager.setOnPageChangeListener(pagerListener); //other views mTitle = (TextView) super.findViewById(R.id.gallery_num); mTitle.setText(page + 1 + "/" + imgList.size()); mBack = super.findViewById(R.id.gallery_back); mBack.setOnClickListener(btnsListener); mRecycle = super.findViewById(R.id.gallery_recycle); mRecycle.setOnClickListener(btnsListener); if (this.getIntent().hasExtra("read")) { mRecycle.setVisibility(View.INVISIBLE); } }
From source file:ca.ippetad.geerweekapp.view.MainActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /** View **//*from www . j a v a 2 s. co m*/ requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); /** FRAGMENTS **/ _frame = (FrameLayout) findViewById(R.id.container); _feed = new FeedFragment(); _events = new EventsFragment(); _kidnap = new KidnapFragment(); _godiva = new GodivaFragment(); _misc = new MiscFragment(); if (savedInstanceState == null) { getSupportFragmentManager().beginTransaction().add(R.id.container, _feed).commit(); } /** SLIDING MENU **/ _slide = new SlidingMenu(this); _slide.setMode(SlidingMenu.LEFT); _slide.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); _slide.setBehindOffset(250); _slide.setFadeDegree(.9f); _slide.setBackgroundColor(Color.parseColor("#444444")); _slide.attachToActivity(this, SlidingMenu.SLIDING_CONTENT); _slide.setMenu(R.layout.layout_menu); _slide.setOnOpenedListener(new SlidingMenu.OnOpenedListener() { @Override public void onOpened() { MENU_STATE = HIDDEN; invalidateOptionsMenu(); } }); _slide.setOnClosedListener(new SlidingMenu.OnClosedListener() { @Override public void onClosed() { MENU_STATE = VISIBLE; invalidateOptionsMenu(); } }); CustomTopBar bar = (CustomTopBar) findViewById(R.id.topbar); bar.setOnDrawerClickListener(new View.OnClickListener() { @Override public void onClick(View view) { _slide.toggle(); } }); ListView sliderList = (ListView) _slide.getRootView().findViewById(R.id.listview); CustomArrayAdapter slider_adapter = new CustomArrayAdapter(this, android.R.layout.simple_list_item_1, new String[] { "Home", "Events", "Kidnapping", "Godiva", "Misc" }); sliderList.setAdapter(slider_adapter); sliderList.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { switch (i) { case 0: getSupportFragmentManager().beginTransaction().replace(R.id.container, _feed) .addToBackStack(null).commit(); break; case 1: getSupportFragmentManager().beginTransaction().replace(R.id.container, _events) .addToBackStack(null).commit(); break; case 2: getSupportFragmentManager().beginTransaction().replace(R.id.container, _kidnap) .addToBackStack(null).commit(); break; case 3: getSupportFragmentManager().beginTransaction().replace(R.id.container, _godiva) .addToBackStack(null).commit(); break; case 4: getSupportFragmentManager().beginTransaction().replace(R.id.container, _misc) .addToBackStack(null).commit(); break; } _slide.toggle(); } }); }
From source file:android.fj.com.rxactivity.ResultInterceptorActivity.java
@Override protected void onCreate(final @Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); startActivityForResult(param, Short.MAX_VALUE); }
From source file:com.finlay.geomonsters.battle.BattleActivity.java
@Override public void onCreate(Bundle savedInstanceState) { Log.v(TAG, "onCreate"); super.onCreate(savedInstanceState); // set app to fullscreen requestWindowFeature(Window.FEATURE_NO_TITLE); // get the Battle layout setContentView(R.layout.battle);//from ww w .j a va2 s.co m // Get information sent by prior activity Intent intent = getIntent(); String enemyName = intent.getStringExtra("ENEMYNAME"); // Layout items btn1 = (Button) findViewById(R.id.button1); btn2 = (Button) findViewById(R.id.button2); btn3 = (Button) findViewById(R.id.button3); btn4 = (Button) findViewById(R.id.button4); btnPanel = (LinearLayout) findViewById(R.id.Buttons); // Contains buttons on bottom panel msgPanel = (TextWriter) findViewById(R.id.MessageView); // Scrolls text to bottom panel drawingPanel = (BattleDrawingPanel) findViewById(R.id.BattleView); // Main drawing canvas bottomPanel = (RelativeLayout) findViewById(R.id.Bottom_Panel); // Bottom panel containing buttons and text msgPanel.setCharacterDelay(50); // set Text scroll speed drawingPanel.init(this, enemyName); // send initialization info to canvas drawingPanel.setOnTouchListener(new MyViewTouchListener()); // listen for touches on canvas bottomPanel.setOnTouchListener(new MyViewTouchListener()); // listen for touches on bottom panel BtnSetup_Default(); // set buttons btn1.setOnClickListener(new MyButtonClickListener()); btn2.setOnClickListener(new MyButtonClickListener()); btn3.setOnClickListener(new MyButtonClickListener()); btn4.setOnClickListener(new MyButtonClickListener()); }
From source file:biz.easymenu.easymenung.ErrorFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = li.inflate(R.layout.errordialog, container, false); ((TextView) v.findViewById(R.id.txtErrDlg)).setText(err); WindowManager.LayoutParams WMLP = this.getDialog().getWindow().getAttributes(); WMLP.y = 100; //y position WMLP.gravity = Gravity.TOP;//from ww w. jav a 2 s.c om WMLP.windowAnimations = R.style.PauseDialogAnimation; this.getDialog().getWindow().setAttributes(WMLP); this.getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE); btnOk = (Button) v.findViewById(R.id.btnErrDlg); btnOk.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dismiss(); } }); return v; }