Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

TabbedApp

Language: Oxygene, Platform: Cooper, Category: Android
https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/Cooper/Android/TabbedApp

TabTwoActivity.pas

namespace org.me.tabbedapp;

interface

uses
  java.util,
  android.os,
  android.app,
  android.util,
  android.view,
  android.widget;
  
type
  TabTwoActivity = public class(Activity)
  private
  protected
  public
    method onCreate(savedInstanceState: Bundle); override;
  end;

implementation

method TabTwoActivity.onCreate(savedInstanceState: Bundle);
begin
  inherited;
  //This activity is just representative of a real activity. Its UI is so trivial 
  //(one textview) that it is created dynamically rather than via a layout file
  var textView := new TextView(self);
  textView.Text := "This is tab two";
  ContentView := textView
end;

end.