package org.cocoa4android.tabsample;
import org.cocoa4android.ns.NSTextAlignment;
import org.cocoa4android.ui.UIImage;
import org.cocoa4android.ui.UILabel;
import org.cocoa4android.ui.UITabBarItem;
import org.cocoa4android.ui.UIViewController;
public class SecondViewController extends UIViewController {
public SecondViewController() {
this.setTabBarItem(new UITabBarItem("Second",UIImage.imageNamed(R.drawable.second),0));
}
protected void viewDidLoad() {
super.viewDidLoad();
UILabel secondLabel = new UILabel();
secondLabel.setText("SecondView");
secondLabel.setFontSize(18);
secondLabel.setFrame(CGRectMake(0, 0, 320, 200));
secondLabel.setTextAlignment(NSTextAlignment.NSTextAlignmentCenter);
this.view.addSubview(secondLabel);
}
}