【问题标题】:Change third party activity's name android更改第三方活动的名称android
【发布时间】:2015-08-31 14:06:38
【问题描述】:

我在我的应用程序中使用 zopim sdk 进行聊天,并且我正在尝试更改我的聊天活动的标题。我像这样自定义了标题字符串并重建了我的项目:

 <string name="chat_activity_title">My Custom Title</string>

当检查构建文件夹中 zopim 的清单时,它会像这样反映在那里。

<activity
            android:name="com.zopim.android.sdk.prechat.ZopimChatActivity"
            android:label="My Custom Title"
            android:theme="@style/ZopimChatTheme"
            android:windowSoftInputMode="stateUnspecified|adjustResize" >
            <intent-filter android:priority="-1000" >
                <action android:name="zopim.action.RESUME_CHAT" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

但是当我运行我的应用程序时,它总是显示以前的标题,为什么? 我有什么遗漏吗?

(我在这里标记 zendesk 是因为他们支持相同的内容)*

【问题讨论】:

  • 如果有调用 getActionBar().setTitle("") 或类似的东西,你能检查活动活动/片段的实际来源吗?
  • 你试过清理你的项目了吗?
  • 也许添加活动本身(ZopimChatActivity)
  • @Darkie 我清理了我的项目地狱很多时间。
  • @DanielBo 已经检查过了,没有。

标签: android zendesk


【解决方案1】:

请试试这个:

请尝试替换

tools:replace="android:theme, android:label"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-29
    相关资源
    最近更新 更多