Example usage for android.view Window FEATURE_NO_TITLE

List of usage examples for android.view Window FEATURE_NO_TITLE

Introduction

In this page you can find the example usage for android.view Window FEATURE_NO_TITLE.

Prototype

int FEATURE_NO_TITLE

To view the source code for android.view Window FEATURE_NO_TITLE.

Click Source Link

Document

Flag for the "no title" feature, turning off the title at the top of the screen.

Usage

From source file:com.cyou.cma.clockscreen.activity.QuickContactsActivity.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_quick_contacts);
    Util.putPreferenceBoolean(this, Util.HASHASHAS, true);
}

From source file:com.example.topsongsapp.MainFragmentActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);

    setContentView(R.layout.activity_main_fragment);

    if (android.os.Build.VERSION.SDK_INT > 9) {
        StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
        StrictMode.setThreadPolicy(policy);
    }//from w ww.  j  a  v a2s .c  o m

    // Check to see if we have retained the worker fragment.
    TransactionFragment mTransactionFragment = (TransactionFragment) getSupportFragmentManager()
            .findFragmentByTag("trans");

    // If not retained (or first time running), we need to create it.
    if (mTransactionFragment == null) {
        mTransactionFragment = new TransactionFragment();
        // Tell it who it is working with.
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(mTransactionFragment, "trans").commit();
    }

    mTabHost = (SongsFragmentTabHost) findViewById(android.R.id.tabhost);
    mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
    mTabHost.addTab(mTabHost.newTabSpec(TAB_A).setIndicator(TAB_A,
            getResources().getDrawable(R.drawable.ic_action_locate)), TopSongsList.class);
    mTabHost.addTab(mTabHost.newTabSpec(TAB_B).setIndicator(TAB_B,
            getResources().getDrawable(R.drawable.ic_action_star)), FavouritesFragment.class);

    if (savedInstanceState != null) {
        mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab"));
    }

}

From source file:vn.edu.ptit.android.activity.AddNewCar.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.add_new_car);

    etNameCar = (EditText) findViewById(R.id.etNameCar);
    etTypeCar = (EditText) findViewById(R.id.etTypecar);
    etSoghe = (EditText) findViewById(R.id.etNumberofseat);
    etBienso = (EditText) findViewById(R.id.etBienso);
    etDes = (EditText) findViewById(R.id.etDescription);

    btAddNewCar = (ImageView) findViewById(R.id.btAddNewCar);
    btAddNewCar.setOnClickListener(new View.OnClickListener() {

        @Override//www.  ja v a2s  .  co  m
        public void onClick(View v) {
            // TODO Auto-generated method stub
            AddNewCarMethod method = new AddNewCarMethod();
            method.execute(new String[] { url });
        }
    });

}

From source file:net.alchemiestick.katana.winehqappdb.app_dialog.java

public app_dialog(Context cx) {
    super(cx);//from w ww.  j  av  a2 s .c om
    this.cx = cx;
    this.requestWindowFeature(Window.FEATURE_NO_TITLE);

    this.adapter = new VersionAdapter(cx);
    this.clear();
}

From source file:com.chat.activity.BaseActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setOnCreate();/*w ww. ja  v  a2 s.co  m*/
}

From source file:com.beyondar.example.CameraWithGoogleMapsActivity.java

/** Called when the activity is first created. */
@Override//from   w  ww. ja  v  a  2 s .  com
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);
}

From source file:com.carapp.activity.CheckDay.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
    setContentView(R.layout.mmmm);//from ww  w.j a  v a2  s  .  c om
    context = this;
    tv = (TextView) findViewById(R.id.textView1);
    tv.setText(messagecheckday);

    new Checkdateasync().execute("");
}

From source file:click.kobaken.rxirohaandroid_sample.view.fragment.SplashFragment.java

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    Dialog dialog = getDialog();/*w  w w  . j a va2s  . com*/
    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    dialog.setContentView(R.layout.fragment_splash);
    dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
    dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
}

From source file:com.adsoft.girls_tatoos_gallery.MainActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_main);

    /*  if ((Myapplication.assetList2 != null&&Myapplication.assetList2.size()!=0) &&(Myapplication.btmpList != null&&Myapplication.btmpList.size()!=0)) {
    Intent intent = new Intent(MainActivity.this, HorizontalLayoutFragment.class);
    startActivity(intent);//www . jav  a2  s  .c om
    finish();
            
      } else {
    new Task().execute();
      }*/

}

From source file:com.textuality.gpstats.GPlusSnowflake.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.main);/* w  w w  .  ja v  a 2  s  .c o  m*/

    final ListView list = (ListView) findViewById(R.id.list);
    final PostArrayAdapter adapter = new PostArrayAdapter(this);

    mPopular = new MostPopular(adapter, (TextView) findViewById(R.id.output));
    list.setAdapter(adapter);
    list.setOnItemClickListener(adapter);

    Intent intent = AccountPicker.newChooseAccountIntent(null, null, new String[] { "com.google" }, false, null,
            null, null, null);
    startActivityForResult(intent, GPS_REQUEST_CODE);
}