No display of slide controls in Android

Source: Internet
Author: User

1. Background Introduction

When using controls such as ScrollView and ListView, the default is to have a sliding control on the right hand side. When we swipe with our fingers, it shows that the control is less comfortable and affects the user experience. Here's how to show you how to not display a slide control.


2, ScrollView not show

Directly on the code, as follows:

<scrollview        android:layout_width= "fill_parent"        android:layout_height= "Fill_parent"        android: layout_below= "@id/the_head_view"        android:focusable= "true"        android:focusableintouchmode= "true"        Android:scrollbars= "None" ></ScrollView>

3. ListView does not display

<listview        android:scrollbars= "None"        android:layout_width= "fill_parent"        android:layout_height= " Wrap_content ">    </ListView>

4. Summary

Actually, you just need a code, that's all.

Android:scrollbars= "None"

This is not to show bar this control. However, it is important to note that ScrollView may sometimes need to be used in conjunction with this feature alone, and the slide control cannot be displayed.

No display of slide controls in Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.