question

aidigame avatar image
aidigame asked

Softkey toolbar covers some UI elements

Dear all, I have learned from the pre-submission assessment guide that the soft keys toolbar should not cover important UI elements and now comes my problem.I find some fairly important UI elements,such as the close button in the top right corner,will be obstructed when the softkey toolbar shows up.I'm assuming that I need to work out 3 questions bellow to overcome the problem: 1. Is there any reponse function to be called before the softkey toolbar showing up so that I can adjust the position of the currently running scene in the function to prevent the softkey toolbar covering some important UI elements. 2. If there is such a function as mentioned above,which of the 3 jar files in Apps-SDK.zip should I import into my app. 3. How to gain the size(including height and width,especially the width of the softkey toolbar when in landscape) of the softkey toolbar. Any help will be highly appreciated.Thanks for watching:-)
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sachin@Amazon avatar image
Sachin@Amazon answered
Hi Aidlgame, Please refer the below mentioned link of an existing forum post related to Soft key. This will give you fair idea about SoftKey toolbar. https://forums.developer.amazon.com/forums/thread.jspa?messageID=481ǡ You can also refer to our blog on SoftKey Bar Optimization for Kindle Fire. http://www.amazonappstoredev.com/2012/05/top-10-app-optimizations-for-kindle-fire-part-ii.html Hope this information will help you solve your issue.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

aidigame avatar image
aidigame answered
Hi Saching, Thanks for your reply.I've read through the thread and the blog and found some useful information but not enough to solve my problem.I also refered to the Kindle Fire Device and Feature Specifications and found some data wasn't so accurate.For example,I have a original kindle device and measured the size of the softkey toolbar(when visible) with photoshop only to find that the size was more than 73px while the data specified in the documentation was 60px.By the way,the size of the status bar of the original bar was ok. In addition to the sizes of the status bar and the softkey toolbar,it's essential for me to know what methods will be fired when the softkey toolbar appeares and disappears so I can adjust the position of the running scean appropriately in time to avoid the problems mentioned above.Unfortunately,I didn't find the answers to my questions in the thread and documentation. Besides,I found the same problems in some games displayed in the appstore.For example,I installed a game named "XXXXXXXXX" into my kindle device,and ran it for quite a while only to find that when I entered the shop in the game and clicked the fullscreen handle to bring the softkey toolbar back,the top right corner was almost covered by the toolbar.Moreover,there were some other similar problems in the "XXXXXXXXXX".What makes me confused is that the pre-submission assessment guide points that the softkey toolbar should not cover important UI elements,but XXXXXXXXX,without conforming to the rule,has passed the review successfully.Am I making a mistake in understanding the rule mentioned above in the guide or something else?Can you explain it?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sachin@Amazon avatar image
Sachin@Amazon answered
For compatibility reasons, no change to app behavior should occur when the softkeys are expanded. Generic devices running Gingerbread 2.3 would have the keys always present. The app therefore gets no callbacks, no window changes, etc., on Kindle Fire. The window state can be controlled via the WindowManager.LayoutParams. You can also refer the following links for more information http://www.amazonappstoredev.com/2012/05/top-10-app-optimizations-for-kindle-fire-part-ii.html https://developer.amazon.com/sdk/fire/cx-guidelines.html#DesignElements
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

aidigame avatar image
aidigame answered
Thanks for your reply,it's really appreciated.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.