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

Simple View with simple Label, hide the text sometimes

$
0
0

When I compile the app to run on mobileWeb, the labels are ok, but on android, in some places, it's hidden, in this exemple above, I've the same xml 6 times, only change the id of 'title' and 'value', the value label it's allways visible, the title doesn't, but the only thing that changes in this class is the right/left attribute.

file.xml

<View class="module_row">
    <Label class="module_title" id="mod_title_date"/>
    <Label class="module_value" id="mod_value_date"/> // also have without this line, but the 'title' still doesn't appear
</View>
file.tss
".module_row": {
    width:Ti.UI.FILL,
    height:"51dp"
},
 
".module_title": {
    left:"10dp",
    color:"#585858",
    width:Ti.UI.SIZE,
    font: {
        fontSize:"16dp"
    }
},
 
".module_value": {
    right:"10dp",
    color:"#585858",
    width:Ti.UI.SIZE,
    font: {
        fontSize:"16dp"
    }
},
file.js
$.mod_title_date.setText(L('date'));
$.mod_value_date.setText("test");

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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