Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically add a row of data, the table does not change #6

Closed
liujmok opened this issue Feb 18, 2013 · 3 comments
Closed

Dynamically add a row of data, the table does not change #6

liujmok opened this issue Feb 18, 2013 · 3 comments
Labels

Comments

@liujmok
Copy link

liujmok commented Feb 18, 2013

I found the rowCount not changed.

@BraisGabin
Copy link
Collaborator

Do you have any code to reproduce the problem? Did you try to call notifyDataSetChanged()?

@liujmok
Copy link
Author

liujmok commented Feb 18, 2013

StyleTable example, i try the code.

           int rowCount = 20;
           int columnCount = 10;

    @Override
    public int getRowCount() {
        return rowCount;
    }

    @Override
    public int getColumnCount() {
        return columnCount;
    }


    Button btn = (Button) findViewById(R.id.button1);
    btn.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View view) {
            rowCount++;
            adapter.notifyDataSetChanged();
        }

    });

@BraisGabin
Copy link
Collaborator

I added a bug in 88f59cb I fixed it in 744a9ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants