Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public View getView(int position, View convertView, ViewGroup parent) {
- View vi = convertView;
- if (convertView == null)
- vi = inflater.inflate(R.layout.item, null);
- TextView text = (TextView) vi.findViewById(R.id.message);
- String messsage = "<div class=\"description\"> Social networking sites across the world are all thumbs up for this new song ‘Kolaveri Di’ sung\" </div>";
- org.jsoup.nodes.Document document = Jsoup.parse(messsage);
- Elements elements = document.select("div.description");
- text.setText("" + elements.text());
- TextView name = (TextView) vi.findViewById(R.id.name);
- String nameurl = "<div class=\"actorDescription\"><a class=\"actorName\" href=\"http://www.facebook.com/profile.php?id=1685342316\" data-hovercard=\"/ajax/hovercard/user.php?id=1087454171\" saprocessedanchor=\"true\">Raghav Rajagopalan</a> </div>";
- Document docu = Jsoup.parse(nameurl);
- Elements element = docu.select("div.actorDescription");
- name.setText("" + element.text());
- ImageView image = (ImageView) vi.findViewById(R.id.image);
- // text.setText("item " + position);
- imageLoader.DisplayImage(data[position], image);
- return vi;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement