Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6734437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:53:18+00:00 2026-05-26T10:53:18+00:00

In my App I have 7 buttons aligned using relative layout. The order I

  • 0

In my App I have 7 buttons aligned using relative layout. The order I display the buttons are as below,

    one  Two
         Three
    Four Five
    Five Six

In the above layout Two, Three, Five, Six are setClickable(false).

One, Four, Five are enabled.

Now when I press the down arrow key of keypad to navigate button “one” is getting focussed. Next if I press down arrow key again I want the button “Four” should be focussed instead of button Two.

Does Android got any property or method that can be used to give this navigation order? If not what is the best logic I can use to implement this?

(I am thinking the logic as,

    1. Override the keyDown event 
    2. On down arrow key press event see the button "One" is focussed or not
           --> if not set the focus to it
    3. else check the button "Four" is focussed or not --> if not set the focus to it

so on…..

But it seems I am making the things complex…
)

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:53:19+00:00Added an answer on May 26, 2026 at 10:53 am

    I used setNextFocus… methods for something like this before and it got the job done.

    setNextFocusDown documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two buttons in my flex app next to each other, ButtonA and
I have a WPF app that is using the MVVM pattern. Hooking up buttons
Right now I have two buttons. Each one needs to produce a different sound.
My Android app having many buttons. My main.xml layout has three buttons. I know
in my app i have three buttons namely A,B and C. I want the
I have an app in which i have two buttons. Each will generate a
I have two buttons in a very simple app, this is my code when
In my IPhone app I have a UITableView. I want two buttons to appear
I have several buttons on my app that are being created dynamically. They are
In my app there is requirement that..I have 6 buttons in a nib, when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.