Adding content to tabs! - java

I'm a complete noob at android and java and have just got going with it, I have just done the appwidget tutorial from google, have set up three tabs like they have and have some pretty icons to go with them.
Now I have no idea how to add content and hide other tabs when one is clicked etc, in fact I have no idea where to even start adding content. I have had a huge scroll on google to find not much, just a lot of people with the same problem.
If anyone could point me to a tutorial or give me a push in the right direction I would be very grateful, I'm hoping you Java/Android programmers are a little nicer than the c++ programmers I've dealt with on forums ;)
Thanks! si

As for my experience with TableView ( you meant them, didn't you?), you have to put data into them directly. I would advice to use the ListView, that is not so buggish as tableview and can be connected to a cursor from a DB table. It has a tutorial http://developer.android.com/resources/tutorials/views/hello-listview.html
BTW, tableview, if you insist on using it, has tutorial there, too

Related

Can't load all comments on a website because they're loading while scrolling (through a java web client)

I'm working on a java web scraper that someone else has written in a terrible way. It is very difficult to understand anything, and there is no comment at all. It is supposed to retrieve articles and their comments on different press websites.
My problem is that one of these website displays only 10 comments, and load more comments only if you scroll down. The point is that I need ALL the comments, not only the first ten, but I don't know how my web client could immitate a scroll down, or if there is any other and better way.
After some research, I've found that configuring a very high InnerHeight might resolve the problem, but I have no idea about how it works, and I don't even know if it can resolve my problem...
The website I am trying to scrape is :
https://www.lefigaro.fr/international/le-climat-se-tend-en-allemagne-face-aux-restrictions-anti-corona-20201025
To load the comments, you have to click on the blue button at the end of the page "LIRE LES COMMENTAIRES"
Can someone help ?
Thanks :) !

Scroll able Arc Menu android

we have got a requirement in our ongoing project where we need to show menu items in arc style at both upper space and lower space of the screen in reverse direction(will show you samples). i've tried to use some of the code from the demo of ArcMenu used in Path android application, but what i came up with is this:
This is not what i want to achieve but something like menus in following images.
I am trying to achieve this from last 4 to 5 days but not getting it right. if any one out there has done any research on such problem then please guide me.
any help would be greatly appreciated.
Make ListView in Circular
Follow this its working code. Code is provided by Samsung
may be it will workfor your issues
http://developer.samsung.com/android/samples/Circle-Launcher
That's quite a complicated task, especially since you want it to scroll while respecting its arc shape. There are probably no fixed answers for this, you'll have to manually create this type of interaction. Unless you have specific code examples of what you've tried and failed at, I don't think anyone can really help you here. Besides the technical difficulty, you could wonder if it is really a smart idea to have THAT many options in an already pretty unclear/overwhelming widget, that you can scroll to even more options. Maybe some design re-thinking is a better option.
Some examples though which could you get on the way would be here;
https://stackoverflow.com/questions/12072692/a-circular-layout-with-scrollable-contents-in-it

Continuous Image Marquee

I'm just curious if anyone knows the easiest solution for an image marquee in Android with clickable events, etc.
I've looked at a few various projects and flicked through the manual, but I can't seem to find anything appropriate.
I would like to create a scrolling image effect similar to the Expedia android application homepage. See https://play.google.com/store/apps/details?id=com.expedia.bookings&hl=en
What I've looked at so far :
FragmentActivity -- Scrolling seems jittery and would take a fair old amount of adapting to achieve what I want
HorizontalScrollView -- Limited scroll functionality (this would be perfect if I could
continiously loop the contents, but short of overriding the draw I can't see how it's possible)
GLSurfaceView -- So far this seems like it's the only viable solution, but it's gonna take me a while to implement all the functionality manually
Before I get cracking deep into the OpenGL route it would be of great help to know if there is something out there that can already do this.
If anyone could suggest anything it would be much appreciated!
Thanks

Slider in Android App

I'm working on a project that requires a button to only be pressed once a translucent screen has been slid up. This allows for access to the main button (Press Me, in the picture). I would like for the top screen to be translucent so a user can see the button behind it, but I would also like to have buttons (green buttons 1, 2, and 3) on the top screen. Are there any good tutorials on this? I have looked, but haven't found much that relates a whole lot. If you have any sugguestions please let me know. I'd also like to know how difficult this is since I'm new to Java/Android. Here's the illustration to give you a better idea of what I want:
This would work similar to how the iPhone has the screen that can be pulled down from the top, but this one is always down and can be moved upward. Let me know if you have any suggestions.
Thanks!
I have try this demo for My requirement and it helps me a lot: Android-Slider Demo
Just Try it for your purpose and it will surly help you.
Enjoy. :)
I have created something like you are trying to do. Sorry I can't post the code since it's part of the company I work for. However here is what I did.
I copied the SlidingDrawer.java source to my project and made sure it was first working as expected. I than started modifying it to slide from the top and not the bottom. Took me a little time but it was well worth the learning experience.
Good luck!

"Home Screen" like effect while switching between views on Android

I'm creating an application on android similar to that of a book. I would simply like to have the scrolling effect between views (not activities) similar to that of the home screen. Currently I am using a ViewFlipper and don't have the animation I would like, since the shift is sudden as opposed to following your finger.
I am aware that there are several opensource projects and classes being developed to achieve such a thing more easily for the individual programmer, but wondered if there was a way I may have overlooked to implement a homescreen-esque effect. An alternative which I have thought of using would be a TabView, with no label tabs being displayed above the content of the page, yet have not heavily looked into this option yet.
If anyone has encountered the same hurdle and has any ideas of how to overcome it, I will buy you a pizza! (Not really... I don't know your address) But I'd be very appreciative! :)
Thanks
I think you're looking for the ViewPager. It's part of the compatibility library.

Categories

Resources