Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NewCheckpointsTabVIew extends ScrollView {
- Context context;
- public NewCheckpointsTabVIew(Context context) {
- super(context);
- this.context = context;
- inflate();
- }
- public NewCheckpointsTabVIew(Context context, AttributeSet attrs) {
- super(context, attrs);
- this.context = context;
- inflate();
- }
- private void inflate() {
- LayoutInflater inflater = (LayoutInflater) context
- .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- if (inflater != null) {
- inflater.inflate(R.layout.checkpoint_new_tab_view, this);
- }
- }
- private void init() {
- }
- @Override
- public void onSizeChanged(int w, int h, int oldw, int oldh) {
- super.onSizeChanged(w, h, oldw, oldh);
- init();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement