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.amazon.appstream.fireclient.ErrorDialogFragment.java

/**
 * Standard initialization. Sets up the dialog to quit the
 * activity on clicking its only button.
 *//*from  w  w w.  j a  v  a2 s.  c  o  m*/
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {

    final Dialog dialog = new Dialog(getActivity());

    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    dialog.setCanceledOnTouchOutside(false);
    dialog.setCancelable(false);
    dialog.getWindow().setBackgroundDrawable(ConnectDialogFragment.mEmpty);
    dialog.setContentView(R.layout.fatal_error);

    final Button signin = (Button) dialog.findViewById(R.id.signin);
    final TextView message = (TextView) dialog.findViewById(R.id.message);

    message.setText(mMessage);

    signin.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            dialog.dismiss();

            ((FireClientActivity) getActivity()).openConnectDialog(null);
        }
    });

    return dialog;
}

From source file:com.amazon.appstream.sampleclient.ErrorDialogFragment.java

/**
 * Standard initialization. Sets up the dialog to quit the
 * activity on clicking its only button.
 *//*from   w w  w.j a  v a 2s . c o  m*/
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {

    final Dialog dialog = new Dialog(getActivity());

    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    dialog.setCanceledOnTouchOutside(false);
    dialog.setCancelable(false);
    dialog.getWindow().setBackgroundDrawable(ConnectDialogFragment.mEmpty);
    dialog.setContentView(R.layout.fatal_error);

    final Button signin = (Button) dialog.findViewById(R.id.signin);
    final TextView message = (TextView) dialog.findViewById(R.id.message);

    message.setText(mMessage);

    signin.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            dialog.dismiss();

            ((SampleClientActivity) getActivity()).openConnectDialog(null);
        }
    });

    return dialog;
}

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

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

    mBeyondarFragment = (BeyondarFragmentSupport) getSupportFragmentManager()
            .findFragmentById(R.id.beyondarFragment);

    mTextviewFilterValue = (TextView) findViewById(R.id.textFilterValue);

    mSeekBarFilter = (SeekBar) findViewById(R.id.seekBarFilter);
    mSeekBarFilter.setOnSeekBarChangeListener(this);
    mSeekBarFilter.setMax(600);
    mSeekBarFilter.setProgress(500);

    // 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);

}

From source file:com.example.sortgame3.MainActivity.java

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

    mainAct = this;
    start = false;/* w w w  .j  a v  a  2s  .  c  o  m*/
    SoundPlayer.initSounds(this);
    SoundPlayer.playSoundMedia(this, R.raw.cephalopod);
    showWelcome();

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
            WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

    Point screenSize = new Point();
    getWindowManager().getDefaultDisplay().getSize(screenSize);
    screenWidth = screenSize.x;
    screenHeight = screenSize.y;
    game = new Game(gameWidth, gameHeight, this);

    coordTrans = new CoordinateTranslator(screenWidth, screenHeight, gameWidth, gameHeight, new Point(0, 0));
    mGLView = new Vizualization(this, game);
    setContentView(mGLView);

    detector = new GestureDetectorCompat(this, new SimpleListener());

}

From source file:com.androzic.plugin.tracker.PreferencesHelpDialog.java

@NonNull
@Override/*from   w w  w  . j  ava  2  s.c  om*/
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog dialog = super.onCreateDialog(savedInstanceState);
    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    return dialog;
}

From source file:bijznas.notify.crouton.ShowInfo.java

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {

    dialog = new Dialog(getActivity());
    dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
    dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    dialog.setContentView(R.layout.show_info);
    dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
    context = getActivity();/*w w w . j ava2s .  c  o  m*/
    manager = getActivity().getSupportFragmentManager();
    lv = (ListView) dialog.findViewById(R.id.lVDetails);
    topdf = (TextView) dialog.findViewById(R.id.topdf);
    photo = (ImageView) dialog.findViewById(R.id.imageView3);
    MyCustomAdapter adapterCustom = new MyCustomAdapter(context, caption, information);
    lv.setAdapter(adapterCustom);
    ok = (Button) dialog.findViewById(R.id.btnOkSUP);

    ok.setOnClickListener(this);
    topdf.setText(info + " Found");

    // read();
    // Message.message(getActivity(), alContacts.get(0));
    dialog.show();

    return dialog;
}

From source file:es.hol.ecotiffins.view.LoginActivity.java

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

    generalUtilities = new GeneralUtilities(this);
    webServiceHandler = new WebServiceHandler(LoginActivity.this);
    webServiceHandler.webServiceListener = this;
    sharedPreferencesUtilities = new SharedPreferencesUtilities(this);

    //If user has been logged in already then this method will redirect to
    //MainActivity otherwise program flow will be as usual
    logInIfUserExist();/*from   w  w w.  j a va  2s  . c  om*/

    viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper);
    editEmail = (AppCompatEditText) findViewById(R.id.editEmail);
    editPassword = (AppCompatEditText) findViewById(R.id.editPassword);
    textRegister = (TextView) findViewById(R.id.txtRegister);

    setOnClickListeners();
}

From source file:cm.aptoide.ptdev.ScreenshotsViewer.java

@Override
protected void onCreate(Bundle arg0) {
    Aptoide.getThemePicker().setAptoideTheme(this);
    super.onCreate(arg0);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);

    setContentView(R.layout.page_screenshots_viewer);

    if (arg0 == null) {
        currentItem = getIntent().getIntExtra("position", 0);
    } else {/*  w w w .  ja  va 2s.c om*/
        currentItem = arg0.getInt("position", 0);
    }

    getIntent().getIntExtra("position", 0);
    //      getSupportActionBar().hide();
    context = this;
    final ViewPager screenshots = (ViewPager) findViewById(R.id.screenShotsPager);
    //      final CirclePageIndicator pi = (CirclePageIndicator) findViewById(R.id.indicator);
    //      pi.setCentered(true);
    //      pi.setSnap(true);
    //      pi.setRadius(7.5f);
    //      TypedValue a = new TypedValue();
    //      getTheme().resolveAttribute(R.attr.custom_color, a, true);
    //      pi.setFillColor(a.data);
    ArrayList<String> uri = getIntent().getStringArrayListExtra("url");
    hashCode = getIntent().getStringExtra("hashCode");
    if (uri != null) {
        images = uri.toArray(images);
    }
    if (images != null && images.length > 0) {
        screenshots.setAdapter(new ViewPagerAdapterScreenshots(context, uri, hashCode, true));
        screenshots.setCurrentItem(currentItem);
    }

}

From source file:com.perm.DoomPlay.AddTrackToAlbumDialog.java

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    trackId = getArguments().getLong(keyDialogAlbum);
    getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);

    View view = inflater.inflate(R.layout.list_vk, container, false);
    linearLoading = (LinearLayout) view.findViewById(R.id.linearLoading);
    listView = (ListView) view.findViewById(R.id.listVk);
    listView.setOnItemClickListener(onItemClickHandler);

    return view;//from   w  w w  . j a  va 2s.  c  o m
}

From source file:be.ac.ucl.lfsab1509.bouboule.ChoosingActivity.java

protected void onCreate(final Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.activity_main);

    /** Getting a reference to the ViewPager defined the layout file */
    ViewPager pager = (ViewPager) findViewById(R.id.pager);

    /** Getting fragment manager */
    FragmentManager fm = getSupportFragmentManager();

    /** Instantiating FragmentPagerAdapter */
    MyLevelPagerAdapter pagerAdapter = new MyLevelPagerAdapter(fm);

    /** Setting the pagerAdapter to the pager object */
    pager.setAdapter(pagerAdapter);//from   w w w  . ja v a2  s  .  co  m

    /** Select the current level */
    int iWorld = (GlobalSettings.PROFILE.getBestLevel() - 1) / 4; // split in 4, we start with 0
    pager.setCurrentItem(iWorld);

}