Unwanted Android selection behaviour... different in Flex versus pure ActionScript... Why?

Hi,
I'm trying to get to the bottom of the text selection behaviour on my Android Xoom under different circumstances:
1. In a pure ActionScript mobile app, selection and copy / paste is controlled through a floating control that appears on screen without resizing or otherwise moving anything
2. In a Flex mobile app, selection and copy / paste is controlled through a UI bar that appears at the top of the screen, pushing the entire app downwards, losing focus on my textfield, ballsing up every bit of control I have in addition to confusing the hell out of my user whose finger is no longer pointing at the piece of text they wanted to select but rather at something else that is about a half-inch above that point...
So...
Obviously, I want to get to 1. for Flex - eg: I want to allow selection and copy / paste without loss of focus, without repositioning and without confusing the hell out of my user.
Does anybody have any clues how I can achieve this?
Thanks,
G

Got it. The two selection behaviours depend on the underlying skin.
This one works with Flex:
skinClass
: ClassReference("spark.skins.mobile.TextInputSkin"
Where this one shifts the app down, places a bar above, and generally screws with any interactivity you may have wanted to do using your selected text...
skinClass: ClassReference("spark.skins.mobile.StageTextAreaSkin"
G

Similar Messages

  • Skinning selected DataGrid header in Flex 4

    Hi,
    What I'm trying to do seems trivial, but after hours of searching for historical clues I have still not achieved it. I simply want to reskin only the selected header. There seems to be multiple approaches:
    1) define a custom headerRenderer - but this ends up with the sort indicator cobbled on top of your custom drawn area
    2) rework the header background skin to clip/draw the selected column differently - but this requires clipping to the selected column, and figuring out the dimensions to clip to
    Am I missing an obvious and easier solution?  Any examples out there?
    Thanks!

    Thanks again Alex.
    I managed to achieve something satisfactory with the following custom HeaderRenderer. The negative padding on the right side allows the gradient to extend underneath the sort skin to fill the entire column. This seemed easier (if not cleaner) than also skinning the sort arrow skin in the same way.
    I also had to extend DataGridHeader and override drawHeaderIndicator (for the rollover of the column header) and drawSelectionIndicator (for the transitionary state of clicking on the column header before the sort takes effect).
    Still a work in progress, but hopefully this will save the next Googler some time in achieving any of these goals.  And of course I welcome any refinements or any admonishments that I'm doing something really stupid.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group> 
    implements="mx.controls.listClasses.IListItemRenderer"xmlns:fx="
    http://ns.adobe.com/mxml/2009" xmlns:s="
    library://ns.adobe.com/flex/spark" xmlns:mx="
    library://ns.adobe.com/flex/halo"width="
    100%" height="100%">
    <fx:Script>
    <![CDATA[
    import com.company.player.model.Constants; 
    import mx.collections.ArrayCollection; 
    import mx.controls.DataGrid; 
    import mx.controls.dataGridClasses.DataGridColumn; 
    import mx.controls.listClasses.IListItemRenderer; 
    import mx.controls.listClasses.ListBase; 
    private var _data:Object; 
    static private const LABEL_BUFFER:int = 4; 
    static private const SORT_INDICATOR_WIDTH:int = 14; 
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    var owner:DataGrid = owner as DataGrid; 
    var col:DataGridColumn = data as DataGridColumn; 
    var bSorted:Boolean = false; 
    var ac:ArrayCollection = owner.dataProvider as ArrayCollection; 
    if (ac && ac.sort){
    // there's a sort in place - is it on this column?
    var sortFieldName:String = ac.sort.fields[0].name; 
    bSorted = (sortFieldName == col.dataField);
    gradientOverlay.alpha = bSorted ? 1 : 0;
    gradientOverlay.visible = bSorted;
    lbl.width = col.width - LABEL_BUFFER - (bSorted ? SORT_INDICATOR_WIDTH : 0);
    lbl.text = col.headerText;
    lbl.setStyle(
    "color", bSorted ? "#343434" : "#767676"); 
    super.updateDisplayList(unscaledWidth, unscaledHeight);}
    ]]>
    </fx:Script>
    <s:HGroup id="gradientOverlay" width="100%" height="100%" paddingTop="-2" paddingRight="{-SORT_INDICATOR_WIDTH}" >
    <s:Rect width="100%" height="100%" >
    <s:fill>
    <s:LinearGradient rotation="90">
    <s:GradientEntry color="{Constants.SELECTION_GRADIENT1}" alpha="1"/>
    <s:GradientEntry color="{Constants.SELECTION_GRADIENT2}" alpha="1"/>
    </s:LinearGradient>  
    </s:fill>
    </s:Rect>  
    </s:HGroup>
    <s:HGroup width="100%" height="100%" verticalAlign="middle" paddingLeft="{LABEL_BUFFER}" >
    <s:Label id="lbl" maxDisplayedLines="1" showTruncationTip="true" />  
    </s:HGroup>
    </s:Group>

  • How to avoid the user selecting a different path in my installer

    Hello again all you helpful forum-goers!
    I have an application and a corresponding installer, and then I have a separate installer putting some support files in the same directory.  My problem is that if the user selects a different path to which to install my primary application, the secondary installer will not put the required support files in the same spot.
    Now, I think I've figured out how to get the user-selected path from the "Run executable at the end of installation" option in the Advanced pane of the LabVIEW installer configuration, and I can pass that in to my secondary installer, and that should fix the problem.  However, what I'd really like to do is just not give the user the option to install my primary application in a different directory to begin with.  I've looked, but cannot find any way to do that.
    Does anyone know of any way to not present the option to install an application in a different directory when using the LabVIEW installer?
    Thanks in advance for any suggestions,
    -Joe

    Ben64,
    That's great!  Thank you so much for your quick reply.  The only reason I haven't already accepted that as my solution is that it requires a manual post-compile change to a text file.  Ideally I'd prefer not to have to remember to do that every time I rebuild my installer.  Is there any way that you know of to automate the process?
    If not, I'm happy to have a good solution even if it takes an extra step each time to implement.
    -Joe

  • BAPI_ALM_ORDERHEAD_GET_LIST to select two different order at a time (urgent

    hello all ,
    Using BAPI_ALM_ORDERHEAD_GET_LIST i want to select two different orders at a time . As we do in IW38 using select single vaules(1) .
    i want to know how to pass the selection .
    Up to know i have tried like this :
    FIELD_NAME                     S OP LOW_VALUE
    OPTIONS_FOR_ORDERID            I EQ 500460
    OPTIONS_FOR_ORDERID            I EQ 500400
    But i am getting only the first order . But i want both order numbers .
    So please help me on this .
    Thanks are regards ,
    Prem

    Just for information. The following IT_RANGES fields map to the IW38 checkboxes at the top of the selection-screen:
    SHOW_DOCUMENTS_IN_PROCESS      IW38 - Outstanding (CRTD)
    SHOW_OPEN_DOCUMENTS                  IW38 - In process (REL)
    SHOW_COMPLETED_DOCUMENTS       IW38 - Completed (TECO and CLSD)
    SHOW_HISTORICAL_DOCUMENTS       IW38 - Historical
    If you want to select TECO/CLSD orders, then you would use the following in IT_RANGES:
    SHOW_DOCUMENTS_IN_PROCESS      I EQ
    SHOW_OPEN_DOCUMENTS                  I EQ
    SHOW_COMPLETED_DOCUMENTS       I EQ X
    SHOW_HISTORICAL_DOCUMENTS       I EQ
    As you then said, you need to filter out the CLSD statuses using:
    OPTIONS_FOR_STATUS_INCLUSIVE I EQ TECO
    I suspect this would be a more efficient way of selecting the data, but you'd need to check.
    PeteA

  • How to do a SELECT from different tables into an internal table?

    How to do a SELECT from different tables into an internal table?
    I want to select data from MARA, MARC and ZPERSON and populate my ITAB_FINAL
    REPORT  zinternal_table.
    TABLES:
      mara,
      marc,
      zperson.
    TYPES:
    BEGIN OF str_table1,
      v_name LIKE zperson-zname,
      v_matnr LIKE marc-matnr,
      v_emarc LIKE marc-emarc,
      v_werks_d LIKE marc-werks_d,
      v_dstat LIKE marc-dstat,
      END OF str_table,
      i_table1 TYPE STANDARD TABLE OF str_table1.
    DATA:
    BEGIN OF str_table2,
    v_mandt LIKE mara-mandt,
    v_ernam LIKE mara-ernam,
      v_laeda LIKE mara-laeda,
    END OF str_table2,
    itab_final LIKE STANDARD TABLE OF str_table2.

    first find the link between mara , marc and zperson , if u have link to 3 tables then u can jus write a join and populate the table u want ( thats final table with all the fields).
    u defenitely have alink between mara and marc so join them and retrieve all data into one internal table.
    then for all the entries in that internal table retrieve data from zperson into another internal table.
    then loop at one internal table
    read another internal table where key equals in both the tables.
    finally assign fileds if sy-subrc = 0.
    gs_finaltable-matnr = gs_table-matnr
    etc...
    and finally append gs_finaltable to gt_finaltable.
    there u go ur final table has all the data u want.
    regards
    Edited by: BrightSide on Apr 2, 2009 3:49 PM

  • "Try Selecting a Different Printer or File Type" Error - iPad2 - Officejet Pro 8600 - ePrint error

    Greetings...
    I just got an Officejet Pro 8600 and I've been trying to get web pages to print using HP ePrint from my iPad 2 (iOS 7.0.6). I go into the ePrint app, go to web page of choice, and then click on my printer option to print. It renders on screen and then throws out the following error:
    "Try Selecting a Different Printer or File Type" "Officejet Pro 8600 [5124FC] doesn't support this file type."
    I can use ePrint from the iPad to print pictures from camera roll.
    This only is problematic when I try to print web pages (I tried amazon.com for test).
    I have no problems doing this from my iPhone...only the iPad.
    I've tried rebooting device and trying again....same thing.
    Anybody know how to fix this? I really want to be able to print web pages from my iPad.
    Thanks in advance...
    Possie

    Hello Possie,
    Thank you for the update.  I have to say I'm surprised and disappointed that the uninstall and reinstall did not resolve the issue, especially since you can print the page from your iPhone.
    I have spent some time researching this and working with my colleagues in HP's Cloud Services and we have a couple of suggestions/questions.
    Do you get the same error when you try to print the web page using Apple's AirPrint feature? 
    Please ensure the iPad is connect to your home wireless network and try to print again.
    Please try changing the settings in the ePrint app before printing the web page.  Please ensure that the paper quality is set to normal (see screen shot below) and that the paper size is set to letter (see 2nd screen shot below).
    Please let us know how it goes. 
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Using Teststand, need to know how to select a different active x servers in the labview adapter configurat​ion...

    Hi,
    When I open TestStand using a seq. file, I can see all the VI's that are called, but when I try to open them for editing, I see this message;
    "The labview adapter is currently configured to run tests in an environment that does not support editing VI's. In order to edit or create VI's, you must select a different labview Active X server in the lab view adapter environment"
    So, I clicked on all the options allowed to me in the "Module Adapter" (is this the same as the drop down menu (by default)"Labview Standard Prototype adapters") but I was still unable to open the VI�s for editing�
    Anyone know how or why?

    Hi,
    You will find the option under Configure | Adapters...then select the labview and press the configure button.
    So if you are not able to do this then it could be because your system doesn't have the LabVIEW development system or you do not have adminstrator rights (Teststand login) or it could be that your VI's have been saved without diagrams.
    What are you logged in as?
    Do you know if you have labVIEW?
    Regards
    Ray Farmer

  • How to select a different country in ESS Address information

    in ESS Personal Information Address iView, our employees need to be able to maintain foreign addresses and select from differenet countries in the country drop down.
    We performed the IMG customization step "Personnel Management->Employee Self Services->Service Specific Settings->Own Data->Foreig Address Setting->Determine countries for foreign address and make settings." And we are using the Address iView located under the International PCD folder.
    however, when we log in to ESS, the country screen field of the Address iView is read-only, employees cannot select a different country than their own. Anything I am doing wrong?
    Regards,
    Tiberiu.

    Let me mention how this works
    "Employees can maintain a foreign address using the country field on the
    Edit screen. This is enabled if an employee creates a new record. When
    an employee selects a foreign country in which to maintain an address,
    the country-specific views (Edit view, Review view) change to correspond
    to that country. If a country-specific address format does not exist for
    the selected country, international address views are used.
    Remark: Employees cannot change the country for an existing address!
    Maintenance of foreign addresses is only allowed in case a new address
    is entered or address changes are made for the same country."
    Also make sure business function is enabled by SFW5   HCM_ESS_CI_1
    VIEKN is availlable in Pa0003
    ensure this is maintained T7XSSPERFORADD as well

  • This purchase could not be completed please select a different payment method

    I`ve bought a new BB as a present to my wife - Z3.
    I`ve registered for her new BB ID account - **Removed**@dunaeva.su
    And we can not purchase anything having the same problem using all of our cards - "this purchase could not be completed please select a different payment method",
    I`ve read a lot of forums and web pages and belive that our problem - ur sistem has flagged her account as potentially Fraudulent or Blocked.
    U shold unblock her and bring ur appoligise.
    Edit: Email removed. At no time should you provide any personal information to any other community member. Please review the Community Guidelines and Terms and Conditions of Use. for further information

    I apologize for the rudeness of my first post - i was really disappointed with the situation when i`m not able to provide to my wife fully equipped phone with all her contacts and sms (need some paid app). I`ll check up your recommendations and come back with a report or new questions.

  • How to make tabs show up selectively in different pages?

    Hi,
    I'm new to APEX and getting my hands dirty now...
    I have a standard Tab Set called "TS1", which has 2 tabs (say, tab1 and tab2) in there. Since tabs are under "shared component", so it appears that they are shared throughout all the 10 pages I have.
    How can I make the tabs show up selectively in different pages? For example, I want tab1 and tab2 showing up in page1-9, but NOT in page10. There's a "conditions" (Condition Type), but it has many types and I don't know how to use it.
    Please kindly help!
    Thanks much,
    Helen

    I have a similar requirement. I have several tabs (Operations, Maintenance, Safety, etc.) and users get individually assigned rights. I have a table where I have all the users listed and I added one column for each tab so I can set whether or not that user has access to that tab. You could go the same thing with groups if you want.
    Basically, my table looks like this:
    USER_ID, USER_NM, PWD_HASH, SAFETY_TAB, MAINT_TAB, OPER_TAB, etc.
    where each of the _TAB fields is set up as a VARCHAR2(2) for just Y/N.
    On my home page, I assign an APPLICATION_ITEM called G_USER_ID (Global User ID) on login so I can track who it is. Then I set the condition statement on the tab to SQL QUERY RETURNS AT LEAST ONE ROW
    using the following query:
    select SAFETY_TAB from APEX_USERS
    where SAFETY_TAB = 'Y'
      and USER_ID = :G_USER_IDThis example would be for the Safety tab, but you can easily substitute others. It works pretty slick.

  • Photoshop CC - Cannot control + click to select a different shape while using the pen tool?

    I used the pen tool constantly in photoshop cs6 and would often use control + left click to select a different shape while still using the pen tool.
    I'm now forced to switch to the move tool to select another layer? Why was this feature removed / changed?
    Fix: After fooling around more, here is how I fixed it:
    The new Direct Select Tool by default is set to "active" layers. Switch it to "all layers"
    Message was edited by: Joe Horan

    A new problem = Selecting multiple points with control + click + drag is selecting ALL shape layers... Jesus christ, why was this changed????
    I now have to double click the shape I want to select? Why? What is the point of this?

  • Mail error "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"

    The Mail application has suddenly started giving error:
    "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"
    It was working fine till yesterday, suddenly it stopped. I have 3 email accounts configured here, 2 are on exchange servers and one yahoo. Connection verification works and shows all servers as green.
    Any inputs?

    I had 3 accounts, 2 ms exchange accounts and 1 yahoo. After removal of yahoo, everything is back to normal.
    Regards
    Rohit

  • I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    grannybel
    It would appear that you are destined for the Adobe Photoshop Elements Forum since your question is related to Photoshop Elements and not Premiere Elements which is the focus program where you have posted.
    But, while the arrangements are being made, here are a few things for you to think about if you have not already
    1. Reset Tools - Select Brush Tool, then
    2. Delete Settings File
    Go to Full Editor/Edit Menu/Preferences/General and click on the option "Reset Preferences on Next Launch".
    We will be watching for your progress.
    Thank you.
    ATR

  • TF10121: The path '' is not found or not supported. Type or select a different path. After SQL2012 install and Solution upgraded to VS2010

    I have recently upgraded a solution from vs2008 to vs2010.  This solution happens to contain several .rptproj file (SSRS 2008R2 reports).  I was able to upgrade the solution after I installed SQL2012 (which installed the necessary templates
    into vs2010). 
    However whenever I open the solution the Output window now pops up and continuously lists the same error (shows output from Source Control - Team Foundation).
    TF10121: The path '' is not found or not supported. Type or select a different path.
    I have tried reinstalling Team Explorer SP1, and VS2010 SP1, but with no change.
    If I unbind the solution from source control the messages go away.  Rebind and they return.
    The problem doesn't always start straight away, it may take a few solution explorer clicks.
    Opening an rdl into the editor seems to halt the messages, until I go back to clicking in solution explorer (similarly the issue doesn't always re-occur first click).
    E.g.
    TF10121: The path '' is not found or not supported. Type or select a different path.
    TF10121: The path '' is not found or not supported. Type or select a different path.
    Audit.rdl has been automatically checked out for editing.
    Then no errors until going back and clicking in solution explorer (which is using auto hide)
    [See also:
    http://social.msdn.microsoft.com/Forums/en-US/tfsversioncontrol/thread/8c7cc472-3ac1-4800-8199-5f4b41414748]
    Does anyone else out there share this problem or more importantly a solution/work around?

    Hi Evanw21,
    Based on the current information, it seems to be the known issue described in the following KB article:
    FIX: TF10121 error when you right-click a project file of the project or a folder in the project in Visual Studio 2010
    The root cause of the problem is that we hold onto a stale reference to the old project and get back an empty string when we try to get its directory path. To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete
    list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:
    http://support.microsoft.com/contactus/?ws=support
    Besides, there is one easy workaround. If we close the solution and re-open it prior to attempting to re-add the project, we should be able to add it successfully. 
    References:
    TF10121
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • A filter cannot be applied to the currently selected field. Select a different field

    Hi,
    I am using an InfoPath form to submit the data. In my form I am using one dropdown and one textbox in a repeating table, and the data is fetching from the SharePoint list.
    Scenario: In my SharePoint list there is a column of Company name and other is of Focal Point name. In dropdown contains the company name column.
    I want the functionality that when i select the Company name the associated focal point name should appear in the textbox.
    To achieve this I am using the filter for dropdown but it is showing me error "A filter cannot be applied to the currently selected field. Select a different field."
    Can anyone please tell me how can I do this.
    Thanks in Advanced,

    Hi,
    Please update me any solution for this as I am not able to resolve this.....
    Thanks,

Maybe you are looking for

  • I had family with one iTunes account

    how do i migrate to icloud?  do i need to create an account for each family member?  will i still be able to share apps with my wife?

  • How to get the RGB Working Space from within a Filter Plug-In?

    Within my Filter Plug-In I need to access the image's icc profile data. I know this can be accomplished with the according data structure 'iCCprofileData'. But what if there is no profile assigned to the image? Then iCCprofileData is NULL and the def

  • How to extract the signal out from the waveform by my designated power level?

    Dear all,      How can  I extract the signal from the waveform accroding to the power level? I read the Trigger&Gate.vi, but this vi extract signal according to the duration time. I want to extract signal according to power level.      As shown in th

  • Portable logos

    Post Author: ltwert CA Forum: General I have a series of reports that are used it two different parts of the same organization.  As a result, the logos need to be different.  The logos are encapsulated in a subreport, and the logo is the only thing i

  • Problem in word document dispaly

    Hi,     i have a report program , after executing the report i will get a WINWORD button , when i click that the output should be presented in a word document .The problem is  when i tested the same program in different clients iam getting different