android - 在Titanium中,如何在指定位置添加 View

标签 android titanium

在Titanium中,如何在指定位置添加 View ?如android adk addView(view, index)中的方法;

最佳答案

var r_view = Ti.UI.createView({
     top:2,
         height:100,
     width:Ti.Platform.displayCaps.platformWidth,
     borderColor:'#225A94',
     backgroundColor:'#EEF5FB',
     borderRadius:8,
     borderWidth:1
});

//Add in window name
win.add(r_view);

关于android - 在Titanium中,如何在指定位置添加 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8556857/

相关文章:

android - ImageFactory.imageAsResized 返回 null

ios - 钛开发者 : iPhone SDK "loading" never finishes on mobile SDK 1. 6.2 和 1.7.0 RC1

android - 使用 Firebase 从网页(管理面板)向 Android 手机发送推送通知

android - ViewPager 隐藏的 fragment

android - 在 Google Analytics 中跟踪 Admob 事件

java - 旋转开关 View 的剪辑

android - 设计一个仅限安卓平板电脑的应用程序

iphone - 从我的 Titanium 项目中的 XML 文件获取值

javascript - 在 Titanium Appcelerator 中创建元素并使用 Loop 添加事件监听器

ios - 钛 - "The certificate for this server is invalid. You might be connecting to a server that is pretending to be DOMAIN.COM”