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

Change height of view to 1000dp

$
0
0

Hi, I just want change height of view to 1000dp, because when I do this, it becomes invisible.

Thank, for your time ^.^

Application type: mobile Titanium SDK: 3.1.0 GA Platform & version: Android 4.1.2 Device: Sony ST26i Host Operating System: OSX 10.7.5 Titanium Studio: 3.1.3.201309132423

index.js

$.instruShadowfirst.setTop("0dp");
$.instruShadowfirst.setHeight("1000dp");
$.instruShadowfirst.setOpacity(1);
$.instruShadowfirst.setVisible(true);
 
var btnalert = Ti.UI.createButton({
    title: 'Help',
    width: "200dp",
    height: "100dp"
});
btnalert.addEventListener("click",function(){alert("what ?");});
$.instruShadowfirst.add(btnalert);
 
$.BtnTouch.addEventListener("click",function(){
    $.instruShadowfirst.setHeight("606dp");
    $.instruShadowfirst.add(Ti.UI.createTextField({
        width: "200dp",
        height: "100dp"
    }));
    $.instruShadowfirst.setBackgroundColor("red");
});
 
$.index.open();
index.tss
".container": {
    backgroundColor:"white",
    layout: "vertical"
},
"#conteudo_normal": {
    showPagingControl:false,
    disableBounce:true,
    layout: "vertical",http://www.appcelerator.com/
    height:Ti.UI.FILL
},".instruShadow":{
    layout: "vertical",
    right: "10dp",
    left: "10dp",
    top:"80dp",
    borderRadius:10,
    backgroundColor:"blue"
}
 
$.index.open();
index.xml
<Alloy>
    <Window class="container">
        <ScrollView class="conteudo_normal" id="conteudo_normal">
            <TextArea id="textoConsole" ></TextArea>
            <Button id="BtnTouch">Touch</Button>
            <View id="instruShadowfirst" class="instruShadow">
                <!-- some thing-->
            </View> 
            <Label>___________________</Label>
        </ScrollView>
    </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>