Nativescript Angular:如何将其他页面绑定到TabView?

时间:2017-01-09 13:58:47

标签: angular typescript nativescript angular2-nativescript

我想设计TabViewhttps://www.nativescript.org/blog/guest-post-getting-cozy-with-nativescript's-tabview中的Component一样,只需嵌入其他“页面”(naivescript-angular),但我使用 // add an annotation with a view SKAnnotation annotationFromView = new SKAnnotation(11); annotationFromView.setLocation(new SKCoordinate(-122.423573, 37.761349)); annotationFromView.setMininumZoomLevel(5); SKAnnotationView annotationView = new SKAnnotationView(); customView =(RelativeLayout) ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate( R.layout.layout_custom_view, null, false); //If width and height of the view are not power of 2 //the actual size of the image will be the next power of 2 of //max(width,height). annotationView.setView(customView); annotationFromView.setAnnotationView(annotationView); mapView.addAnnotation(annotationFromView, SKAnimationSettings.ANIMATION_NONE); 所以我找不到任何好的教程。这样做有什么建议吗?

1 个答案:

答案 0 :(得分:0)

我建议您从this link开始研究示例应用,并探索标签视图示例here