預覽活動
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
使用預覽容器版本的應用程式預覽活動。
若要使用預覽函式,應用程式應在 AndroidManifest.xml 中加入下列程式碼片段:(其中 <package_name> 必須替換成您的套件名稱)
<activity android:name="com.google.tagmanager.PreviewActivity"
android:label="@string/app_name" >
<intent-filter>
<data android:scheme="tagmanager.c.<package_name>" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE"/>
</intent-filter>
</activity>
繼承常數摘要
來自類別
android.app.Activity
int |
DEFAULT_KEYS_DIALER |
|
int |
DEFAULT_KEYS_DISABLE |
|
int |
DEFAULT_KEYS_SEARCH_GLOBAL |
|
int |
DEFAULT_KEYS_SEARCH_LOCAL |
|
int |
DEFAULT_KEYS_SHORTCUT |
|
int |
RESULT_CANCELED |
|
int |
RESULT_FIRST_USER |
|
int |
RESULT_OK |
|
來自類別
android.content.Context
字串 |
ACCESSIBILITY_SERVICE |
|
字串 |
ACCOUNT_SERVICE |
|
字串 |
ACTIVITY_SERVICE |
|
字串 |
ALARM_SERVICE |
|
字串 |
AUDIO_SERVICE |
|
int |
BIND_ABOVE_CLIENT |
|
int |
BIND_ADJUST_WITH_ACTIVITY |
|
int |
BIND_ALLOW_OOM_MANAGEMENT |
|
int |
BIND_AUTO_CREATE |
|
int |
BIND_DEBUG_UNBIND |
|
int |
BIND_IMPORTANT |
|
int |
BIND_NOT_FOREGROUND |
|
int |
BIND_WAIVE_PRIORITY |
|
字串 |
BLUETOOTH_SERVICE |
|
字串 |
CLIPBOARD_SERVICE |
|
字串 |
CONNECTIVITY_SERVICE |
|
int |
CONTEXT_IGNORE_SECURITY |
|
int |
CONTEXT_INCLUDE_CODE |
|
int |
CONTEXT_RESTRICTED |
|
字串 |
DEVICE_POLICY_SERVICE |
|
字串 |
DISPLAY_SERVICE |
|
字串 |
DOWNLOAD_SERVICE |
|
字串 |
DROPBOX_SERVICE |
|
字串 |
INPUT_METHOD_SERVICE |
|
字串 |
INPUT_SERVICE |
|
字串 |
KEYGUARD_SERVICE |
|
字串 |
LAYOUT_INFLATER_SERVICE |
|
字串 |
LOCATION_SERVICE |
|
字串 |
MEDIA_ROUTER_SERVICE |
|
int |
MODE_APPEND |
|
int |
MODE_ENABLE_WRITE_AHEAD_LOGGING |
|
int |
MODE_MULTI_PROCESS |
|
int |
MODE_PRIVATE |
|
int |
MODE_WORLD_READABLE |
|
int |
MODE_WORLD_WRITEABLE |
|
字串 |
NFC_SERVICE |
|
字串 |
NOTIFICATION_SERVICE |
|
字串 |
NSD_SERVICE |
|
字串 |
POWER_SERVICE |
|
字串 |
SEARCH_SERVICE |
|
字串 |
SENSOR_SERVICE |
|
字串 |
STORAGE_SERVICE |
|
字串 |
TELEPHONY_SERVICE |
|
字串 |
TEXT_SERVICES_MANAGER_SERVICE |
|
字串 |
UI_MODE_SERVICE |
|
字串 |
USB_SERVICE |
|
字串 |
USER_SERVICE |
|
字串 |
VIBRATOR_SERVICE |
|
字串 |
WALLPAPER_SERVICE |
|
字串 |
WIFI_P2P_SERVICE |
|
字串 |
WIFI_SERVICE |
|
字串 |
WINDOW_SERVICE |
|
來自介面
android.content.ComponentCallbacks2
int |
TRIM_MEMORY_BACKGROUND |
|
int |
TRIM_MEMORY_COMPLETE |
|
int |
TRIM_MEMORY_MODERATE |
|
int |
TRIM_MEMORY_RUNNING_CRITICAL |
|
int |
TRIM_MEMORY_RUNNING_LOW |
|
int |
TRIM_MEMORY_RUNNING_MODERATE |
|
int |
TRIM_MEMORY_UI_HIDDEN |
|
公用建構函式
public
PreviewActivity
()
公用方法
public
void
onCreate
(Bundle savedInstanceState)
準備預覽未發布的容器,然後啟動這個套件的啟動活動。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]