以下是我自定义的类
<view
class="com.productions.sample.TextCustom"
// more...
/>
子类
public class TextCustom extends TextView {
// Stuff.
}
我想实现的是
public final class Custom {
public class TextCustom extends TextView {
// Stuff.
}
public class ScrollCustom extends ScrollView {
// Stuff.
}
}
请问在XML文件中能同时定义子类吗?