ApplicationFramework层
ActivityManager
PackageManager
WindowManager
TelphonyManager
ContentProvider
ResourceManager
ViewSystem
LocationManager
NotificationManager
XMPPService
获取LinearLayout的长宽
View view = getLayoutInflater().inflate(R.layout.main, null);
LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.linearLayout);
linearLayout.measure(0, 0);
int width = linearLayout.getMeasuredWidth();
int height = linearLayout.getMeasuredHeight();
获取按钮在屏幕上的坐标
View view = findViewById(R.id.button1);
int[] locations = new int[2];
view.getLocationOnScreen(locations);
int x = locations[0];
int y = locations[1];