ui界面是这样的,然后如何修改可以在这三个按钮区域向左滑动,显示其它的按钮。
比如我这里面有6个按钮,现在显示3个,向左滑动显示剩下的3个。
[JavaScript] 纯文本查看 复制代码 ohh= floaty.rawWindow( <vertical alpha="1" id="quan" >
<card cardCornerRadius="2dp">
<vertical bg="#FAFAFA" w="230" id="hxd" >
<vertical w="230" id="jindu" >
<progressbar indeterminate="true" style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal" />
</vertical >
<text id="haoyoushu" text='目前状态:未打开好友树' typeface="monospace" textSize="8" h="auto" w="230" gravity="center" alpha="1"/>
<horizontal >
<text id="s1" text='展开' typeface="monospace" h="auto" w="30" textStyle="bold" textSize="12" gravity="center" margin="10" alpha="1"/>
<card id="dai" h="auto" >
<text id="s2" text='开始' typeface="monospace" h="auto" w="30" textStyle="bold" textSize="12" gravity="center" margin="10" balpha="1"/>
</card>
<text id="s4" text='1人' typeface="monospace" h="auto" w="20" textStyle="bold" textSize="12" gravity="center" margin="10" alpha="1"/>
<text id="s5" text='增加' typeface="monospace" h="auto" w="25" textStyle="bold" textSize="12" gravity="center" margin="10" alpha="1"/>
<text id="s6" text='0心' typeface="monospace" h="auto" w="30" textStyle="bold" textSize="12" gravity="center" margin="10" alpha="1"/>
</horizontal>
</vertical>
</card>
<horizontal h="auto" bg="#FAFAFA" id="shu">
<text id="xl3" text='点' typeface="monospace" h="25" w="20" textStyle="bold" textSize="12" margin="8" gravity="center" alpha="1"/>
<text id="s7" text='切换账号' typeface="monospace" h="25" w="60" textStyle="bold" textSize="12" margin="8" gravity="center" bg="#C0C0C0" alpha="1"/>
<text id="xl1" text='创建码子' typeface="monospace" h="25" w="60" textStyle="bold" textSize="12" margin="8" gravity="center" bg="#C0C0C0" alpha="1"/>
<text id="xl2" text='退' typeface="monospace" h="25" w="20" textStyle="bold" textSize="12" margin="8" gravity="center" alpha="1"/>
</horizontal>
</vertical>)
//让悬浮窗一直运行x
setInterval(function () { }, 1000)// @drawable/ic_keyboard_arrow_up_black_48dpraw.icon3.on("click",function(){raw.icon3.setSource("@drawable/ic_keyboard_arrow_up_black_48dp")})
//线程
|