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.example.t_gallery.ImageDetail.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_image_detail); // Contains just a ViewPager mImageList = getIntent().getStringArrayListExtra(Config.IMAGE_LIST); mClickIndex = getIntent().getIntExtra(Config.CLICK_INDEX, 0); mClickItemInfo = getIntent().getIntArrayExtra(Config.CLICK_ITEM_INFO); mThumbnailId = getIntent().getLongExtra(Config.THUMBNAIL_ID, 0); mAdapter = new ImagePagerAdapter(getSupportFragmentManager(), this); mPager = (ViewPager) findViewById(R.id.pager); mPager.setAdapter(mAdapter);// ww w .j a v a2 s .co m mPager.setCurrentItem(mClickIndex); mFlipmap = new HashMap<Integer, Bitmap>(); }
From source file:com.beyondar.example.StaticViewGeoObjectActivity.java
/** Called when the activity is first created. */ @Override/*from w w w . jav a 2s . c o m*/ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // The first thing that we do is to remove all the generated temporal // images. Remember that the application needs external storage write // permission. cleanTempFolder(); // Hide the window title. requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.simple_camera); mBeyondarFragment = (BeyondarFragmentSupport) getSupportFragmentManager() .findFragmentById(R.id.beyondarFragment); mBeyondarFragment.setOnClickBeyondarObjectListener(this); // We create the world and fill it ... mWorld = CustomWorldHelper.generateObjects(this); // .. and send it to the fragment mBeyondarFragment.setWorld(mWorld); // We also can see the Frames per seconds mBeyondarFragment.showFPS(true); // This method will replace all GeoObjects the images with a simple // static view replaceImagesByStaticViews(mWorld); }
From source file:android.fj.com.rxactivity.PermissionInterceptorActivity.java
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); requestPermissions(param, Short.MAX_VALUE); }
From source file:net.alchemiestick.katana.winehqappdb.filter_dialog.java
public filter_dialog(Context cx, List<NameValuePair> data) { super(cx);/*from w ww . j ava 2 s. co m*/ this.cx = cx; this.webData = data; this.requestWindowFeature(Window.FEATURE_NO_TITLE); vocl = new View.OnClickListener() { public void onClick(View v) { onCheckboxClick(v); } }; maxLines = new OnEditorActionListener() { @Override public boolean onEditorAction(TextView tv, int action, KeyEvent key) { boolean handled = false; if (action == EditorInfo.IME_ACTION_DONE) { setMaxLines(tv.getText().toString()); tv.setText(getNamedData("iPage")); InputMethodManager imm = (InputMethodManager) tv.getContext() .getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(tv.getWindowToken(), 0); handled = true; } return handled; } }; rateListener = new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { rateSelected((String) parent.getItemAtPosition(pos)); } public void onNothingSelected(AdapterView<?> parent) { } }; licenseListener = new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { licenseSelected((String) parent.getItemAtPosition(pos)); } public void onNothingSelected(AdapterView<?> parent) { } }; placementListener = new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { placementSelected((String) parent.getItemAtPosition(pos)); } public void onNothingSelected(AdapterView<?> parent) { } }; }
From source file:com.beyondar.example.AttachViewToGeoObjectActivity.java
/** Called when the activity is first created. */ @Override/*from w w w . ja v a 2 s . com*/ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); showViewOn = Collections.synchronizedList(new ArrayList<BeyondarObject>()); // Hide the window title. requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.simple_camera); mBeyondarFragment = (BeyondarFragmentSupport) getSupportFragmentManager() .findFragmentById(R.id.beyondarFragment); // We create the world and fill it ... mWorld = CustomWorldHelper.generateObjects(this); // .. and send it to the fragment mBeyondarFragment.setWorld(mWorld); // We also can see the Frames per seconds mBeyondarFragment.showFPS(true); mBeyondarFragment.setOnClickBeyondarObjectListener(this); CustomBeyondarViewAdapter customBeyondarViewAdapter = new CustomBeyondarViewAdapter(this); mBeyondarFragment.setBeyondarViewAdapter(customBeyondarViewAdapter); Toast.makeText(this, "Click on any object to attach it a view", Toast.LENGTH_LONG).show(); }
From source file:com.hua.goddess.activites.RegisterActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_register); pd = new ProgressDialog(RegisterActivity.this); // DeviceUuidFactory uuid = new DeviceUuidFactory(this); // uid = uuid.getDeviceUuid().toString(); emailEditText = (EditText) findViewById(R.id.email); emailEditText.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);// ?? userNameEditText = (EditText) findViewById(R.id.username); passwordEditText = (EditText) findViewById(R.id.password); confirmPwdEditText = (EditText) findViewById(R.id.confirm_password); rg = (RadioGroup) findViewById(R.id.sex); b1 = (RadioButton) findViewById(R.id.male); b2 = (RadioButton) findViewById(R.id.female); wh = new WsRequestHelper(new WsRequestHelper.InterfaceCallBack() { @Override/*from w w w . j a v a 2 s . c om*/ public void RequestCallBack(Object result) { // TODO Auto-generated method stub pd.dismiss(); // Toast.makeText(RegisterActivity.this, result.toString(), // Toast.LENGTH_SHORT).show(); if (result.toString().equals("?")) { Intent intent = new Intent(RegisterActivity.this, LoginActivity.class); Bundle bundle = new Bundle(); bundle.putString("username", userNameEditText.getText().toString().trim()); intent.putExtras(bundle); setResult(100, intent); finish(); } } }); rg.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, int checkedId) { // TODO Auto-generated method stub if (checkedId == b1.getId()) { sex = "1"; Toast.makeText(RegisterActivity.this, "", Toast.LENGTH_LONG).show(); } if (checkedId == b2.getId()) { sex = "2"; Toast.makeText(RegisterActivity.this, "", Toast.LENGTH_LONG).show(); } } }); }
From source file:biz.easymenu.easymenung.EasymenuNGActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main);/* ww w. ja v a2s .co m*/ emp = new EmPrefs(this); rpc = new Emrpc(this); try { ((ImageView) findViewById(R.id.logoImg)) .setImageBitmap(BitmapFactory.decodeStream(openFileInput("logo.img"))); } catch (FileNotFoundException e) { Log.e(EasymenuNGActivity.TAG, "Error image file not found: " + e.getMessage()); } this.findViewById(R.id.lblTable).setClickable(true); this.findViewById(R.id.lblTable).setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { ((TextView) findViewById(R.id.lblTable)).setText(""); findViewById(R.id.btnMenu).setEnabled(false); findViewById(R.id.btnDrinks).setEnabled(false); findViewById(R.id.btnWaiter).setEnabled(false); findViewById(R.id.btnOrder).setEnabled(false); findViewById(R.id.btnBill).setEnabled(false); findViewById(R.id.btnConfig).setVisibility(View.GONE); FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft; Fragment f = null; f = new TableListFragment(); if (fm.findFragmentByTag("rightfragment") != null) { ft = fm.beginTransaction(); ft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); ft.remove(fm.findFragmentByTag("rightfragment")); ft.commit(); } ft = fm.beginTransaction(); ft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); ft.add(R.id.rightcontent, f, "rightfragment"); ft.commit(); return true; } }); FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft; Fragment f = null; f = new TableListFragment(); ft = fm.beginTransaction(); ft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); ft.add(R.id.rightcontent, f, "rightfragment"); ft.commit(); }
From source file:com.fbartnitzek.tasteemall.filter.AttributeFilterBaseDialogFragment.java
@NonNull @Override// w ww . ja v a 2 s .c om public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); Bundle bundle = getArguments(); if (bundle == null) { bundle = savedInstanceState; } if (bundle == null) { throw new RuntimeException("neither args nor savedInstance - should never happen..."); } mBaseEntity = bundle.getString(BASE_ENTITY); mAttributeName = bundle.getString(ATTRIBUTE_NAME); // nothing really works to restrict the size => TODO Window window = dialog.getWindow(); if (window != null) { window.setGravity(Gravity.CENTER); // dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); // WindowManager.LayoutParams p = window.getAttributes(); // Log.v(LOG_TAG, "onCreateDialog, p.verticalMargin=" + p.verticalMargin + ", " + "p.horizontalMargin = [" + p.horizontalMargin+ "]"); // p.height = getActivity().getResources().getDisplayMetrics().heightPixels / 2; // float vertMargin = p.verticalMargin; // p.verticalMargin = vertMargin + dpToPx(100); // p.y = prevY + dpToPx(100); // p.x = 150; // window.setAttributes(p); // fullscreen: height and width = -1 // Log.v(LOG_TAG, "onCreateDialog, p.width=" + p.width + ", " + "p.height = [" + p.height+ "]"); } return dialog; }
From source file:andlabs.lounge.lobby.ui.LoungeActivity.java
@Override public void onCreate(Bundle savedInstanceState) { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity);// w w w . ja v a 2 s .c om mSectionLabel = (TextView) findViewById(R.id.lobbySection); mAboutIcon = (ImageView) findViewById(R.id.ic_tab_about); mLobbyIcon = (ImageView) findViewById(R.id.ic_tab_lobby); mStatsIcon = (ImageView) findViewById(R.id.ic_tab_stat); mChatIcon = (ImageView) findViewById(R.id.ic_tab_chat); mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager.setOnPageChangeListener(this); mViewPager.setOffscreenPageLimit(3); mViewPager.setAdapter(new FragmentStatePagerAdapter(getSupportFragmentManager()) { @Override public int getCount() { return 4; } @Override public Fragment getItem(int position) { Ln.d("ITEM " + position); switch (position) { case LOBBY: return new LobbyFragment(); case CHAT: return new ChatFragment(); case STATS: return new StatsFragment(); case ABOUT: return new AboutFragment(); } return null; } }); onPageSelected(LOBBY); }
From source file:com.fjn.magazinereturncandidate.fragments.InputJanCodeFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //Init custom product detail layout View rootView = inflater.inflate(R.layout.fragment_input_jan, container, false); if (getDialog().getWindow() != null) { getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); }/* ww w. j a v a 2 s . co m*/ //Get flag setting OCR if (getArguments() != null) { flagSwitchOCR = getArguments().getString(Constants.FLAG_SWITCH_OCR); } //Get Id textView Product detail txv_jan_cd = (TextView) rootView.findViewById(R.id.txv_jan_cd_input); txv_inventory_number = (TextView) rootView.findViewById(R.id.txv_inventory_number_input); Button btn_submit_edit = (Button) rootView.findViewById(R.id.btn_submit_edit_input); // Set adapter for combo box with array ArrayAdapter<String> adapter1 = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1, arr); // Set item selected adapter1.setDropDownViewResource(android.R.layout.simple_list_item_single_choice); // Set button click btn_submit_edit.setOnClickListener(this); //Set default end text txv_jan_cd.setText(""); txv_jan_cd.append(Constants.PREFIX_JAN_CODE_MAGAZINE); //focus end text //Show keyboard txv_jan_cd.requestFocus(); getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); checkDataCommon = new CheckDataCommon(); registerLicenseCommon = new RegisterLicenseCommon(); formatCommon = new FormatCommon(); hsmDecoder = HSMDecoder.getInstance(getActivity()); return rootView; }