UI(六) 自定义的View作为Layout中的标签

    技术2025-12-21  5

    一、实现构造方法

    public Preview(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub } 

    二、layout

    <enleo.well_read_eye.Preview android:id="@+id/previewView" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="fill_parent"> </enleo.well_read_eye.Preview>  

    最新回复(0)