android - How to set offset of ListView's scrollbar from the right -


please read before answering may not question think is

here listview

<listview         android:id="@+id/ist"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:divider="@color/ca”         android:dividerheight="@dimen/h1”         android:gravity="center" /> 

everything working fine, except scrollbar apparently has paddingright or layout_marginright didn't set. scrollbar -- not row items populate adapter. seeing scrollbar showing 10dp right edge while content of rows fill screen's width. want scrollbar show entirely right of contents not visual superposition along z-axis.

try playing scrollbarstyle. i've found android:scrollbarstyle="outsideoverlay" works/looks best.

controls scrollbar style , position.

http://developer.android.com/reference/android/view/view.html#setscrollbarstyle(int)

public void setscrollbarstyle (int style)

added in api level 1 specify style of scrollbars. scrollbars can overlaid or inset. when inset, add padding of view. , scrollbars can drawn inside padding area or on edge of view. example, if view has background drawable , want draw scrollbars inside padding specified drawable, can use scrollbars_inside_overlay or scrollbars_inside_inset. if want them appear @ edge of view, ignoring padding, can use scrollbars_outside_overlay or scrollbars_outside_inset.

related xml attributes android:scrollbarstyle parameters style style of scrollbars. should 1 of scrollbars_inside_overlay, scrollbars_inside_inset, scrollbars_outside_overlay or scrollbars_outside_inset. see scrollbars_inside_overlay scrollbars_inside_inset scrollbars_outside_overlay scrollbars_outside_inset


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -