2 Replies Latest reply on Jul 6, 2012 12:57 AM by MatteoLegittimo

    Textinput Skin dosent open SoftKeyboard

    MatteoLegittimo Level 1

      HI,

      im building a skin for my textInput in a Flex Mobile Project.

      But doest open the softKeyboard, just with default skin it's working.

       

      Alse setting resizeForSoftKeyboard="true" in main application dosent scale!

       

      Thanks so much

        • 1. Re: Textinput Skin dosent open SoftKeyboard
          DotNETDev

          Can you post some of your code? I'm working on a Flex Mobile project at the moment as well, and I haven't had any issues with the soft keyboard.

          • 2. Re: Textinput Skin dosent open SoftKeyboard
            MatteoLegittimo Level 1

            Hi,

            thnks for you replay!

            This is my text input skin:

             

            <?xml version="1.0" encoding="utf-8"?>

            <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"

                    xmlns:s="library://ns.adobe.com/flex/spark" width="180" height="22">

                <!-- host component -->

                <fx:Metadata>

                    [HostComponent("spark.components.TextInput")]

                </fx:Metadata>

               

                <fx:Script>

                    <![CDATA[

                        import mx.core.FlexGlobals;

                       

                       

                        protected function textDisplay_focusInHandler(event:FocusEvent):void

                        {

                           

                            bg.visible = true

                            currentState = 'focusIn'

                           

                        }

                       

                        protected function textDisplay_focusOutHandler(event:FocusEvent):void

                        {

                            bg.visible = false

                        }

                       

                    ]]>

                </fx:Script>

               

                <!-- states -->

                <s:states>

                    <s:State name="disabledWithPrompt" />

                    <s:State name="normalWithPrompt" />

                    <s:State name="disabled" />

                    <s:State name="normal" />

                    <s:State name="focusIn" />

                   

                </s:states>

               

                <!-- SkinParts

                name=promptDisplay, type=spark.core.IDisplayText, required=false

                name=textDisplay, type=spark.core.IEditableText, required=false

                -->

               

               

               

                <s:Rect width="100%" height="100%">

                    <s:stroke>

                        <s:SolidColorStroke color="0XCCCCCC" joints="miter"/>

                    </s:stroke>

                </s:Rect>

               

                <s:Rect id="bg" width="100%" height="100%" visible="false">       

                    <s:fill>

                        <s:SolidColor color="0XFF0000"/>

                    </s:fill>

                </s:Rect>

               

                <s:RichEditableText id="textDisplay"

                                    verticalAlign="middle"

                                    widthInChars="10"

                                    left="5" right="5" top="5" bottom="5" color.focusIn="0XFFFFFF" focusIn="textDisplay_focusInHandler(event)" focusOut="textDisplay_focusOutHandler(event)" />

               

                <!--- Defines the Label that is used for prompt text. The includeInLayout property is false so the prompt text does not affect measurement. -->

                <s:Label id="promptDisplay" maxDisplayedLines="1"

                         verticalAlign="middle"

                         mouseEnabled="false" mouseChildren="false"

                         includeIn="normalWithPrompt,disabledWithPrompt"

                         includeInLayout="false" />

               

            </s:Skin>

             

             

            Let me know

            Thanks a lot!