zhj:topBarBackground="#00ff00">
</com.zhuanghongji.customviewzhj.view.TopBar>
TopBar.java :
import com.zhuanghongji.customviewzhj.R;
public class TopBar extends RelativeLayout {
private Button mLeftBtn;
private TextView mTitleTv;
// 左Button属性
private int leftBtnTextColor;
private Drawable leftBtnBackground;
private String leftBtnText;
// title属性
private int titleTextColor;
private String titleText;
private float titleTextSize;
// topBar属性
private Drawable topBarBackground;
// 布局属性
<