title: How can I display an Android textView in my form?
body: <p>I'm trying to display a simple Native Android textView in my form, but I am unable to get the textView to draw. I am using the following code: </p>
  
  <pre><code>public android.widget.TextView createNativeView() {
     android.widget.TextView dynamicTextView = new android.widget.TextView(AndroidNativeUtil.getContext());
     dynamicTextView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
     dynamicTextView.setText(" Hello World ");
     dynamicTextView.setGravity(android.view.Gravity.CENTER);
     return dynamicTextView;
  }
  </code></pre>
  
  <p>With this I create a peerComponent 'view', to represent this textView on the form: </p>
  
  <pre><code>public void start() {
    if(current != null){
        current.show();
        return;
    }
  
    Form hi = new Form("Hi World", BoxLayout.y());
    TestNativeInterface n = (TestNativeInterface)NativeLookup.create(TestNativeInterface.class);
  
    Button connect = new Button("connect","connect");
    Button start = new Button("start","start");
    start.addActionListener(e -&gt; Dialog.show("Title", n.test("front", "back"), "OK", null));
    PeerComponent view = n.createNativeView();
  
    hi.add(new Label(view.getNativePeer().getClass().getSimpleName()));
    hi.add(view);
    hi.add(connect);
    hi.add(start);
  
    hi.show();
  }
  </code></pre>
  
  <p>The label correctly displays with the text 'Text View', the buttons are being drawn and the simple actionListner works, but the textView is hidden on the form. As I understand CN1 components, the Native elements are drawn <strong>after</strong> the CN1 elements. </p>
  
  <p>It feels like I may be missing a piece of the puzzle. Is there something like a .draw() function needed for native elements? How can I get this text view to display? </p>
  
  <p>Testing on Samsung A5, Android 7.0</p>