您的位置:首页 > 移动开发 > Android开发

Designing the User Interface(Chapter 3 of Hello, Android)

2010-01-09 22:34 381 查看
  A layout is a container for one or more child objects and a behavior to position them on the screen within the rectangle of the parent object.
  Here is a list of the most common layouts provided by Android:
  FrameLayout: classArranges its children so they all start at the top left of the screen. This is used for tabbed views and image switchers.
  LinearLayout: Arranges its children in a single column or row. This is the most common layout you will use.
  RelativeLayout: Arranges its children in relation to each other or to the parent. This is often used in forms.
  TableLayout: Arranges its children in rows and columns, similar to an HTML table.

  The Log class provides several static methods to print messages of various severity levels to the Android system log:
  • Log.e( ): Errors
  • Log.w( ): Warnings
  • Log.i( ): Information
  • Log.d( ): Debugging
  • Log.v( ): Verbose
  Users will never see this log, but as a developer you can view it in a couple ways. In Eclipse, open the LogCat view by selecting Window > Show View > Other... > Android > LogCat.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: