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

Scroll view height in android

$
0
0

I have scroll view with multiple labels and text boxes. My last element are not showing because of scroll view height.

XML

<ScrollView showVerticalScrollIndicator="true" contentHeight="auto" scrollType="vertical">
        <View id="loginView" layout="vertical" >
 
                <Label id="inputLabel"text="First Name"/>
                    <TextField id="inputFirstName" />
 
            <Label id="inputLabel" text="Last Name" />
                    <TextField id="inputLastName" />
 
            <Label id="inputLabel" text="Email" />
                    <TextField id="inputEmail" />
 
            <Label id="inputLabel" text="Re-enter Email"/>
            <TextField id="inputEmail2" />
 
            <Label id="inputLabel" text="User Name"/>
                    <TextField id="inputUsername" />
 
            <Label id="inputLabel" text="Password"/>
                     <TextField id="inputPassword"/>
 
                <Label id="inputLabel" text="Phone Number"/>
                    <TextField id="inputPhone"/>
 
                <Label id="inputLabel" text="Address"/>
                    <TextField id="inputAddress"   />
 
                <Label id="inputLabel" text="Nationality" />
                    <TextField id="txtNationality" onFocus="loadPickerNationality"></TextField>
 
                <Label id="inputLabel" text="Country"/>
                <TextField id="txtCountry" onFocus="loadPickerCountry" ></TextField>
 
            <Label id="inputLabel" text="Security Question 1"/>
                    <TextField id="txtQuestion1" onFocus="loadQuestionsPool1" ></TextField>
 
            <Label id="inputLabel"  text="Answer 1"/>
                    <TextField id="txtAns1" ></TextField>
 
            <Label id="inputLabel" text="Security Question 2"/>
            <TextField id="txtQuestion2" onFocus="loadQuestionsPool2" ></TextField>
 
            <Label id="inputLabel" text="Answer 2"/>
                    <TextField id="txtAns2" ></TextField>
 
            <Button id="buttonRegister" onClick="actionRegister" /> 
                <ActivityIndicator id="activityIndicator" />
       </View> 
</ScrollView>
TSS
"#inputLabel[platform=android]": {
   color:"#ffffff",
   top:"2%",
   font:{
    fontSize: '20dp',
    fontFamily:'HelveticaNeue-Bold',
    }
}
 
"#inputFirstName[platform=android]": {
    top: "2%",
    width: "70%",
    left : "15%"
}
all tss of text fields are same. Please help me what am I missing. I am using percentages on android. In IOS it is working perfectly.

Viewing all articles
Browse latest Browse all 7655

Trending Articles



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