这是交易。
我正在查看有关扩展 ImageView 的代码:
http://marakana.com/forums/android/examples/98.html
我想知道如何将新视图与其他一些视图一起添加到现有的 xml 布局文件中。
我已经在我的主要线性布局中这样做了:
<FrameLayout android:id="@+id/FrameLayout01" android:layout_width="300dp" android:layout_height="300dp">
<com.marakana.Rose android:layout_height="wrap_content" android:layout_width="wrap_content"/>
但问题是这样就不会调用 onDraw 方法。
任何人都可以为此提出解决方案吗?也许是一些将 CustomViews 与 xml 布局结合起来的例子。
tnx。