![]() |
Unknown Maemo 5 Touch lists - How do we make these?
I'm trying to figure out how to make the list style below. Yerga suggested the use of GTK TreeView, which I tried, but sadly it doesn't come out anything like this. So we need to identify:
http://www.mobile-review.com/review/.../scr/scr33.jpg If we're going to make apps that include lists which arent just a big ladder of hildon buttons, we need to know what this is and how it's done. Any ideas? :confused: Edit: see also: http://www.mobile-review.com/review/...cts/cont04.jpg and http://www.mobile-review.com/review/...cts/cont08.jpg |
Re: Maemo 5 touch lists
I've been chatting to tigert in #maemo and he's narrowed it down to Hildon Touch List.. Now we/i/someone just have to find it in the reference manuals..
|
Re: Maemo 5 touch lists
Quote:
Read the details from the doc in the link, but essentially you want to use hildon_pannable_area_new() and put hildon_gtk_treeview_new() inside it. the list item layout is done as normal for gtktreeview. For more elaborate stuff, you use CustomCellRenderer. See opensource Maemo 5 apps on how to use it, or look up in gtktreeview documentation. |
Re: Maemo 5 touch lists
3 Attachment(s)
A example in Python code:
Code:
import hildon, gobject, gtk If you want put the images in a HildonTouchSelector, the code is a bit different than in the Treeview from the example. If you need it ask for it ;-) |
Re: Maemo 5 touch lists
In order to get the correct text style for the secondary text (the font size and the color - see the browser bookmarks screenshot above), you can use functions from this module (in Python; for C, there's hildon-helper.c in the Hildon source code):
http://repo.or.cz/w/gpodder.git?a=bl...rmntl/style.py An example of how I used this to get the correct style for a ListStore: http://repo.or.cz/w/gpodder.git?a=bl...frmntl/opml.py The final result can look like this: http://khan.thpinfo.com/~thp/images/...text-style.png |
Re: Maemo 5 touch lists
You guys are awesome! I'm going to try these out tonight and see if it works.
|
Re: Maemo 5 touch lists
Quote:
How do i turn output of "<span font_desc="Nokia Sans 18" foreground="<GdkColor at 0x9xx..." into Nicely-Formatted-Text-String? |
Re: Maemo 5 touch lists
The solution to this:
Code:
set Thanks! |
Re: Maemo 5 touch lists
Although I have dabbled in python, it's my first time playing with anything GTK/GUI related.
I have created and populated a treeview no problems - mostly thanks to the info above (thanks!). Are there any example of how to filter the treeview when the user types on the keyboard? Kind-of how the contacts list works. I hope its easy, as I am only just getting the hang of what I've done already! Cheers! |
Re: Maemo 5 touch lists
2 Attachment(s)
Quote:
- note symbol on the left showing the currently played track - track name + "\n" + artist - track duration I can show note symbol and track name/artist, but not duration. On the column showing the duration I was get a copy of track name/artist column's content. Why this happens? What I'm doing wrong? Code:
import hildon, gobject, gtk Attachment 7180 And here the note.png used by the code: Attachment 7181 |
All times are GMT. The time now is 21:00. |
vBulletin® Version 3.8.8