raymix.net
域名年龄: 12年2个月19天HTTP/1.1 200 OK 访问时间:2014年05月30日 18:39:17 服务器:Apache/2.2.15 (Red Hat) X-Pingback: http://www.raymix.net/xmlrpc.php 类型:text/html; charset=UTF-8 动作:Accept-Encoding Content-Encoding: gzip Keep-Alive: timeout=15, max=100 连接:Keep-Alive Transfer-Encoding: chunked 网站编码:UTF-8
RayMixYou cannot improve your past, but you can improve your future. Once time is wasted, life is wasted.MenuSkip to contentIndexBlogWorksAboutTabGroup for AlloyPosted on 2014/03/302014/03/30 by RayOverviewThis is a widget for the Appcelerator Alloy MVC framework which provides an iOS + Android TabGroup with enhanced customisation options.The idea was to come up with something that could “just work” on both iOS and Android, and sit in the same position at the bottom of the screen for both, and wouldn’t require too much integration changes.NOTE: This is very much “work in progress” and I’m tweaking as I use this in current projectsLatestMerged some pull requests to squash some bugs and add focus eventsAvoid using navBarHidden in Android Windows or ANY settings that may cause your tab windows to go heavyweight as you’ll get unexpected behavoir. If you need to hide the title bar in Android, use the platform theme file to do that.In 3.2 of Titanium, all Windows are Heavyweight on Android – a workaround is to put<property name="ti.android.useLegacyWindow" type="bool">true</property>in the TiApp.xmlFeaturesEasy to add to existing XMLWorks with existing Window definitionsEasy to customiseWorks on Android, iOSWishlistreplace iOS titlebar with custom version with support for left, right buttonshide / show tabs dynamically, refreshcustom, oversized tab buttons e.g. middle buttonclick and hold – vertical (tweetbot style) sub tabsQuick StartDownload the latest version of the widget as a ZIP file.Unzip the folder to your project under app/widgets/com.jasonkneen.tabgroup.Add the widget as a dependency to your app/config.json file:"dependencies": {"com.jasonkneen.tabgroup":"1.0"}Add the widget as the last item in the view container you want to apply dynamic styles too, so your main window or view, just above the closing Window or View tags.<Alloy><Window><Widget id="tabGroup" src="com.jasonkneen.tabgroup"/></Window><Window title="Tab 1" id="win1"><Label top="0">I am Window 1</Label></Window><Window title="Tab 2" id="win2" ><Label top="0">I am Window 2</Label></Window><Window title="Tab 3" id="win3" ><Label top="0">I am Window 3</Label></Window><Window title="Tab 4" id="win4" ><Label top="0">I am Window 4</Label></Window></Alloy>Configure the widget from the controller .js file (current properties supported shown here)$.tabGroup.configure({backgroundColor : "#000",//backgroundImage : "PATH",tabsAtBottom:true, //这个参数决定tabgroup是否在bottomtabs : {backgroundSelectedColor : "#666",color : "#DDD",selectedColor : "#fff",font : {fontWeight : "normal"},selectedFont : {fontWeight : "bold"} }});$.tabGroup.addTab({caption : "Downloads",icon : "/images/icons/grey/516-archive-box.png",selectedIcon : "/images/icons/white/516-archive-box.png",win : $.win1,// view : custom Ti.UI.View
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-07-04 09:37, Process in 0.0058 second.