需求:一个界面上面一排Button 单选,点击切换下面的分页,经常能在游戏中见到
部分参考代码:也是别人给我的,我还是不懂该怎么弄,没思路
protected LayoutInflater mInflater = null;
public BaseView(Context aContext,int layout_resid){
mContext = aContext;
mInflater = (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
mRootFrameLayout = (FrameLayout)mInflater.inflate(layout_resid, null);
InitView(mRootFrameLayout);
}
部分参考代码:也是别人给我的,我还是不懂该怎么弄,没思路
protected LayoutInflater mInflater = null;
public BaseView(Context aContext,int layout_resid){
mContext = aContext;
mInflater = (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
mRootFrameLayout = (FrameLayout)mInflater.inflate(layout_resid, null);
InitView(mRootFrameLayout);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货