Development Tips

A Malfunction Occurs When Setting the App Layout by Display (LCD) Unit

Regarding requests to adjust the Split window size, please note that the screen may become pixelated if you set the size of the app's layout as an absolute value using Display (LCD) as the sizing unit.

If you set the layout size in a relative manner using only a native android layout such as the LinearLayout or FrameLayout, the screen can be resized properly and therefore function normally. However, a malfunction can occur if you set the layout size in an absolute manner using the Display (LCD) as the sizing unit.

Make sure that the size of the app, i.e. the area of the screen where the app will be rendered, is not determined by APIs such as DisplayMetrics and Display. If you set the LCD size as the layout size, which is not a size suggested by Framework, the screen may become invisible or may become pixelated due to the limits of the Split window size.

The Screen Becomes Pixelated When a Minimum Value Has Been Set for the Layout

Beware of the following if a minimum value has been set for the layout.

Even when the app size becomes smaller in Dual window mode, the app occupies an area of the screen as large as this preset minimum size for its layout. As a result, it is possible that other layouts may not appear on the screen or, even if they appear, they become very small, causing the screen to be pixelated.

When There Is a Logic That Performs Calculations Using the Layout Size

Be careful of the following if there is a logic in the app that performs calculations using the layout size.

If you adjust the app's size in Dual window mode, it is possible that the layout size could become 0, which in turn results in an exception such as DivideByZero.

Custom Pop-up Cannot Be Expanded outside the Area Set for the App

Please note that if you use custom pop-ups, the app cannot expand its layout outside of the area of its Split window in Dual window mode.

 

If you implement normal dialogs, drop-down pop-ups, or context menus in Dual window mode by using native methods, the layout can expand beyond the area of the app's Split window. However, if you implement pop-up windows by customization or if the layout param value for pop-up windows exceeds the range of the Split window, the layout cannot expand beyond the area of the app's Split window.

Caution When Setting Layout Param

You must consider the following when setting the layout param.

A normal pop-up is modally made up, meaning it monopolizes touches on the entire screen and disappears when a screen area other than the pop-up is touched. Therefore, if you do not make pop-ups in modal form, instances may occur where two or more pop-up coexist, blocking each other or blurring the focus.

Because a pop-up that runs with a modal attribute monopolizes touches on the entire screen, the areas of other apps become dimmed, making it difficult to take advantage of the Dual window mode. Therefore, it is advisable not to use modal pop-ups for Dual window apps that require long operation times such as data receiving.

Adding a Scroll bar

You need to consider adding a scroll bar on the layout of Dual window applications.

The application’s height or width is reduced on Dual window mode compared to Full screen mode. In addition, users can adjust the Split window’s size below the default size. It is therefore recommended that you add a scroll bar on the layout although your application occupies very small area.

Navigation