[Q] ListView without scrolling - Android Software Development

Is it possible to create a ListView that only displays all of it's content and does not try to be scrollable ?
I need ListViews, because it's the most convenient solution for my app. I have 3 types of content and each has it's own layout style, own context menus and some of them have on click listeners in one case and context menus in other cases. I have a pretty elegant and sexy solution for this, but it only works with ListViews.
The problem is that I want to have all 3 types of content on one screen that will scroll as ONE, but with multiple list views it scrolls as a whole and all lists scroll independently, which makes my app an unusable piece of ****e.
Please only suggest solutions that use list views.
One that I could think of is to create 3 different screens with flip view or maybe some kind of tab view. Or maybe both and let the user choose. What do you think ?

2 things (as I know you're a good programmer, but still kind of "new") LOL
1. Maybe you can @Override the onTouch methods and disable the scroll
2. Don't EVER get so stuck on an interface (or a method, or a piece of code) that you get into a mindset of "It HAS to be this way". Many hours/days I have wasted with this kind of thinking and sometimes, you just have to give-up and start over.
I know you're in a time constraint, but I also find if I leave a problem for a day or two and come back to it, a solution presents itself.

I already put it aside a few days ago, but I'll have to deal with it soon. Actually I just came up with the tab view idea while writing this post and it seems like a good solution (even better than the original with all 3 lists on one screen).

SOLVED
I implemented a tab layout. Like a BAWSSS.

Related

New Applauncher idea

http://cre.ations.net/creation/dock
I was Digg'ing when I saw this little app. Can we do it so that it works on PPC and with any app and any launch icon (png preferably?)
The source code is in there... so this should be easy?
dferreira said:
http://cre.ations.net/creation/dock
I was Digg'ing when I saw this little app. Can we do it so that it works on PPC and with any app and any launch icon (png preferably?)
The source code is in there... so this should be easy?
Click to expand...
Click to collapse
Nice !!!
Notice how fast it goes and no lagging
i wish someone can create a today plugin like this.. or a window based launcher.. i hate full screen apps..
it's possible to download it for my htc elf (wm06)
naillik said:
it's possible to download it for my htc elf (wm06)
Click to expand...
Click to collapse
no, it won't work in any device except the iphone..
we are here to request some very good hearted and generous WM programmer to maybe find some time to create a similar application..
all other platforms are making very big leaps in terms of Menu Handling and Graphic User Interfaces.. these features makes or breaks a Platform's sales.. especially to those who are thinking of switching...
too bad Windows Mobile's base GUI is a decade behind the others..
so pleaaase.. pretty please? can someone look into making this? i may sound pathetic but if this is all i can do to make this slick launcher come to WM doorsteps and i'm willing to do more..
ytsejam_ said:
no, it won't work in any device except the iphone..
we are here to request some very good hearted and generous WM programmer to maybe find some time to create a similar application..
all other platforms are making very big leaps in terms of Menu Handling and Graphic User Interfaces.. these features makes or breaks a Platform's sales.. especially to those who are thinking of switching...
too bad Windows Mobile's base GUI is a decade behind the others..
so pleaaase.. pretty please? can someone look into making this? i may sound pathetic but if this is all i can do to make this slick launcher come to WM doorsteps and i'm willing to do more..
Click to expand...
Click to collapse
On the other side, if it's just eyecandy, it's almost worthless.
I'm not convinced that this kind of GUI is really useful: one precise tap to move, maybe more, then on tap to launch. It appears to me that it's more efficient that one tap bring a menu, or like in PCM keyboard, one tap, 250ms later you can choose the right option.
tene said:
On the other side, if it's just eyecandy, it's almost worthless.
I'm not convinced that this kind of GUI is really useful: one precise tap to move, maybe more, then on tap to launch. It appears to me that it's more efficient that one tap bring a menu, or like in PCM keyboard, one tap, 250ms later you can choose the right option.
Click to expand...
Click to collapse
yes that's what i am aiming at.. maybe we could have a launcher icon that when you tap and hold, brings up a new set of icons, etc.. IMHO this is better that having bunch of little non-appealing tabs to click on, then click again to launch an app..
also, this GUI is more than of a today screen material for it displays a lot of shortcuts in one line, meaning more space left on today screen real estate.. so if you have a lot of shortcuts on your today screen, you don't have to fill the entire screen with icons or reduce the icon size to fit em all.. don't we all hate scroll bars on our today screen? with this, all you need to do is do a horizontal scroll (or maybe move D-pad left or right) to focus the offscreen shortcuts.. far better than tabbed launchers IMHO.. besides, finger scrolling is now easy to do and common to most new Devices due to Touch based ROMS..
Have you seen the MRU (Most Recent Apps) plugin on our WM Smartphones? this is the same concept, except that it launches specific shortcuts instead of shuffled apps, and navigation is controlled by a swipe movement..
Menu-based Launcher already exists
If you want to press a button to bring up a menu of icons, that already exists. Check out WM5NewMenu by saman-cz (this forum). It started off as a shortcut to add a new appointment or contact, but evolved into a program launcher with some really neat capability like nested menus and shortcuts for speeddial. Doesn't have icons though, just shortcut name (prob keeps the memory smaller).
http://forum.xda-developers.com/showthread.php?t=255580
I'd still be interested in a horizontal scroller for frequently used apps to replace cLaunch on the today screen if anyone can take that on...
tene said:
On the other side, if it's just eyecandy, it's almost worthless.
I'm not convinced that this kind of GUI is really useful: one precise tap to move, maybe more, then on tap to launch. It appears to me that it's more efficient that one tap bring a menu, or like in PCM keyboard, one tap, 250ms later you can choose the right option.
Click to expand...
Click to collapse
Tene I think your PocketCM is the general idea, instead of contact list and vertical scrolling you could make it shortcut list and horizontal scrolling.
Hello,
I lwould like to have an AppLauncher similar to the MacOSX bar.
in bottom U have small icons, if U are hove on one it becomes bigger and on releasing it, a Menu slides in the screen.
Im already trying to code such an app, in native C++.
But for a first Release ( just showing the GUI ) it' ll takes still a little time.
I have not so much in moment ( studying?!, moving into another house... ), also its my first Programm using the winapi....
So wish me luck....

converter program (finger friendly) need suggestions

Hi wanted to create my first program..
right now Im trying to make a unit converter that is finger friendly..
so far I've tested it and here is what I have so far..
any suggestions? regarding the buttons positions, the interface, etc?
thanks
Hi Providense,
Looks good so far.
Do you have a development schedule as to what it will convert?
Keep it up.
John
Provedence,
It seems that some people like to have a configuration facility.
So perhaps some suggestions:-
Favorites so that the list can be tailored to favorites for that person to save a more compact list of 'things to convert'
I would be happy to have any theme for now but cooks may prefer to add there own theme.
I have used this type of function with calculator type programs but they can become unweildy so one that is specific would be usefull.
Thanks
John
thanks Johny1fin
as of now these are the things i've done
Temperature:
degree Celsius
degree Fahreheit
degree Rankine
degree Reaumur
kelvin
Acceleration: (still doing it right now)
centigal
centimeter/square second
decigal
decimeter/square second
dekameter/square second
foot/square second
g-unit(G)
gal
galileo
gn
grav
hectometer/square second
inch/square second
kilometer/hour second
kilomter/square second
meter/square second
mile/hour minute
mile/hour second
mile/square second
milligal
millimeter/square second
still a long way to go. But the Acceleration should be done by today.
Then I'll add Area, Date/Time and etc
I like the idea of favorites. I'll see if i can implement that. Im still a beginner at programming. Using VB.net 2003 right now
oh by the way. Here's the main menu, where I will put all the buttons
providence said:
Hi wanted to create my first program..
right now Im trying to make a unit converter that is finger friendly..
so far I've tested it and here is what I have so far..
any suggestions? regarding the buttons positions, the interface, etc?
thanks
Click to expand...
Click to collapse
Providence,
It may be a limitation of the APIs but could the vertical scroll buttons be next to each other horizontally rather than vertically as this may produce larger buttons?
John
Look nice.. however, on the finger friendly issue, you may want to avoid the scroll list (on your first screenshot) and have another screen for the choice of (say) different temperature units. Something like, making a screen (of your second shot) for temperature units. If you get what i'm trying to say
thanks for the feedbacks i've changed how the scrolling works. Now im using a custom button for that.
Looking good providence
I am not sure if you like this idea, but I think it will be more useful if you can add:
- Currency converter
- Currency quick view (to view several currencies at once)
There is an example of a very nice and complete project with source code here:
http://www.codeproject.com/netcf/PocketCurrency.asp
Add option to have automatic currency update as well
[ x ] Update when connected to ActiveSync
[ x ] Automatic update every X hours
hi, well the main idea was to create a finger based Unit conversion program. To add Currency Converter would be a challenge for myself.
Since first of all, Currency changes daily, so there must be a way to update it. Secondly, im still learning how to program by self teaching myself on my free time.
By the way, Here's the latest screenshot of the program.
I fixed the buttons so its easier to use.
unfortunately, this will only work on PDAphones and not on smartphones. Since you'll need to use the touch screen as input method.
Here is an idea, as mentioned by one of the post above, instead of stacking your scroll button up and down, it may save you that more space if you were to stack them left and right.
From what it seems, the < and > , are buttons, which you use it to 'affect' your lists. If you were to (example) sandwish your list in between these two buttons, you would save like another 2 button height. Example.
Currently, you have the layout
Code:
. item1 <
. item2
. item3 >
. item4
if you can just do this (which is possible in VC, not sure about VB), instead
Code:
< .item1 >
.item2
So, instead of 4 item height, you are now only left with 2 items height.
ahh i see..
I tried doing it
< item 1 >
item 2
but i find it harder to navigate, since when you go back you have to drag your finger across the other side of the screen. And while doing that, you are blocking the item list with your finger.
I dont need to save space, i think i got everything in there..
by the way, here's the test i took
then again, if i put them on the sides, it makes easier for those who are left handed as well
The spaces you save, may able you to bloat up the keypad below.. from what it seems, now they are on the 'flat' side of it.
If you think the "left-list-right" is not very finger friendly, you can try the "list-left-right"? That is
.item1 < >
.item2
Hi thanks for the suggestions..
right now here is what i have, and will probably be the final change in the button positioning..
i got big fingers and I can use them without stylus.
Should have a pre-alpha version ready soon. As of now I've done temperatures and acceleration.
Will add more soon

Slide2Gesture?

Maybe this has been discussed before but no one tried to develop the idea.
well instead of S2U, i prefer to have a gesture that i choose to unlock the device... so no one can unlock it other than I... if im dont have these programming skills
anyone is able to do it?! it can be a modified version of A_C's S2U2...
karim099 said:
Maybe this has been discussed before but no one tried to develop the idea.
well instead of S2U, i prefer to have a gesture that i choose to unlock the device... so no one can unlock it other than I... if im dont have these programming skills
anyone is able to do it?! it can be a modified version of A_C's S2U2...
Click to expand...
Click to collapse
Hahaha! Shouldn't that been called Gesture2Unlock?
johanromijn said:
Hahaha! Shouldn't that been called Gesture2Unlock?
Click to expand...
Click to collapse
whatever G2U ...
I like the idea of this
Cool thinkin...
No passworded needed, just a gesture.
Someone needs to copy the Microsoft Origami thingy where you unlock by tapping a certain sequence on a picture of your choice, with more security gained by moving to a smaller grid size.
ell, honestly, if you delete the images from your S2U2 directory, that should accomplish the same thing. You would just have to remember where to slide from. Or use your DPAD.
lawmangrant, i think you're missing a handy side-effect of having G2U: you can still view the today screen. I imagine that you can view the today screen, but not be able to do anything until you gesture. If anyone uses PointUI, it's kinda like the builtin lock. You see the main screen until you tap, upon which the lock screen comes up. It's pretty nice (personally use s2u2 instead) but G2U has potential uses.
It's a good idea, especially if you don't have the instructions right on the screen, it's a good locker to keep people out of your phone.
It should be Gesture2Unlock (or G2U for short) and it was discussed in the Kaiser forum here:
http://forum.xda-developers.com/showthread.php?t=362231&highlight=gesture
A_C, the author or S2U2 was contacted, but he didn't think he could do it, as you can see from the thread...
I still like the idea.
I have a program in mind that does exactly what you want...
hm.. not exactly...
you have to tap to 4 or 5 different points on your touchscreen to unlock your phone...
but I don´t know the name at the moment....
I´ll try to find it....
This is a great idea.......
strange !!! walking down the street today i had this exact thought
may be some day!!!!
This was good, but doesnt work anymore...
http://softava.com/archive/pp/otp_features.html#
interesting. Would be very similair to taking a biometric of a persons signature. presumably tho one wouldn't want the signature to be drawn as you gesture2unlock, but instead "draw" onto an invisible notepad.
its no easy process (have researched biometrics) as the important part if the learning/recognition algorythm which will probably involve some neural network coding (ouch but fun).
What you need is something like this!!!
http://bip.golana.pub.ro/~mmihai/sign/index.html.
I've emailed Mihail about this (the author), pointing him to this post. I will post his reply as soon as it arrives.
Here's my email:
Dear Mihail,
I came across your website whilst looking for clues as to how we might implement a fellow forum contributor’s idea on xda-developers.com (here http://forum.xda-developers.com/showthread.php?t=370632&page=2)
His idea was to unlock a pda using a gesture on the touch screen. To my mind that mean signature which lead me to search for some algorithms on the net. Your implementation was particularly interesting as it seems quick to operate, has low memory footprint and could work on a low spec machine (such are many pda’s).
I was wondering if you implemented such a system, or if the algorithm you have developed has been release for others to use, commercially or non-profit.
Your input into the discussion would be highly valuable.
Best wishes
Sean
lawmangrant said:
ell, honestly, if you delete the images from your S2U2 directory, that should accomplish the same thing. You would just have to remember where to slide from. Or use your DPAD.
Click to expand...
Click to collapse
Azimuth21 said:
lawmangrant, i think you're missing a handy side-effect of having G2U: you can still view the today screen. I imagine that you can view the today screen, but not be able to do anything until you gesture. If anyone uses PointUI, it's kinda like the builtin lock. You see the main screen until you tap, upon which the lock screen comes up. It's pretty nice (personally use s2u2 instead) but G2U has potential uses.
Click to expand...
Click to collapse
I see pluses and minuses to this approach as opposed to using s2u2 with the deleted slide graphics.
If you want true privacy when someone picks up your phone, you wouldn't really want them to see your today screen especially if it contains appointment and tasks info, etc. That's where I think using a modified s2u2 would be better.
If you don't have appointment info on your screen or nothing that is "dynamic" or constantly changing except the clock, then you could skin s2u2 to "match" your today screen and place the clock exactly where it is on your today screen. For example if you have HTC home as your today screen, you can skin s2u2 clock to match the position and font as HTC home and then take a screenshot and modify it to a wallpaper, cutting out the clock par. The tricky part is the missed call and sms counter. S2u2 has the potential to disply that info but to replicate that look of htc home would require major changes, probably requiring A_C's help?
Of course if our devices had the horsepower, we could modify s2u2 to just take the screenshot of the today screen and load it as a wallpaper everytime it starts up, maybe a mortscript, but it would probably would be too slow realistically.
Im glad that u liked the idea... A_C said that he doesnt have the skills to do it.. but im sure he can help...
i don't mind if the appointments info appears on the screen, but i prefer no one can access all other applications... typing a password takes time... especially when activated side by side with S2U2...
Why a signature recognition? How about a gesture system like the one found in firefox plugins:
https://addons.mozilla.org/pl/firefox/addon/39
https://addons.mozilla.org/pl/firefox/addon/12
They're based on eight directions - four sideways and four diagonal.
Directions are defined as:
U - up
D - down
L - left
R - right
7 - up/left
9 - up/right
1 - down/left
3 - down/right
So to program a gesture you just need to input the directions of strokes it consists of.
For example URDL would mean drawing a rectangle starting from bottom left, and then going up, right, down, left. You can also describe more complicated gestures that way - R2D1L7U9R would mean drawing a circle starting from its top point and moving right.
In my opinion biometric algorithms don't make much sense, since they would need a styluys to work - try to draw your signature using a finger
Simplified gestures should work with finger as well as stylus, and should still provide more than enough security.
Great minds think alike.
What I wanted was a way to use touch to unlock the device very easily without it being easy to copy. I also wanted data to be safe should the device be reset.
I thought of using the standard S2U and just using a skin which didn't make it clear how to unlock so as to deter casual snoops.
There must be a way to do this! If no-one comes up with something soon then I'll dust off my programming books and give it a try.
the new Ftouch Flo a.k.a FtouchSL has some new gesturing features ( like corners )..maybe this would be useful

[PRJ][21.09.2008]The Manila Interface of your dream PnP (pen-and-paper) ;)

Hello guys!
I think many of us came to the thinking that, though TouchFLO 3D is great UI, we should make something alternate, something that better fits our needs. And now, i think i'm ready to create one, but first we should decide how should it look like and how should it operate.
So, i propose a kind of "brainstorming contest" where you decide about the look of a new UI. But to avoid this turning into an annoying feature request list ("more tasks on today! please! please! please!" ), here are the rules:
- NO text-only suggestions - every post s/b illustrated with pen-and-paper drawing
- NO screenshots or photoshop cooks - only hand-drawings or something that look like em (yes, you can use digitizer tablet )
- drawings are NOT required to be professional - just something to illustrate you thoughts
- you are NOT required to develop the complete UI - you may just post suggestions about UI parts, but preferred things are unique navigation idea (try to forget about tabs), apps\tabs convergence, brand new useful apps/tabs
- best contributors ideas (possible with Manila API) will be implemented and their names will be listed in "About..." screen
Posts that violate rules (even best of them), will be ignored.
That's it.
maybe this is too open ended.. do you haev some ideas of your own that you might want to put forward?
omniwolf said:
maybe this is too open ended.. do you haev some ideas of your own that you might want to put forward?
Click to expand...
Click to collapse
I'm already implementing ideas of my own
I just wanted to know what do folks think/dream about
show us whatcha go then!
I think D-MAN666 doesn't want to influence people, this is a brainstorming If he starts with his idea, it is probable that nobody will post a completely different concept...
This might be a useful start for interface design:
http://forum.xda-developers.com/showthread.php?t=397220
One thing I would love to see is a radial menu:
http://en.wikipedia.org/wiki/Pie_menu
Similar to tap-and-hold for a context menu, but instead of a list popping up, a radial menu appears. You could fit 8-12 options around the circle, which would cover TF3d's pages.
So in usage, tap for the popup radial menu, then:
- swipe up for Contacts
- swipe right for Music
- swipe down for Home
- etc
IMO, it's much easier to be accurate in swiping at different angles/directions than it is to be precise with the default TF3d slider tabs, so you could really speed your way through the interface. The same could apply elsewhere: tap and hold a contact, then swipe up to call, left to SMS, right to email, etc.
For other thoughts, here's a read on interface optimization (for the technically inclined):
http://en.wikipedia.org/wiki/Fitts's_law
And maybe later if I'm bored I'll draw some mockups
http://microsoft.blognewschannel.co...bile-7-to-focus-on-touch-and-motion-gestures/
sorry for breaking the rules, but everyone else is lol...thats a link to the WM7 concept design...along with theoretical gestures...i really digg the battery bar on the bottom and the reception bar...
Ill be the first then...
A quick drawing i knocked up... manila stays very much the same but basicaly show page navigation on the manila both horizontal and vertical..
I hope its clear enough
2 ideas here
I am going to break the rules since I'ma t work and can't really be seen drawing lol.
Here they are:
- Make use of the touch capacitative ability of the the buttons panel. It's made up of three touch panels. Maybe a swipe from left to right to unlock and right to left to lock.
- Display applications within tabs. Ex: Being able to display Icontact when sliding to the contact tab.
And for UI inspiration, I would look here:
http://www.throttlelauncher.com/portal/setupsaskins/45-091setups/69-new-minimal-flow-theme
Ok, here's my concept
The general idea is to keep most of manilla look'n feel, just remove useless animations/transitions, and change the home screen.
Changes : on the right side of the screen, a scrollbar similar to the "contacts" one appears. It controls the content of the box under the clock.
On the left, a button to maximize (take the place of the clock) the box, and a fast vibrator/ring permutation button.
So, by scrolling the bar, the content of the box changes, could be call log, contacts, fast program launcher, music player, and so on.
The idea is to keep complex functionalities (camera, tv, etc) needing full screen accessible by the manilla bar, and quick&fast features such as logs, sms, player accessible on the main screen.
Nice idea, man
Hi there,
just a thought on a possible gui for the UI, instead of tabs, layers (don't know if that's possible, but it would be very cool imho)
you could have multiple layers, and have the layers in the backgound fade out and become smaller (perspective) and use a swipe up or down to navigate
Anything happening on here?
Just wondering
SinnerNL said:
Hi there,
just a thought on a possible gui for the UI, instead of tabs, layers (don't know if that's possible, but it would be very cool imho)
you could have multiple layers, and have the layers in the backgound fade out and become smaller (perspective) and use a swipe up or down to navigate
Click to expand...
Click to collapse
great idea!
like the game u can get on Playstation 3... where u 'swim' around collecting stuff and going thru lvls....
I'm thinking that the Ximoon idea is quite good but one thing that should be included is landscape option and I'm not talking about TP version but one with the same functions like the portrait one
I like the idea of the circular menus...
well first of all thanks to you guys you are doing awsome work and its always funn spendin my free time in your forums
now to my idea
does anybody know the film : the lawnmower man? theres one scene almost at the end of the film where he tries to escape to the internet i think the idea is quite amazing movn in a bowl and havin litle windows to select.
what do ya think
this is the link to the movie scene just skip it forward to about 5 minutes
Edit: sry forgot the link :http://www.youtube.com/watch?v=doAnB5_eDnw&feature=related

[Q] Confused with coding for layout.

Hi there, long time lurker first time poster here!
Slowly getting into android but i really cant get my head around the layouts. I would love to be able to use the AbsoluteLayouts but that isn't a good idea anymore.
Basically after some work i have managed to get a gallery working at the top of the screen. I want my app to look like this in essence: Ok can't post outside links at the moment, fair enough. Think of the android market. Icons to the left and a bit of information for each app next to it and a buy button on the right.
However i have no idea where to start off. Since i have the gallery already i have no idea how i can add things underneath it without screwing anything up.
Can anyone help? Thanks in advance!
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
RED_ said:
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
Click to expand...
Click to collapse
Are you using a List View? Looks like one.
How do you build up your content for the list?
In my view the best solution for your problem would be:
- Use a ListView
- Build your own ListAdapter (drived from BaseAdapter for example)
The Adapter builds the view for each item (or recycles an already built up view, the ListView handles that).
The view for each item would be a horizontal oriented LinearLayout with two items (the image and the text) and the adapter fills the layout with the information of the current item.
For better layout handling I would define the layout for the items in an extra xml file and use the LayoutInflater-Service inside the Adapter (if a view has to be built).
Hope this helps and points into a helpful direction
Devmil
Thanks for replying, managed to find a solution in the end without using ListView. Thought about moving to a RelativeLayout as its more effcient but as my app is very small anyway in the end i've just gone and used nested LinearLayouts with a textview and imageview in each one.
Ridiculously simple when you look back on it.
I was actually going to use this tutorial which does what you explained i think: http://www.anddev.org/iconified_textlist_-_the_making_of-t97.html but it left me with a force close error so that went out the window.

Categories

Resources