Slide 29
Slide 29 text
Custom View
public class VideoPlayerView extends FrameLayout {
public VideoPlayerView(Context context, AttributeSet attrs) {
super(context, attrs);
TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.VideoPlayerView, 0, 0);
Drawable imageViewPlayIcon =
a.getDrawable(R.styleable.DStvVideoPlayerView_playIcon);
a.recycle();
}
}