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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:30:55+00:00 2026-05-31T15:30:55+00:00

I have a webview but the getView function is never called. I have seen

  • 0

I have a webview but the getView function is never called. I have seen similar question but it the problems there where differenr. Can anyone help me?

Java code:

List<String[]> info=new ArrayList<String[]>();
         String[] names_info=new String[5];
         String[] phones_info=new String[5];
         String[] map_info=new String[5];
         String[] web_info=new String[5];
         String[] photos_info=new String[5];
for(int i=0;i<names_info.length;i++)
     {
         info.add(new String[]{names_info[i],phones_info[i],map_info[i],web_info[i],photos_info[i]});
     }
     for (int i = 0; i < info.size(); i++) {
       Log.d("TAG", "item " + i + 
                " name:" +  info.get(i)[0] + 
                " info:" + info.get(i)[1]);
    }
     FacilitiesAdapter adapter = new FacilitiesAdapter(this,info,want_info_display,want_phone_display,want_photos_display);
     //System.out.println(info[0]);
     setListAdapter(adapter);

I see results in Log, so that means that my info is getting its result normally.

This is my adapter.

public class FacilitiesAdapter extends ArrayAdapter<String> {
    private final Context context;
    List <String[]> dataList;

    public FacilitiesAdapter(Context context, List<String[]> dataList, int need_phone, int need_info, int need_photos)  {
        super(context, R.layout.expand_row);
        this.context = context;
        this.dataList = dataList;
        //this.tracks_condition=tracks_condition;
        //this.count=count;
    }
     public View getView(int position, View convertView, ViewGroup parent) {
            LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            View rowView = inflater.inflate(R.layout.expand_row, parent, false);
            System.out.println("I am here");
            String[] data = dataList.get(position);
            String name=data[0];
            TextView textView = (TextView) rowView.findViewById(R.id.name);
            System.out.println("I am in the adapter "+name);
            textView.setText(name);
            return rowView;
     }
}

here I dont even see *System.out.println("I am here");*.
any help?

  • 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-31T15:30:56+00:00Added an answer on May 31, 2026 at 3:30 pm

    change super(context, R.layout.expand_row);

    with super(context, R.layout.expand_row, dataList);

    or ovveride the getViewCount callback and let it return the number of item you want to show

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

Sidebar

Related Questions

I've created an online store within an android app in webview but have one
I have a webview that shows some animated boxes, but it slows down and
I have a WebView. I'd like to show some page from my server, but
I have Webview application that uses progress bar dialog. It works fine but the
I saw it used in textview and webview android:id=@+id/textview android:id=@+id/webview but looks like there
Say I have a webview with a page that is mostly unoccupied, but has
I want pinch-to-zoom in WebView but I dont want it to have the integrated
I want to add a webview to my layout.But that layout have few other
I have simple WebView code like this: WebView wv = (WebView) findViewById(R.id.webview1); wv.loadUrl(http://en.wikipedia.org/wiki/Book); But
I have a webView and I use [NSURLRequest requestWithURL:] to load the page. 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.