Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ListItemView(Context context, AttributeSet attrs) {
- super(context, attrs);
- init(attrs);
- }
- private void init(AttributeSet attrs) {
- final TypedArray a = getContext().obtainStyledAttributes(
- attrs, R.styleable.ListItemView);
- String title = a.getString(
- R.styleable.ListItemView_ListItemView_text);
- Drawable image = a.getDrawable(
- R.styleable.ListItemView_ListItemView_image);
- setTitle(title);
- setImage(image);
- a.recycle();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement