How to make ScrollView scrolling always visible

4

I have a horizontalScrollView and I was just wanting to let the scroll bar always show.

           <HorizontalScrollView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0.5"
            android:id="@+id/horizontalScrollView2" >

            <LinearLayout
                android:orientation="horizontal"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:id="@+id/categoria"
                android:layout_weight="0.5"
                >



            </LinearLayout>
        </HorizontalScrollView>

I have this HorizontalScrollView ai put images inside it

imageButton.setImageBitmap(bMap);
imageButton.setId(Integer.parseInt(categorias.get(i).id));
layoutC.addView(imageButton);

It works normally when it exceeds the limit of the screen and drag it to see the other images, but you want it to show the scroll bar, which is in the browser

    
asked by anonymous 22.12.2014 / 13:26

1 answer

7

In the XML file, add the code android:fadeScrollbars="false"

    
22.12.2014 / 13:37