Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Issue with scrollview contentHeight

$
0
0

I have a view with height = Ti.UI.SIZE inside of a scrollview. In the scrollview i set the contentHeight in Ti.UI.SIZE. and the scrollview doesn't scroll at all in Android, but if i set contentHeight of the scrollview or height of the view with a numeric value the scrollview scroll.

is there any solution for this problem?

This is an example of the code.

<Alloy>
    <View class="main-view">
        <ScrollView class="scroll-view">
            <View id="child-view">
                //Some other views and UI elements with higher height as the screen size
            </View>
        </ScrollView>
    </View>
</Alloy>
and the tss
".scroll-view": {
    showVerticalScrollIndicator: 'true',
        height: Ti.UI.FILL,
        width: Ti.UI.FILL,
        contentWidth: Ti.UI.FILL,
        contentHeight: Ti.UI.SIZE
},
 
".child-view": {
    height: Ti.Ui.SIZE
}

Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>