title: Custom view not showing up
body: <p>I have a custom view class extended from view and I want to use it in an activity but it doesn't show anything. there are no errors it runs but black screen no output. My code is as follow:</p>
  
  <pre><code>public class MoveableMenuLayout extends View {
  
  
      public MoveableMenuLayout(Context context, AttributeSet attrs) {
  
          super(context, attrs);
          LinearLayout ll = new LinearLayout(context);
          ll.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
          TextView tv = new TextView(context);
          tv.setText("TES_______________");   
          ll.addView(tv);
  
          this.invalidate();
          this.requestLayout();
      }
  
      public MoveableMenuLayout(Context context) {
          super(context);
  
          LinearLayout ll = new LinearLayout(context);
          ll.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
          TextView tv = new TextView(context);
          tv.setText("TES_______________");   
          ll.addView(tv);
  
          this.invalidate();
          this.requestLayout();
  
      }
  }
  </code></pre>
  
  <p><strong>CALLING ACTIVITY</strong></p>
  
  <pre><code>public class TestActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          MoveableMenuLayout layout = new MoveableMenuLayout(this);   
          setContentView(layout);
      }
  }
  </code></pre>
  
  <p>I have tried it by including it in xml layout but still no output. I am not sure what I am doing  wrong. I dont want to change the style I want it to be a separate class, I know I can use xml layout and set it directly in Activity with setcontentview but I don't want to do that way. Thanks </p>