Advertisement
Guest User

Renoki

a guest
Feb 20th, 2012
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1.   public void onCreate(Bundle savedInstanceState)
  2.   {
  3.     super.onCreate(savedInstanceState);
  4.     setContentView(R.layout.main);
  5.     float dip = getResources().getDisplayMetrics().density;
  6.     FrameLayout fl = (FrameLayout)findViewById(R.id.framelayout);
  7.     fl.setLayoutParams(new FrameLayout.LayoutParams((int)(320*dip),
  8.     (int)(570*dip), Gravity.CENTER_HORIZONTAL));
  9.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement