Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2011
996
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public class NewCheckpointsTabVIew extends ScrollView {
  2.  
  3. Context context;
  4.  
  5. public NewCheckpointsTabVIew(Context context) {
  6. super(context);
  7. this.context = context;
  8. inflate();
  9. }
  10.  
  11. public NewCheckpointsTabVIew(Context context, AttributeSet attrs) {
  12. super(context, attrs);
  13. this.context = context;
  14. inflate();
  15. }
  16.  
  17. private void inflate() {
  18. LayoutInflater inflater = (LayoutInflater) context
  19. .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  20. if (inflater != null) {
  21. inflater.inflate(R.layout.checkpoint_new_tab_view, this);
  22. }
  23. }
  24.  
  25. private void init() {
  26. }
  27.  
  28. @Override
  29. public void onSizeChanged(int w, int h, int oldw, int oldh) {
  30. super.onSizeChanged(w, h, oldw, oldh);
  31. init();
  32. }
  33.  
  34. }
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement