Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Titanium Twitter App for learning



I'm creating a simple twitter app to learn Titanium. What I have is a tableView populated from a live twitter stream.

What I need to know is how I create clickable links from twitter user names, to be able to open that user's profile. I can get the regexp'd usernames, but don't know how to do something with them.

Any help much appreciated.

There doesn't seem to be much in the way of tutorials for mobile, or am I perhaps not looking in the right place?


— asked November 6th 2010 by Paul Taylor
  • tableview
  • twitter
1 Comment
  • I don't understand your first statement, "RECREATED FROM STACKOVERFLOW". Surely your first port of call for Titanium-related discussions is here?

    — commented November 7th 2010 by Paul Dowsett

3 Answers

  • Kitchen Sink Application has examples of pretty much everything, I would suggest you started there.

    Your question(s) are pretty high level and general so, look though the app provided and when you run into specific problems, post those and then the community can respond

    — answered November 6th 2010 by Aaron Saunders
    • It may also be worth looking at the Twitter API docs

      — commented November 6th 2010 by Paul Dowsett
    • Thanks for the answers, however I think this is specific enough to have an answer.
      All I need is some pointers on making part of the text in a tableview's entry clickable.
      I can create the tableview, containing the text from a twitter stream, and can isolate the twitter usernames. What I don't know is how to add an event listener to part of the text, not the whole thing.
      Any advice is appreciated.

      — commented November 7th 2010 by Paul Taylor
    • did you find a way?

      — commented January 13th 2011 by Mohammad Fadin
    • I am having the same issue. I need to be able to break the twitter text into a series of labels to make them clickable. The only issue I have is that each new line also has to be a seperate label.

      — commented March 27th 2011 by Dennis Cafiero
  • .

    — answered November 7th 2010 by Paul Taylor
  • You were right, you are not looking in the right place. Go to the first tab in KitchenSink -> Views -> Table Views -> Table View (Layout 2). There is a layout for a facebook like table, but it will help you a lot. If you click on the title of every row you will see that the app prints a message accordingly.

    — answered November 10th 2010 by Vali Filip
    1 Comment
    • The Kitchen Sink demo does not do what people are asking for. It creates separate labels for parts of the text which are clickable (this is quite straightforward), but what people actually want (myself included) is one label which is formatted and wrapped accordingly but which contains individual pieces of text that are clickable.

      Is this at all possible without making it a WebView?

      — commented September 1st 2011 by Dan Petitt
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.