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 7027381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:14:24+00:00 2026-05-28T00:14:24+00:00

Things are simple, I want to make a widget with 4 lines and 4

  • 0

Things are simple, I want to make a widget with 4 lines and 4 rows in it, on each cell there would be a click-able image and an action set by the user via the Settings page.

The layout is like this:

enter image description here

What layout element is recommended to be used for this scenario ? Should I use a GridView, TableLayout, more Linearlayouts ? Keep in mind that the spacing between items must be the same. I want to make it as light as possible. So, what layout ?

If I decide to use a GridView do you have any simple tutorial about
this? I can’t manage to find a way of accessing the GridView from
AppWidgetProvider and set it’s Adapter. Thank you.

LE: It seems that GridView is supported starting from Android 3.0.. please correct me if I’m wrong. In this case the only remaining thing to do is add 16 images and for each image add a onClickListener ? Brrr…

  • 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-28T00:14:24+00:00Added an answer on May 28, 2026 at 12:14 am

    If you use a GridView then half of your work is done for you – The only layout and formatting elements you need to consider are on a Global (GridView) and Item level.

    Using a GridView will also give your Scrolling functionality and the ability to change your row/columns count based on your device (4×4 on tablet, perhaps 2×8 on a phone).

    Creating an extension of BaseAdapter to attach the Grid’s children will also give you the flexibility to check items, multi select and will allow you to quickly modify the implementation in future by adding and removing items at will.

    If this is simply a 4×4 grid which will always ALWAYS remain the same independent of device and each “Item” will always be the same, Use a RelativeLayout as it will be the most lightweight and efficient ViewGroup.

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

Sidebar

Related Questions

My boss believes that wizards make things simple for the user. I think they
For various reasons, such as cookies, SEO, and to keep things simple, I would
I want to make it dirt simple for users coming to my site to
The general idea is pretty simple, I want to make a script for a
I want to make some simple 2d games/clones (for Mac), but I have a
Doctrine 2 integration into ZF seems to make simple things very hard and time
I want to make a simple calculator My code is below: package som.dev.android.calc; import
I'm developing a Win CE 6 OS image and want to make it fit
How would I be able to make a signup page with ruby on rails?
I want to make a simple GUI API. Essentially the way it will work

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.