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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:42:36+00:00 2026-06-04T18:42:36+00:00

I have been going through tutorials, and have been trying to understand some things,

  • 0

I have been going through tutorials, and have been trying to understand some things, but I am a little confused about this statement:

imageView.setLayoutParams(new GridView.LayoutParams(85, 85));

The Doc says width and height (meaning the two 85’s), or how its displayed on the screen. But is that the same as doing this in a grid view in an xml file?

<GridView
    android:layout_height="85"
...

Doesn’t seem right to me, which is why I ask. Any help is much appreciated.

  • 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-04T18:42:37+00:00Added an answer on June 4, 2026 at 6:42 pm

    According to the docs:

    Parameters
    width  the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels 
    height  the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels 
    weight  the weight  
    

    So, in pixels.

    In the XML you can specify the units.

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

Sidebar

Related Questions

I've been going through some JavaFX tutorials and I have a few questions about
I'm new to databases and have been going through various tutorials, but they all
I have been going through the tutorials of Spring 3 at http://www.vaannila.com/spring/spring-annotation-controller-1.html But i
I'm new to python and have been going through some tutorials on log parsing
I am complete newbie in mod_rewrite , and I have been going through some
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
I've been going through some tutorials on working with sqlite databases and they all
I have been going through the book Learning WCF trying to get my head
I have been going through this tutorial on auto-populating boxes using jQuery and Ajax:
I'm trying to learn ruby on rails. I've been going through a tutorial, but

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.