索尼應該創建迷你教程爲可用於這樣的事情u.u
/** * 這是如何更新整個佈局和一些 *觀點的例子。對於每個視圖,都使用一個包。該包必須具有佈局 *參考,即視圖ID和要使用的內容。此方法 *更新ImageView和TextView。 * * @see Control.Intents#EXTRA_DATA_XML_LAYOUT * @see Registration.LayoutSupport */
private void updateLayout() {
mCount = 0;
mIconImage = true;
String caption = mContext.getString(R.string.text_tap_to_update);
// Prepare a bundle to update the button text.
Bundle bundle1 = new Bundle();
bundle1.putInt(Control.Intents.EXTRA_LAYOUT_REFERENCE, R.id.btn_update_this);
bundle1.putString(Control.Intents.EXTRA_TEXT, caption);
// Prepare a bundle to update the ImageView image.
Bundle bundle2 = new Bundle();
bundle2.putInt(Control.Intents.EXTRA_LAYOUT_REFERENCE, R.id.image);
bundle2.putString(Control.Intents.EXTRA_DATA_URI,
ExtensionUtils.getUriString(mContext, R.drawable.icon_extension48));
Bundle[] bundleData = new Bundle[2];
bundleData[0] = bundle1;
bundleData[1] = bundle2;
showLayout(R.layout.layout, bundleData);
}