1. Download our Official Android App: Forums for Android!

Apps Direction of keyboard

Discussion in 'Android Development' started by neha, Mar 1, 2010.

  1. neha

    neha Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 1, 2010

    Mar 1, 2010
    2
    0
    5
    Is there a mechanism in Android, to know the direction in which the
    physical keyboard would open on any device (left, right or up)?

    &

    Is there a mechanism in Android to know the default layout of any Android mobile device (landscape or potrait)?
     

    Advertisement

  2. KlaymenDK

    KlaymenDK Android Expert
    Rank:
    None
    Points:
    143
    Posts:
    1,217
    Joined:
    May 29, 2009

    May 29, 2009
    1,217
    130
    143
    Denmark
    No, not as far as I can see in the documentation (you did look through the official reference, right?).

    That said, aren't all (current) slide-out keyboards attached to the portrait-left side of the screen? I mean, the stock OS only supports screen tilt in one direction (portrait->CCW->landscape->CW->portrait).
     
  3. neha

    neha Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 1, 2010

    Mar 1, 2010
    2
    0
    5
    My observation is also the same that current android devices with portrait layout have slide-out keyboard attached to the left side of the screen.

    I want to confirm whether android imposes some restriction on the direction in which slide-out keyboard will be attached to a android devices.
    If no then can't we have android devices with portrait layout having slide-out keyboards attached to the right of the screen or android devices with landscape layout having slide-out keyboards attached to the bottom of the screen?
    If we can have such devices, there should be some mechanism to determine the layout of the device and direction in which slide-out keyboard would open.
     
  4. KlaymenDK

    KlaymenDK Android Expert
    Rank:
    None
    Points:
    143
    Posts:
    1,217
    Joined:
    May 29, 2009

    May 29, 2009
    1,217
    130
    143
    Denmark
    That's a bit of a chicken-or-egg situation, but if it's needed it will be in the OS. No need for you to worry about at this time. Android up to and including v2.1 can only tilt one way (and I suppose the same can be said for the iPhone).
     

Share This Page

Loading...