是什么意思

Fragment是什么意思

  Fragment,可以翻译为碎片、破片、断片,同时也指Android中的一种技术。

  fragment语法

  动词过去式:fragmented,过去分词:fragmented,现在分词:fragmenting,第三人称单数:fragments

  n. 碎片;片段,未完成的部分;(将文件内容)分段

  vt. (使)碎裂,破裂,分裂

  vi. 破碎,碎裂

  用法

  It was but yesterday I thought myself a fragment quivering without rhythm in the sphere of life .

  昨天,我还认为自己是一个碎片,在生命的周天里无规律地振颤。

  Alas , I only found a pilish fragment of length 5 .

  哎,我只得到了一个5字符长的π文片段。

  The chair fragmented under his weight.

  在他重压下,椅子断了。

  She dropped the vase on the floor and it broke into fragments.

  她把花瓶掉在地上,摔成了碎片。

  The interruption fragmented his argument.

  他的辩论因被打断而显得不完整。

  Android技术中的Fragment

  Fragment是Android honeycomb 3.0新增的概念,Fragment名为碎片不过却和Activity十分相似。Fragment用来描述一些行为或一部分用户界面在一个Activity中,你可以合并多个fragment在一个单独 的activity中建立多个UI面板,同时重用fragment在多个activity中。你可以认为fragment作为一个activity中的一 节模块 ,fragment有自己的生命周期,接收自己的输入事件,你可以添加或移除从运行中的activity。

Fragment

上一篇
下一篇