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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:41:00+00:00 2026-05-30T14:41:00+00:00

I want to set two grid view for same layout. I can also able

  • 0

I want to set two grid view for same layout. I can also able to set that within same lay out but due to scrollable control its look like a “wrap_content”.

but i want to show full grid view in a screen one after another like below fig.enter image description here

in above fig. grid view show full height of it.
so please help me.

Thank you .

  • 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-30T14:41:01+00:00Added an answer on May 30, 2026 at 2:41 pm

    TRY THIS :

    public void createTableRow_you(int no) {
    
    
              tr_u = new TableRow(this);
              LayoutParams lp = new LayoutParams(LayoutParams.FILL_PARENT
                      , LayoutParams.WRAP_CONTENT);
    
              tr_u.setLayoutParams(lp);
              tr_u.setWeightSum((float) 1.0);
              tr_u.setPadding(10, 0, 10, 0);
              tr_u.setGravity(Gravity.CENTER_VERTICAL );
    
              ImageView img1= new ImageView(this);
              //img1.setLayoutParams(lp);
              img1.setPadding(10, 10, 10, 10);
    
             // img1.setScaleType(ScaleType.FIT_XY);
    
              if (density == DisplayMetrics.DENSITY_HIGH) {
                  img1.setLayoutParams(new TableRow.LayoutParams(125, 125 ));
    
              }else {
                  img1.setLayoutParams(new TableRow.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
    
              }
    
              if (no < photo_icon_u.size()) {
                  img1.setImageDrawable(photo_icon_u.get(no));
                  img1.setId(Integer.parseInt(photoID_profile.get(no)));
                  img1.setClickable(true);
                  img1.setOnClickListener(this);
                  img1.setTag("profile");
    
              }else {
                  img1.setImageResource(R.drawable.icon);
                  img1.setVisibility(View.GONE);
              }
    
    
              ImageView img2= new ImageView(this);
              //img2.setLayoutParams(lp);
              img2.setPadding(10, 10, 10, 10);
            //  img2.setLayoutParams(new TableRow.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT, (float) 0.33));
            //  img2.setScaleType(ScaleType.FIT_XY);
              if (density == DisplayMetrics.DENSITY_HIGH) {
                  img2.setLayoutParams(new TableRow.LayoutParams(125, 125 ));
              }else {
                  img2.setLayoutParams(new TableRow.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));  
              }
    
              if (no+1 < photo_icon_u.size() ) {
                  img2.setImageDrawable(photo_icon_u.get(no+1));
                  img2.setId(Integer.parseInt(photoID_profile.get(no+1)));
                  img2.setClickable(true);
                  img2.setOnClickListener(this);
                  img2.setTag("profile");
    
              }else {
                  img2.setImageResource(R.drawable.icon);
                  img2.setVisibility(View.GONE);
              }
    
              ImageView img3= new ImageView(this);
             // img3.setLayoutParams(lp);
              img3.setPadding(10, 10, 10, 10);
            //  img3.setLayoutParams(new TableRow.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT, (float) 0.34));
              //img3.setScaleType(ScaleType.FIT_XY);
    
              if (density == DisplayMetrics.DENSITY_HIGH) {
                  img3.setLayoutParams(new TableRow.LayoutParams(125, 125 ));
              }else {
                  img3.setLayoutParams(new TableRow.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));  
              }
    
              if ( no+2 <  photo_icon_u.size()) {
                  img3.setImageDrawable(photo_icon_u.get(no+2));
                  img3.setId(Integer.parseInt(photoID_profile.get(no+2)));
                  img3.setClickable(true);
                  img3.setOnClickListener(this);
                  img3.setTag("profile");
              }else {
                  img3.setImageResource(R.drawable.icon);
                  img3.setVisibility(View.GONE);
              }
    
              tr_u.addView(img1);
              tr_u.addView(img2);
              tr_u.addView(img3);
            //.  tb_photo_u.addView(tr_u);
              tb_photo_u.addView(tr_u, new TableLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to set a View background that is a regular grid of vertical
I want to set something up so that if an Account within my app
My problem is that I want a grid that is populated with a set
I have two results from a data set. I want to add both results
i want set the visibility to itemized overlay in map view. if the zoom
I want set Listbox background to transparent but not working Is there any idea?
I want to set a background image for a div, in a way that
I want to set a breakpoint on the __DoPostBack method, but it's a pain
i had two combobox(Catogery, product) in my grid. what i want to do is.
I want to create Grid that has 3 columns. One column is 'textfield' and

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.