Why softKeyboardBehavior PAN is not working? - actionscript-3

So, I've made an AIR app and put in my manifest
`<softKeyboardBehavior>pan</softKeyboardBehavior>`
I've also put my app into "CPU" mode (and tried "auto" too).
But when I click on a textfield, the keyboard is covering it.
Should I do something else in my code to make the app goes up when clicking on a textfield ?

android:windowSoftInputMode is used to push the content up when an input appears below the keyboard
try use these codes in your android manfiset:
<application>
android:windowSoftInputMode="adjustResize"> or use "adjustPan"
</application>

Related

Libgdx keyboard "enter"

Is there a way to change the keyboard so it have a "enter" or "go" button in android like in chrome browser in android, when you are writting a url it shows a "go" button.
If so how to show it? and how to handle it?
I have researched but I ran out of words because my english is limited, and couldn't find anything.
Thanks.
LibGDX doesn't support this feature. If you want to implement it, you would have to fork LibGDX and modify AndroidOnscreenKeyboard, specifically the IME options that are placed on its TextView. Or you could submit a PR to add this as a configurable option.
Look here for android keyboard handling. it has everything you need including keyboard types.
And also look here for android specific code usage in libgdx.

can the backdrop app be styled, customized or replaced?

On Chromecast, is there any way to customize, style (with CSS), or replace the backdrop application?
(That's the application that runs as a sort of screen saver, when nothing's being cast to the device).
My ideal backdrop app would be an iframe showing something I could control.
No, it cannot be styled or replaced. You have some level of control on what images or information show up there (can be set in your Chromecast app); that is all.

Is a "close" icon necessary in other platforms?

In iOS, one doesn't need to add a close icon for an app. In the rare event that one wants to kill an app they can do it via the OS.
When looking at the cocos2d-x project that is created by default when using the console (v3.1.1), the sample HelloWorld scene places a button on screen to "close" the app.
Is this actually required in ANY platform ? Does it make sense to add this button at all ?
Apple usually rejects on this and Google and Microsoft don't like it.
You can, however, have close buttons on menus or popovers (say, like a pause screen).

Display Chrome extension popup at middle of page

I am new to writing chrome extensions and was wondering how can i do the following.
How can i make the popup(when someone clicks on extension icon) display at the center of the webpage instead of displaying the popup at the top right corner ?
Use chrome.browserAction.onClicked.addListener(), which fires "when a browser action icon is clicked." Then inject your popup manually into the DOM of the supplied tab, using something like chrome.tabs.executeScript().
Also consider adding a context-menu item, which might make more sense to a user depending on what your extension actually does.

Is it possible to bind a command directly to an app bar button?

I'm creating an MVVM style application for windows phone. With a regular button, you can bind anything that inherits from ICommand to the Command property on a xaml button, like so:
The command property does not seem to exist for buttons in the phones app bar ("shell:ApplicationBarIconButton"). Has anyone figured out how to bind their click event to a Command yet?
It's not possible from the SDK directly, but the AppBarUtils library ( http://nuget.org/packages/AppBarUtils or http://appbarutils.codeplex.com/ ) works nicely.
The codeplex site has example code for different scenarios such as reusing or switching the app bar in a page.
I didn't understand how to use the chosen solution so I went for another one. You just add the library via nuget. It's BindableApplicationBar
Then you just add the following instead of your normal application bar.
<bindableApplicationBar:Bindable.ApplicationBar>
<bindableApplicationBar:BindableApplicationBar >
<bindableApplicationBar:BindableApplicationBarButton
Text="Refresh"
IconUri="/Images/refresh.png"
Command="{Binding RefreshCommand}" />
</bindableApplicationBar:BindableApplicationBar>
It's just a shame that intellisense doesn't reconize the tags. Otherwise, it works like a charm.