java - How do I add text to a ScrollView at run time? -
i know how add text scroll view @ run time. working in android studio. have file reading , have put lines of text stringbuilder buffer object. how display text in scrollview? need use .addview? thanks
scrollview single-element container, meaning should have 1 element in it.
a scrollview framelayout, meaning should place 1 child in containing entire contents scroll; child may layout manager complex hierarchy of objects. child used linearlayout in vertical orientation, presenting vertical array of top-level items user can scroll through.
so should add linearlayout in scrollview , add views instead.
Comments
Post a Comment