Skip to content

treeview inside horizontalScrollView not working !! #5

@vipulvaid

Description

@vipulvaid

Hi,

Thanks for your great work on tree view.

I tried putting treeview inside HorizontalScrollView as I want the complete listview to scroll horizontally if the row item size is greater than parent view size. But its not scrolling. Somehow width of treeview is reduced. I have no idea why.

I tried putting simple listview inside horizontalScrollView and it worked out of box with desired result!

xml for reference :

<HorizontalScrollView   
    android:layout_height="fill_parent" 
    android:layout_width="fill_parent">

     <com.efi.selfserve.treeview.TreeViewList

       android:background="#333333"
       android:layout_marginBottom="50dp"
       android:layout_height="fill_parent" 
       android:layout_width="match_parent"
       android:id="@+id/mainTreeView" 
       treeView:indicator_gravity="right|center_vertical"
    android:listSelector="@drawable/list_selector_background"          
   />

    </HorizontalScrollView>

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions