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

  • SEARCH
  • Home
  • 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 8275053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:56:45+00:00 2026-06-08T07:56:45+00:00

I am developing an app with codename one Now I have a form. 1)I

  • 0

I am developing an app with codename one

Now I have a form.

1)I set the layout to grid layout. grid is 2 X 3 (2 rows and 3 cols)

2)I add 6 buttons and these buttons occupy the 6 cells. Each button has an image and text associated with it.

3)I have styled the buttons in such a way, that they do not have borders.So now, the buttons don’t really have the look and feel of a button. They just look like images with some text below them.

4)Now these images don’t occupy the entire screen. So if I have an android with a very big screen, I see 3 images in the first row, a very big gap and then 3 images in the 2nd row.

5)I would expect that, if i accidently click anywhere between the first row and the second row (in the gap between the two rows of buttons/images) nothing should happen.

6)However, the thing is , the grid occupies the entire screen. SO even if i click in the gap within the two rows of buttons/images, individual cells are so huge that the whenever I click within the gap; I am actually still clicking inside a cell of the grid. Now this cell captures the event and transfers it to the button in that cell and some action happens.

7)I dont want that to happen.I want the action to happen ONLY WHEN the user puts his finger on the image.

How do i do this? The solution should work without issues on cellphones with small/big/medium size screens.

  • 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-06-08T07:56:47+00:00Added an answer on June 8, 2026 at 7:56 am

    You have two options depending on what you want to achieve:

    1. Place the GridLayout Container within a NORTH section of a border layout container. This will align the images to the top. You can play with a hierarchy/type of layouts easily (which is why the GUI builder is really cool).

    2. Place each button within a flow layout container which will keep it in its preferred size. You can set the flow layout to center align etc.

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

Sidebar

Related Questions

I am developing app using the jquerymobile framework. I have to set the background
Im developing an app for iPhone, in wich one of the functionalities is an
I am developing an app with a shopping cart. When I add a product,
I am developing app which add contact info to android contact list .to How
i am developing app in Blackberry which have GPS Functionality. so first i want
I am developing app that has multiple skins and I have a dilemma on
i am developing app that would receive data from server any time. i have
Am developing an app which has a calculator function: for example, i have 4
I'm developing an app that calculates poker odds, and now I'm facing some problems
Developing ios app. I have an object class Product.h and .m respectively along with

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.