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:Main.java

public static void setFullScreen(Activity activity) {
    activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
    Window window = activity.getWindow();
    WindowManager.LayoutParams params = window.getAttributes();
    params.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
    window.setAttributes(params);//  w  w  w .j a  v a2  s  .  c o  m
    window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}

From source file:com.memetro.android.alerts.CommentDialog.java

public static void showDialog(final Context context, String comment, String creator, boolean isMine,
        final Long id) {

    final Dialog mDialog = new Dialog(context);
    mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    mDialog.setContentView(R.layout.comment_dialog);
    mDialog.setCancelable(true);/* w ww . j a va 2 s  .c o  m*/

    TextView titleText = (TextView) mDialog.findViewById(R.id.title);
    TextView messageText = (TextView) mDialog.findViewById(R.id.message);
    Button closeButton = (Button) mDialog.findViewById(R.id.close);
    Button deleteButton = (Button) mDialog.findViewById(R.id.delete);

    titleText.setText(titleText.getText().toString() + " " + creator);
    messageText.setMovementMethod(ScrollingMovementMethod.getInstance());
    messageText.setText(comment);

    if (isMine) {
        deleteButton.setVisibility(View.VISIBLE);
        deleteButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                new DeleteInBg(context, String.valueOf(id)).execute();
                mDialog.dismiss();
                // TODO Refrescar las alertas
            }
        });
    }

    closeButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            mDialog.dismiss();
        }
    });

    mDialog.show();

}

From source file:by.android.dailystatus.dialog.LicenseDialog.java

public Dialog onCreateDialog(Bundle savedInstanceState) {
    final FragmentActivity activity = getActivity();
    final Dialog dialog = new Dialog(activity);
    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    dialog.setContentView(R.layout.dialog_license);
    TextView description = (TextView) dialog.findViewById(R.id.txt_dialog_version_description);
    if (text != null && !TextUtils.isEmpty(text)) {
        description.setText(text);/*w  w  w. j  a va  2 s  . co m*/
    }

    dialog.findViewById(R.id.but_dialog_version_ok).setOnClickListener(new OnClickListener() {

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

        }
    });

    return dialog;
}

From source file:com.example.stefan.movies.Fragments.Others.OpenSourceLicenses.java

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {

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

    dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
    dialog.setContentView(R.layout.fragment_opensource_licenses);

    searchTitleIcon = (ImageView) dialog.findViewById(R.id.searchTitleProfile);
    searchTitleIcon.setImageResource(R.drawable.ic_security_black_24dp);
    searchTitleIcon.setColorFilter(ContextCompat.getColor(getContext(), R.color.redOrange));

    searchTitleName = (TextView) dialog.findViewById(R.id.searchTitleName);
    searchTitleName.setText(R.string.licenses_header_title);

    // Closes the Dialog
    Button dialogBtnCancel = (Button) dialog.findViewById(R.id.license_BtnCancel);
    dialogBtnCancel.setOnClickListener(new View.OnClickListener() {
        @Override/*from   w w  w.j  a v a  2 s.  c  o  m*/
        public void onClick(View v) {
            dialog.dismiss();
        }
    });

    dialog.show();
    return dialog;
}

From source file:com.abhi.barcode.fragment.MainActivity.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);//LE SACA EL TITULO A LA APP
    setContentView(R.layout.qr_fragment);

}

From source file:com.fortysevendeg.android.adoptaunaplaya.activities.BaseActivity.java

/**
 * @see Activity#onCreate(android.os.Bundle)
 *///from w  ww .ja  v  a 2s .  co m
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
}

From source file:com.btmura.android.reddit.app.MarkdownTableActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setTheme(ThemePrefs.getDialogWhenLargeTheme(this));
    setContentView(R.layout.markdown_table);
    setFragments(savedInstanceState);/*from w w w .j  a v  a  2 s  .c  o m*/
}

From source file:com.abhi.barcode.fragment.QrCode.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);//LE SACA EL TITULO A LA APP
    setContentView(R.layout.scanner_layout);

}

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

/** Called when the activity is first created. */
@Override//  w w  w. j av  a2s.  c  o  m
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

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

From source file:de.vakuumverpackt.foul.About.java

public About(final Context context) {
    super(context);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setCanceledOnTouchOutside(true);
}