onMeasure跟childview.layout

onMeasure和childview.layoutCustomViewGroupandroid:layout_widthwrap_contentandroid:layout_height

onMeasure和childview.layout

<CustomViewGroup        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:background="#ffffff">        <TextView android:layout_width="wrap_content"            android:layout_height="50dp"            android:text="fasdjflsadjlf"            android:background="#555555"/>        <TextView android:layout_width="wrap_content"            android:layout_height="50dp"            android:text="fasdjflsadjlf"            android:background="#999999"/>    </CustomViewGroup>