https://github.com/cemalgnlts/customtabs
CustomTabs plugin for DroidScript
https://github.com/cemalgnlts/customtabs
Last synced: about 2 months ago
JSON representation
CustomTabs plugin for DroidScript
- Host: GitHub
- URL: https://github.com/cemalgnlts/customtabs
- Owner: cemalgnlts
- Created: 2021-02-06T14:40:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T11:19:46.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T07:48:28.155Z (4 months ago)
- Language: Java
- Homepage:
- Size: 1.19 MB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CustomTabs
[](http://droidscript.org)
[](https://ds.justplayer.de/uploads/72)**Install with source codes:**
* Download project folder and build APK package with Android Studio or AIDE.
* Open APK package to your on phone.
* (Re)start DroidScript.**Install with ppk file:**
* Download **customtabs.ppk** file from [DroidStore](https://ds.justplayer.de/uploads/72).
* Click **customtabs.ppk** file and select DroidScript.# Usage
Put yours project top:
```js
app.LoadPlugin("CustomTabs")
```Create an instance of the plugin object:
```js
tabs = app.CreateCustomTabs()
```Use ``OpenUrl`` method for show a page:
```js
tabs.OpenUrl("https://droidscript.org")
```# Demo
```js
app.LoadPlugin("CustomTabs")function OnStart()
{
lay = app.CreateLayout("Liner", "FillXY,VCenter")
btn = app.AddButton(lay, "Show a web page")
btn.SetOnTouch(btn_OnTouch)
app.AddLayout(lay)
tabs = app.CreateCustomTabs()
}function btn_OnTouch()
{
tabs.OpenUrl("https://droidscript.org")
}
```For anny question write [DroidScript Forum](https://groups.google.com/g/androidscript).