小白求教
androidstudio吧
全部回复
仅看楼主
level 1
卷帘秋 楼主
有关自定义控件的问题。
代码如下:public class TitleLayout extends LinearLayout
{
public TitleLayout(Context context,AttributeSet attrs){
super(context,attrs);
LayoutInflater.from(context).inflate(R.layout.title,this);
}
}
然后在main中引用后提示title是空的。
2017年04月04日 02点04分 1
1