<?xml version = "1.0" encoding = "utf-8" ?>
<!--********** Copyright 2016 Roku Corp. All Rights Reserved. **********-->
<component name="SearchScreen" extends="Group">
<children>
<Rectangle/>
<Button id="Search"/>
<MiniKeyboard id="MK"/>
</children>
</component>
Homescene child
<!-- Search screen -->
<SearchScreen
id="MK"
visible="FALSE"/>
Homescene init
'SearchScreen Node
m.SearchScreen=m.top.findNode("MK")
Display Search Screen
If m.gridscreen.focusedContent.Title="Search" 'Search
m.global.lastsearchterm=m.global.searchterm
'Destroy and Recreate Search Screen to reset focus to "a"
m.searchscreen.removeChildIndex(2) 'destroy minikeyboard
m.searchscreen.removeChildIndex(1) 'destroy button
m.searchscreen.removeChildIndex(0) 'destroy rectangle
m.searchscreen.createChild("Rectangle")
m.searchscreen.createChild("Button")
m.searchscreen.createChild("MiniKeyboard")
m.r1=m.searchscreen.getChild(0)
m.r1.width=558'228
m.r1.height=759'76
m.r1.color="0x0F0F0FFF"
m.r1.translation=[14,0]
m.b1=m.searchscreen.getChild(1)
m.b1.id="search"
m.b1.text="Search"
m.b1.showFocusFootprint=FALSE
m.b1.minWidth=240
m.b1.maxWidth=1000
m.b1.translation=[164,670]
m.b1.observeField("buttonSelected","SearchActivated")
m.searchscreen.translation=[668,170]
m.SearchScreen.GetChild(2).keyboardBitmapUri="pkg:/images/search.png"
m.searchscreen.GetChild(2).texteditbox.maxTextLength=20
m.searchscreen.GetChild(2).texteditbox.backgroundUri="pkg:/images/searchtext.png"
m.searchscreen.getchild(2).text=""
If m.popup.visible m.popup.visible=FALSE
m.searchscreen.visible=TRUE
m.searchscreen.getchild(2).SetFocus(TRUE) 'Set Focus to the mini keyboard keys
manifest file --
ui_resolutions=fhd
If I don't check the device model number then it doesn't scale at all.