Java Code Examples for android.view.View.setVerticalScrollBarEnabled()

The following are Jave code examples for showing how to use setVerticalScrollBarEnabled() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: LuaViewPlayground   File:   Source Code and License Vote up 5 votes
 * 设置纵向滚动条
 * @param enabled
 * @return
public UDView setVerticalScrollBarEnabled(boolean enabled) {
    final View view = getView();
    if (view != null) {
    return this;
Example 2
Project: javaide   File:   Source Code and License Vote up 5 votes
private void startPartialSelectMode() {

        boolean hideHelp = PreferenceHelper.getHidePartialSelectHelpPreference(this);

        if (hideHelp) {
            partialSelectMode = true;
            Toast.makeText(this, R.string.toast_started_select_partial, Toast.LENGTH_SHORT).show();
        } else {

            LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            @SuppressLint("InflateParams") View helpView = inflater.inflate(R.layout.dialog_partial_save_help, null);
            // don't show the scroll bar
            final CheckBox checkBox = (CheckBox) helpView.findViewById(;

            new MaterialDialog.Builder(this)
                    .customView(helpView, true)
                    .onPositive(new MaterialDialog.SingleButtonCallback() {
                        public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                            partialSelectMode = true;
                            Toast.makeText(LogcatActivity.this, R.string.toast_started_select_partial, Toast.LENGTH_SHORT).show();

                            if (checkBox.isChecked()) {
                                // hide this help dialog in the future
                                PreferenceHelper.setHidePartialSelectHelpPreference(LogcatActivity.this, true);