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

problem in navbar #54

Closed
MarsXan opened this issue Aug 10, 2016 · 1 comment
Closed

problem in navbar #54

MarsXan opened this issue Aug 10, 2016 · 1 comment

Comments

@MarsXan
Copy link

MarsXan commented Aug 10, 2016

Hi tanx for your good lib
my english is not good sorry for that
i have a problem i have add change possison in your code for example i want to start a progressbar
when i am in tab 1 but it start in tab 2 and tab 1 what is the problem ?
if(position==0){
new JSONAsyncTask().execute("http://microblogging.wingnity.com/JSONParsingTutorial/jsonActors");
ArrayList listMockData = new ArrayList();
String[] images = getResources().getStringArray(R.array.images_array);
String[] headlines = getResources().getStringArray(R.array.headline_array);

                for (int i = 0; i < images.length; i++) {
                    ListItem newsData = new ListItem();
                    newsData.setUrl(images[i]);
                    newsData.setHeadline(headlines[i]);
                    newsData.setReporterName("Pankaj Gupta");
                    newsData.setDate("May 26, 2013, 13:35");
                    listMockData.add(newsData);
                }
                ArrayList<ListItem> listData = listMockData;

                final ListView listView = (ListView) findViewById(R.id.custom_list);
                listView.setAdapter(new CustomListAdapter(Main.this, listData));
                listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {

                    @Override
                    public void onItemClick(AdapterView<?> a, View v, int position, long id) {
                        ListItem newsData = (ListItem) listView.getItemAtPosition(position);
                        Toast.makeText(Main.this, "Selected :" + " " + newsData, Toast.LENGTH_LONG).show();
                    }
                });
            }
@GIGAMOLE
Copy link
Member

Hello. Thanks for issue.
Can you explain what exactly you want. I dont understand your question. And your pastecode doesnt provide any info. Wait for repsonse. Try to use latest update of NTB.

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

No branches or pull requests

2 participants