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.SplashScreenActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash_screen); CraftARSDK.Instance().init(getApplicationContext()); checkPermissions();//from w ww. ja v a 2 s . com }
From source file:com.neuron.fantecremote.FantecActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.navigate);/* www . j a v a2 s .c o m*/ prefs = getSharedPreferences("fantecremote", 0); /* * Setup toolbar */ actionBar = (ActionBar) findViewById(R.id.actionbar); // You can also assign the title programmatically by passing a // CharSequence or resource id. //actionBar.setTitle(R.string.some_title); //actionBar.setHomeAction(new IntentAction(this, HomeActivity.createIntent(this), R.drawable.ic_title_home_default)); actionBar.setTitle("Fantec Remote"); actionBar.addAction(new SettingsAction()); // Look up the AdView as a resource and load a request. /*AdView adView = (AdView)this.findViewById(R.id.adView); adView.loadAd(new AdRequest());*/ // Create the adView AdView adView = new AdView(this, AdSize.BANNER, "a14dd8d8827bacc"); // Lookup your LinearLayout assuming its been given // the attribute android:id="@+id/mainLayout" LinearLayout layout = (LinearLayout) findViewById(R.id.mainLayout); // Add the adView to it //layout.addView(adView, new LayoutParams()) layout.addView(adView); // Initiate a generic request to load it with an ad AdRequest adRequest = new AdRequest(); //adRequest.addTestDevice("F7C9180F318B9F36622B5A61C79AD7BF"); adView.loadAd(adRequest); //adView.setGravity(Gravity.BOTTOM | Gravity.CENTER); /*if (Settings.GetApiUrl(prefs) == null) { Intent i = new Intent(this, Settings.class); startActivityForResult(i, Intent.FLAG_ACTIVITY_CLEAR_TOP); } */ ImageButton button = (ImageButton) findViewById(R.id.imageButton1); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_GUIDE"); } }); button = (ImageButton) findViewById(R.id.imageButton2); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_UP"); } }); button = (ImageButton) findViewById(R.id.imageButton3); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_RETURN"); } }); button = (ImageButton) findViewById(R.id.imageButton4); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_LEFT"); } }); button = (ImageButton) findViewById(R.id.imageButton5); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_SELECT"); } }); button = (ImageButton) findViewById(R.id.imageButton6); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_RIGHT"); } }); button = (ImageButton) findViewById(R.id.imageButton7); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_EDIT"); } }); button = (ImageButton) findViewById(R.id.imageButton8); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_DOWN"); } }); button = (ImageButton) findViewById(R.id.imageButton9); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_SETUP"); } }); /** The playback controls */ button = (ImageButton) findViewById(R.id.imageButton10); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_STOP"); } }); button = (ImageButton) findViewById(R.id.imageButton11); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_MELE_PLAYPAUSE"); } }); button = (ImageButton) findViewById(R.id.imageButton12); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_DISPLAY"); } }); button = (ImageButton) findViewById(R.id.imageButton13); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_FRWD"); } }); button = (ImageButton) findViewById(R.id.imageButton14); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_FFWD"); } }); button = (ImageButton) findViewById(R.id.imageButton15); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_STITLE"); } }); button = (ImageButton) findViewById(R.id.imageButton16); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_PREV"); } }); button = (ImageButton) findViewById(R.id.imageButton17); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_NEXT"); } }); button = (ImageButton) findViewById(R.id.imageButton18); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { send("CMD_MUTE"); } }); }
From source file:com.geomoby.geodeals.notification.CustomNotification.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Hide Title Bar this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.geomoby_offer); Intent intent = getIntent();/*from ww w.j a va2s .c o m*/ ArrayList<GeoMessage> geoMessage = intent.getParcelableArrayListExtra("GeoMessage"); String title = geoMessage.get(0).title; String link = geoMessage.get(0).siteURL; String image_url = geoMessage.get(0).imageURL; String description = geoMessage.get(0).message; final double latitude = Double.valueOf(geoMessage.get(0).latitude); final double longitude = Double.valueOf(geoMessage.get(0).longitude); int notification_id = geoMessage.get(0).id; Button btnClose = (Button) findViewById(R.id.close); btnClose.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click CustomNotification.this.finish(); } }); Button btnNearest = (Button) findViewById(R.id.nearest); btnNearest.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { SharedPreferences settingsActivity = CustomNotification.this.getSharedPreferences("GeoMobyPrefs", MODE_PRIVATE); final double myLatitude = Double.valueOf(settingsActivity.getString(SETTING_LAT, "")); final double myLongitude = Double.valueOf(settingsActivity.getString(SETTING_LNG, "")); Context context = CustomNotification.this; Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?f=d&saddr=" + myLatitude + "," + myLongitude + "&daddr=" + latitude + "," + longitude + "&dirflg=w")); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); } }); Typeface font = Typeface.createFromAsset(getAssets(), "Bitter-Bold.otf"); TextView tvTitle = (TextView) findViewById(R.id.title); tvTitle.setTypeface(font); tvTitle.setText(title); TextView tvDesc = (TextView) findViewById(R.id.description); tvDesc.setTypeface(font); tvDesc.setText(description); TextView tvLink = (TextView) findViewById(R.id.link); tvLink.setTypeface(font); String desc = "<a href=\"" + link + "\">Demo Link</a>"; tvLink.setText(Html.fromHtml(desc)); tvLink.setMovementMethod(LinkMovementMethod.getInstance()); // Warning - Big bitmap images might create errors if (!image_url.equals("")) new DownloadImageTask((ImageView) findViewById(R.id.image)).execute(image_url); //Notify GeoMoby server that user has opened the notification //new ClickThroughAsyncTask(this).execute(notification_id); }
From source file:com.cblabs.wardrobe.activities.FeedActivity.java
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_feed); //Initialize vies and listeners initializeViews();//from w w w . ja v a 2s.c o m addClickListeners(); //Initialize preference manager mPrefsManager = new PrefsManager(this); data = mPrefsManager.getLoginData(); mAppSectionsPagerAdapter = new AppSectionsPagerAdapter(getSupportFragmentManager()); mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager.setOffscreenPageLimit(5); mViewPager.setAdapter(mAppSectionsPagerAdapter); PagerSlidingTabStrip tabs = (PagerSlidingTabStrip) findViewById(R.id.tabs); tabs.setViewPager(mViewPager); tabs.setBackgroundResource(android.R.color.white); tabs.setDividerColorResource(android.R.color.transparent); tabs.setIndicatorColorResource(R.color.transparent); tabs.setIndicatorHeight((int) getResources().getDimension(R.dimen.tab_ribbon_height)); tabs.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { @Override public void onPageSelected(int position) { } }); mViewPager.setCurrentItem(getIntent().getIntExtra(WardrobeConstants.INTENT_KEY_FEED_MAIN, 0)); }
From source file:com.ab.activity.AbActivity.java
/** * ??./*from w w w .ja v a2s . co m*/ * * @param savedInstanceState the saved instance state * @see android.support.v4.app.FragmentActivity#onCreate(android.os.Bundle) */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); mInflater = LayoutInflater.from(this); //? mAbTitleBar = new AbTitleBar(this); // ab_base = new RelativeLayout(this); ab_base.setBackgroundColor(Color.rgb(255, 255, 255)); // contentLayout = new RelativeLayout(this); contentLayout.setPadding(0, 0, 0, 0); //? mAbBottomBar = new AbBottomBar(this); //View ab_base.addView(mAbTitleBar, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); mAbTitleBar.setVisibility(View.GONE); RelativeLayout.LayoutParams layoutParamsBottomBar = new RelativeLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); layoutParamsBottomBar.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE); ab_base.addView(mAbBottomBar, layoutParamsBottomBar); RelativeLayout.LayoutParams layoutParamsContent = new RelativeLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); layoutParamsContent.addRule(RelativeLayout.BELOW, mAbTitleBar.getId()); layoutParamsContent.addRule(RelativeLayout.ABOVE, mAbBottomBar.getId()); ab_base.addView(contentLayout, layoutParamsContent); //Application? abApplication = getApplication(); //ContentView setContentView(ab_base, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); }
From source file:com.twentyfourseven.zira.DriverProfileInformation.java
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.new_driver_profile_information); intializeVariable();// w w w .java 2 s. c o m // new GetDetailParsing().execute(); String userid = mTripDetailsModel.getGetTrip_DriverId(); Log.e("tag", "userid:" + userid); // Building Parameters if (Util.isNetworkAvailable(DriverProfileInformation.this)) { ArrayList<NameValuePair> params1 = new ArrayList<NameValuePair>(); params1.add(new BasicNameValuePair("UserId", userid)); AsyncTaskForZira mWebPageTask = new AsyncTaskForZira(DriverProfileInformation.this, getProfile, params1, true, "Please wait.."); mWebPageTask.delegate = (AsyncResponseForZira) DriverProfileInformation.this; mWebPageTask.execute(); } else { Util.alertMessage(DriverProfileInformation.this, "Please check your internet connection"); } }
From source file:com.android.together.BaseActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); mApplication = (MyApplication) getApplication(); DisplayMetrics metric = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metric); mScreenWidth = metric.widthPixels;//from w w w . j ava2s . c o m mScreenHeight = metric.heightPixels; mDensity = metric.density; ViewInjectUtil.inject(this); manager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); mRequestQueue = Volley.newRequestQueue(this); //setUpView(); setListner(); init(); // NetBroadcastReceiver.mListeners.add(new MyNetEventHandler()); }
From source file:com.applivery.applvsdklib.ui.views.update.MustUpdateViewImpl.java
/** * Overrided in order to get fullScreen dialog * @param savedInstanceState//from ww w.j a va 2s . c o m * @return */ @Override public Dialog onCreateDialog(final Bundle savedInstanceState) { final RelativeLayout root = new RelativeLayout(getActivity()); root.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); final Dialog dialog = new Dialog(getActivity()); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(root); dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.YELLOW)); dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); return dialog; }
From source file:com.bangqu.eshow.activity.ESActivity.java
/** * ??.//w w w . java 2s . co m * * @param savedInstanceState the saved instance state * @see android.support.v4.app.FragmentActivity#onCreate(android.os.Bundle) */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); mInflater = LayoutInflater.from(this); //? mAbTitleBar = new ESTitleBar(this); // ab_base = new RelativeLayout(this); ab_base.setBackgroundColor(Color.rgb(255, 255, 255)); // contentLayout = new RelativeLayout(this); contentLayout.setPadding(0, 0, 0, 0); //? mAbBottomBar = new ESBottomBar(this); //View ab_base.addView(mAbTitleBar, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); mAbTitleBar.setVisibility(View.GONE); RelativeLayout.LayoutParams layoutParamsBottomBar = new RelativeLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); layoutParamsBottomBar.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE); ab_base.addView(mAbBottomBar, layoutParamsBottomBar); RelativeLayout.LayoutParams layoutParamsContent = new RelativeLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); layoutParamsContent.addRule(RelativeLayout.BELOW, mAbTitleBar.getId()); layoutParamsContent.addRule(RelativeLayout.ABOVE, mAbBottomBar.getId()); ab_base.addView(contentLayout, layoutParamsContent); //Application? abApplication = getApplication(); //ContentView setContentView(ab_base, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); ESActivityManager.getInstance().addActivity(this); }
From source file:com.grass.caishi.cc.activity.LoginActivity.java
@Override protected 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.activity_login); // progressShow = true; userDao = new UserDao(LoginActivity.this); usernameEditText = (EditText) findViewById(R.id.username); passwordEditText = (EditText) findViewById(R.id.password); // ????/* ww w . j a v a2s . c o m*/ // if (DemoApplication.getInstance().getUserName() != null && // DemoApplication.getInstance().getPassword() != null) { if (MyApplication.getInstance().getUser() != null && MyApplication.getInstance().getPassword() != null) { startActivity(new Intent(this, MainActivity.class)); finish(); } // ???? usernameEditText.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { passwordEditText.setText(null); } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { } }); // mAuthorization = Frontia.getAuthorization();// DeviceUuidFactory Deviceid = new DeviceUuidFactory(this); did = Deviceid.getDeviceUuid().toString(); findViewById(R.id.tv_goto_login).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { login(); } }); findViewById(R.id.tv_goto_register).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { register(); } }); }