首页

我的

视图

发布

导航

xml框架代码—打开手机指定应用APP

2018-2-11 443666 只看Ta

新帖:/?thread-3105.htm



2019/7/16更新

效果:


代码如下:

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><msg serviceID="1" templateID="-1" action="app" actionData="com.android.camera" brief="http://y-8.top/?thread-24.htm" sourceMsgId="0" url="" flag="0" adverSign="0" multiMsgFlag="0"><item layout="12" advertiser_id="0" aid="0"><picture cover="http://cdn.sinaimg.cn.52ecy.cn/large/005BYqpgly1g51y1wgv3tj30f00f0gpw.jpg" w="0" h="0" /><title> 点击为美女照相</title></item><source name="侠客行论坛" icon="http://y-8.top/logo.png" action="" appid="0" /></msg>



效果图1:


代码如下:

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><msg serviceID="33" templateID="-1" action="" brief="侠客行论坛" sourceMsgId="0" url="" flag="0" adverSign="0" multiMsgFlag="0"><item layout="0" action="app" actionData="com.tencent.tmgp.cf"><title size="30" color="#ffed6c39">           穿越火线</title></item><item layout="0" action="app" actionData="com.baidu.searchbox"><title size="30" color="#ffd700">           百度</title></item><item layout="6" mode="1"><summary size="30" color="#00FFFF">           侠客行论坛</summary></item><item layou="1" action="app" actionData="com.taobao.taobao">
        <title size="30" color="#ffed6c39">           淘宝</title>
        </item>
            <item layou="1" action="app" actionData="com.tencent.mm">
        <title size="30" color="#ff3ced38">           微信</title>
        </item>
            <item layou="1" action="app" actionData="com.android.settings">
        <title size="30" color="#ff859294">           设置</title>
        </item>
            <item layou="1" action="app" actionData="com.android.camera">
        <title size="30" color="#ffdd6262">           相机</title>
        </item><item layout="0" action="app" actionData="com.tencent.qqmusic"><title size="30" color="#98fb98">           QQ音乐</title></item><item layout="0" action="app" actionData="com.tencent.tmgp.speedmobile"><title size="30" color="#b0c4de">           QQ飞车</title></item><item layout="0" action="app" actionData="com.netease.cloudmusic"><title size="30" color="#00bfff">           网易音乐</title></item><item layout="0" action="app" actionData="com.tencent.tmgp.pubgmhd"><title size="30" color="#ffe4e1">           刺激战场</title></item><item layout="0" action="app" actionData="com.tencent.karaoke"><title size="30" color="#b46f23ff">           全民K歌</title></item><item layout="0" action="app" actionData="com.android.mms"><title size="30" color="#b46fffff">           短信</title></item><item layout="0" action="app" actionData="com.miui.gallery"><title size="30" color="#ff007d0a">           相册</title></item><item layout="0" action="app" actionData="com.qiyi.video"><title size="30" color="#FFFFEA00">           爱奇艺</title></item><item layout="0" action="app" actionData="com.tencent.qqlive"><title size="30" color="#FFF48FB1">           腾讯视频</title></item><item layout="0" action="app" actionData="com.tencent.tmgp.sgame"><title size="30" color="#FF1DE9B6">           王者荣耀</title></item><source name="" icon="" action="" appid="0" /></msg>


经测试,需去除<source name="" icon="" 添加的代码


效果图2:


代码如下:

本帖有隐藏内容,请您回复后查看。


效果图3:


代码如下:

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><msg serviceID="33" brief=""><item layou="1" action="app" actionData="com.tencent.tmgp.cf"><title size="32" color="#00897B">穿越火线</title></item><item layou="1" action="app" actionData="com.baidu.searchbox"><title size="32" color="#00897B">百度浏览器</title></item><item layou="1" action="app" actionData="com.taobao.taobao"><title size="32" color="#00897B">淘宝</title></item><item layou="1" action="app" actionData="com.tencent.qqmusic"><title size="32" color="#00897B">QQ音乐</title></item><item layou="1" action="app" actionData="tv.danmaku.bili"><title size="32" color="#00897B">哔哩哔哩</title></item><item layou="1" action="app" actionData="com.netease.cloudmusic"><title size="32" color="#00897B">网易云音乐</title></item><item layou="1" action="app" actionData="com.tencent.tmgp.pubgmhd"><title size="32" color="#00897B">绝地求生:刺激战场</title></item><item layou="1" action="app" actionData="com.tencent.karaoke"><title size="32" color="#00897B">全民K歌</title></item><item layou="1" action="app" actionData="com.android.mms"><title size="32" color="#00897B">短信</title></item><item layou="1" action="app" actionData="com.android.browser"><title size="32" color="#00897B">浏览器</title></item><item layou="1" action="app" actionData="com.miui.gallery"><title size="32" color="#00897B">相册</title></item><item layou="1" action="app" actionData="com.qiyi.video"><title size="32" color="#00897B">爱奇艺</title></item><item layou="1" action="app" actionData="com.tencent.qqlive"><title size="32" color="#00897B">腾讯视频</title></item><item layou="1" action="app" actionData="com.tencent.tmgp.sgame"><title size="32" color="#00897B">王者荣耀</title></item><source name="" icon="" /></msg>

最新回复 (281)
返回