Iconified TextList - The making of

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Postby Mazinkaiser » Sun Jan 10, 2010 6:57 pm

sorry guys, exactly how can i make the list clickable? the common setOnClickListener dosen't work for me...
Mazinkaiser
Freshman
Freshman
 
Posts: 9
Joined: Fri Oct 16, 2009 12:21 pm

Top

Postby YaW » Thu Feb 25, 2010 9:33 am

Hi plusminus.

I followed your tutorial and it works great! Nice job.

I have a question. It's possible to make one onClickListener on the image and other different onClickListener on the text?

Greetings
Sorry for my poor English.
User avatar
YaW
Junior Developer
Junior Developer
 
Posts: 16
Joined: Thu Feb 25, 2010 8:54 am

Postby yeochinh » Tue Mar 16, 2010 4:04 pm

Thanks for the awesome tutorial!
I'd like to ask if you can make a continuation tutorial on how I make the list clickable (say for example, i clicked on Learn spanish) and then be able to forward it to the next form. (say I have another set of list on the other form specifically for the "Learn SPanish" entry).
Thanks very much for your time!

(sorry, im just a novice in creating android apps)
yeochinh
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Mar 16, 2010 7:07 am

Postby korakrit » Tue Mar 30, 2010 6:58 pm

thank for sharing please post XML Layout
korakrit
Freshman
Freshman
 
Posts: 2
Joined: Tue Nov 03, 2009 2:46 pm

Postby vik » Wed Mar 31, 2010 11:22 am

hey all ...
I am using this tutorial and everything is working fine.
Now i am downloading images from the URL to be shown in this view Using "aSync".
so i will have to get all the instances of imageView ; so for that i am storing in array of imageview
but now what is happening is that suppose i am at record 1 and image have been downloaded for record 5 but only 1-4 are currently shown in lisview then it throws null pointer exception .

i know even why it is thrown ; it is because imageview of record 5 havent been created yet till we scroll to recod 5.
now how to solve this problem?
User avatar
vik
Senior Developer
Senior Developer
 
Posts: 141
Joined: Wed Sep 09, 2009 7:32 am

Re: Iconified TextList - The making of

Postby shre » Wed May 19, 2010 4:55 am

hi..

am new to android development.. please someone help me.. i tried to run this code.. dut as soon as i click on run, message is displayinf like this "your project contains error(s), please fix them before running" .. but there is no error in code.. please help me :(
shre
Once Poster
Once Poster
 
Posts: 1
Joined: Tue May 18, 2010 1:33 pm

Top

Re: Iconified TextList - The making of

Postby limteckchai » Mon Jun 28, 2010 9:33 am

Hey All,
Thanks for the great tutorial.

Firstly, I have followed Anddev's several tutorials like this 1 and tab, and some others mashing them up to get a cool app.
Thanks to this tutorial, i managed to upgrade my Listview to have icons on them and somehow it does not allow me to implement onClickListener() or onItemClickListener().The codes i use are almost exactly the same as the one from the tutorial.

An extract of the code
Code: Select all
IconifiedTextListAdapter itla = new IconifiedTextListAdapter(this);
   
      itla.addItem(new IconifiedText("Bakeries", getResources().getDrawable(
            R.drawable.makan_bakeries)));
      itla.addItem(new IconifiedText("Bars & Wines", getResources()
            .getDrawable(R.drawable.makan_barswines)));

setListAdapter(itla);


The code works and shows the icon of a bakery next to the word Bakeries, but i dun noe how to make the app react to ~clicks~. :oops:

Thanks in advance!! Cheers :D
limteckchai
Junior Developer
Junior Developer
 
Posts: 24
Joined: Mon Jun 28, 2010 3:33 am

Top
Previous

Return to Novice Tutorials

Who is online

Users browsing this forum: Google Adsense [Bot] and 6 guests