Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Rows inside TableViewSection not displayed in Android

$
0
0

I'm using Alloy, Titanium SDK version 3.2.2.GA. I have a TableView with 3 TableViewSections, and each of them has some static rows. In iOS the following markup works ok, but in android only the headers of the TableViewSections are displayed, not the rows... What is the problem?

<Alloy>
    <Window title="Terminal Information" backButtonTitle="Back" class="container" onAndroidbackbutton="closeMe" layout="vertical" >
        <View>
            <TableView id="detailsTable">
                <TableViewSection id="infoSection" headerTitle="Basic Information" >
                    <TableViewRow>
                        <Label left="10" width="100">Terminal ID:</Label>
                        <TextField id="tid" editable="false" left="30" width="150" />       
                    </TableViewRow>
                    <TableViewRow>
                        <Label left="10" width="100">Name:</Label>
                        <TextField id="name" editable="false" left="30" width="150"/>
                    </TableViewRow>
                    <TableViewRow>
                        <Label left="10" width="100">Description:</Label>       
                        <TextField id="description" editable="false" left="30" width="150" />
                    </TableViewRow>
                </TableViewSection>
                <TableViewSection id="detailsSection" headerTitle="Details">
                    <TableViewRow>
                        <Label left="10" width="100">Imei:</Label>
                        <TextField id="imei" editable="false" left="30" width="150" />      
                    </TableViewRow>
                    <TableViewRow>
                        <Label left="10" width="100">Imsi:</Label>
                        <TextField id="imsi" editable="false" left="30" width="150" />      
                    </TableViewRow>
                    <TableViewRow>
                        <Label left="10" width="100">Latitude:</Label>
                        <TextField id="latitude" editable="false" left="30" width="150" />      
                    </TableViewRow>
                    <TableViewRow>
                        <Label left="10" width="100">Longitude:</Label>
                        <TextField id="longitude" editable="false" left="30" width="150" />     
                    </TableViewRow>
                    <TableViewRow>
                </TableViewSection>
                <TableViewSection id="buttonSection" >
                    <TableViewRow id="buttonRow" backgroundColor="transparent" borderWidth="0" >
                        <Button id="refreshButton" onClick="refreshClicked" height="40" width="Ti.UI.FILL" >Refresh</Button>
                    </TableViewRow>
                </TableViewSection>
            </TableView>
        </View> 
    </Window>
</Alloy>

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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