title: Custom Linear Layout Child not showing
body: <p>i tried to create custom linear layout that have dynamic height and width = height. The custom layout is fine, but the child view not showing at my custom linear layout. i tried some way to fix it, but still cant solve it.</p>
  
  <pre><code>public class CustomLinearLayout extends LinearLayout {
      public CustomLinearLayout(Context context) {
          super(context);
      }
  
      public CustomLinearLayout(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
  
      @Override
      protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  
          int height = MeasureSpec.getSize(heightMeasureSpec);
          setMeasuredDimension(height, height);
  
      }
  }
  </code></pre>
  
  <p>this is the xml that contain my custom linear layout. the child view not showing.</p>
  
  <pre><code>&lt;com.example.admin.antriclient.CustomLinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:autofit="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical"
      android:layout_width="100dp"
      android:layout_height="100dp"
      android:background="@drawable/bg_nomor_antrian"
      android:padding="10dp"
      &gt;
          &lt;me.grantland.widget.AutofitTextView
              android:id="@+id/service_name"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Teller"
              android:textColor="@color/white"
              android:textStyle="bold"
              android:gravity="center_horizontal"
              android:singleLine="false"
              autofit:minTextSize="12sp"
              /&gt;
          &lt;me.grantland.widget.AutofitTextView
              android:id="@+id/nomor_antrian"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="T21"
              android:textSize="50sp"
              android:textColor="@color/white"
              android:textStyle="bold"
              android:gravity="center_horizontal"
              android:singleLine="true"
              autofit:minTextSize="12sp"
              /&gt;
  
  &lt;/com.example.admin.antriclient.CustomLinearLayout&gt;
  </code></pre>
  
  <p>thanks in advance</p>