TabView in Java [closed] - java

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am developing an app and I wanted to have a TabView for it. Although I've been looking around and around and I can't find any help for it in Java code. All of the help is in XML. My university only taught us the Java portion. Does anybody have a good guide or some good help that I can use to make TabView in java code?

I am developing an app and I wanted to have a TabView for it.
There is no TabView in Android.
Although I've been looking around and around and I can't find any help for it in Java code.
Here are the JavaDocs for TabHost and the JavaDocs for TabWidget.
All of the help is in XML.
There is no XML shown on either of the JavaDocs pages.
Most programmers would use layout XML resources for their GUI development, for ease of development and maintenance, particularly for supporting different screen sizes and orientations. You can certainly create these objects via their constructors, then use addView() to stitch them together. However, since very few developers would use this technique, it is unlikely that you will find much sample code for doing it this way.
My university only taught us the Java portion.
Anyone teaching Android application development without teaching layout XML resources needs to be fired for incompetence. When I teach Android application development, layout XML resources show up in the second or third hour of lecture, and it used to be earlier than that.
Does anybody have a good guide or some good help that I can use to make TabView in java code?
You would be better served taking the time to learn layout XML resources on your own. There are many, many resources for doing this, and it will help you better understand all the rest of the sample code that resides on the Android developer site and elsewhere.

Related

Getting started with Android Development basics [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Is there a good tutorial on the net somewhere that delineates the steps needed to get started programming an Android application from square one on windows 7? I am looking to basically hit a Web Service and display it on a phone as a view of sorts (Kind of using the MVC design pattern). I have downloaded eclipse and I have downloaded the Android SDK. But I think I am missing some things. In addition, do you think it is easier to develop Android apps on Linux or Windows? I developed in java during college, and I just thought it was easier doing it on Java then on windows. Let me know what you think.
I can't post a comment so I will have to write a answer to your question, although I doubt this is a typical answer as well as a typical question for StackOverflow.
I've read a lot on Android before starting programming for it, I can hint you on what resources I found the best to make your way into Android development.
Concerning books I found these to be the best when starting:
Android Recipes: A Problem-Solution Approach
Beginning Android 2
More recently to deal with more advanced topics I've found The Busy Coder's Guide to Android Development to be a really helpful resource.
You also have some really helpful resources online, specially the android development website. Start from the DevGuide and it will give you a clear big picture on the subject. The other section of the android dev website that you can take advantage of is the tutorial section. I would recommend you to the these, specially the first ones as they are very basic.
I'm assuming that you have a basic understanding of Java by not referencing you any Java learning resources.

java programming style vs Objective c [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am a iOS programmer so confident with objective c. I have also naturally programmed in Java. I am branching out into android programming and was wondering about the different programming approaches.
I have read in many different articles that there are significant differences between programming in a Java style and a Objective c/ c++ style. Whilst I know the languages are different. I was wondering if there are any Java/Android/iOS programmers that could give any pointers for someone branching out in android?
Cheers
Yes, definetly, both architecture iPhone and android are very different, but there are many similarities also, you should start with simiilarites, which would increase your learning speed, later as need arise, you can learn differences also.
Like iOS application have AppDelegate as a single class, existed lifetime of the application. In android, though not mandatory but you can have an application class, which can work similarly as AppDelegate. In iOS screens are designed in nib files, android also has a gui tool to design screens. But its not simply drag-drop and you also supposed to understand screen size variety in android.
Android does not follow, MVC architecture fully, and it makes a big difference, but if you still want to follow MVC framework, there is an open source api, on google code, by whivh you can implement mvvc architecture in android applications.

Is JGoodies a good framework to use? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've been looking into JGoodies for the last two hours and i don't seem to find a lot of good documentation on the subject. Not even on the JGoodies website. So it made me wondering of JGoodies is a good framework to use to model your gui?
Is there some good documentation on how to get started I haven't found yet?
Thanks in advance.
Well, i don't think it is complicated at all, considering the Head Aches while using other standard layouts from swing.
Keep these tips in mind
JGoodies forms is a powerful layout, what you envision is what you get, unlike others
http://www.jgoodies.com/downloads/articles-and-presentations/ kindly read articles here, 2hours of your research isn't enough.
When using JGoodies forms enable debug mode, to see what exactly you are doing.
Learning curve for most foundation classes are steep it will take time change the gear.
I'm just on a project that uses JGoodies for the UI and the only thing I can say is that it is very complicated and hard to use. I'm sure it's a powerful framework, but the documentation is not very well described and the framework complexity is just to hard to understand. I'm considering to switch to another framework...
It's just that it's not worth the pain, you wont get anything special from it, except headache..
I assume you're referring to JGoodies Binding (and optionally Validation). Yes, it's a good framework. However, there's definitely a learning curve, and it's more suited for larger projects where you need to keep your code modular.
To learn more:
Martin Fowler on the Presentation Model architecture.
Another article that's helpful for understanding Presentation Model.
Tutorial code samples in the older versions in the download archive (unzip, browse to src/tutorial). Documentation is also included in the packages.
Read the articles on the JGoodies site, as alfadx mentioned.
As for JGoodies FormLayout, it's better than the default layout managers, but I think MiG Layout is better. I recommend WindowBuilder for GUI work.

web development using java [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am learning java(J2EE) programming language these days. I wants to create a web-site having features where user can login, logout, post there comment and other features with time using java technology just as a hobby project.
But I don't have any idea from where to begin. It would be very helpful if some one just give some starting guidelines and tools needed.
Thanks
If this is just for fun with no deadline, then I encourage you to go as low-level as you can by making servlets and jsp pages, and getting them to work with tomcat. Once you can get some hello world pages working, then start learning about other complementary technologies like Struts, and Hibernate, and the problems that they solve and the complexity that they introduce. Try to master one technology at a time (e.g. servlets) before going on to the next one. This way you can understand how technologies relate to each other and can avoid trying to climb multiple learning curves simultaneously.
You can have a look at this tutorial. It pretty much explains everything that you need to know to build a website. Hope it might be of your help.
You could start by learning to use the reference web framework which is JavaServerFaces.
Take a look here.
Hope it helps.
Why not try GWT ?
It's a top-level web toolkit (based on RPC), full-Java, easy to learn, intuitive, and well-documented.
Try this tutorial http://netbeans.org/kb/docs/javaee/ecommerce/intro.html
When I was learning J2EE this tutorial was very helpful
This is good video tutorial http://www.vtc.com/products/J2EE-Java-2-Enterprise-Edition-tutorials.htm
Look at this Learning Trail for Java Web Development?

Java Book or Website (like Cplusplus.com) for C++ programmers to learn java very fast [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am looking for a book which teaches Java very fast. Basically I am a C++ programmer and do not need to know each and every aspect of programming. I am learning java for android apps development. A lot of books like thinking in Java, learning java and others suggested are pretty big and I want something small to get me going.
A website like http://www.cplusplus.com/doc/tutorial/ for java also can be helpful. please answer ASAP.
I love to think of the javadoc as the equivalent of cplusplus.com. The comments on standard classes are much more detailed than stl comments are (and the code is a lot easier to read, too)
Personally I'd recommend just reading a tiny bit of literature and then using an IDE that provides really quick access to code and comments for any callable method (almost all do if you link sources and javadoc). Usually they provide greate usage exmaples and the code itself teaches best practices and proper design.
Unlinke for C / C++ I don't think using an IDE is much of a problem. Javac hides everything anyway and there is not much to know about something like linking unless you use a lot of libraries and enter "jar hell". But even then there is nothing to be learned by compiling from the shell that might help.
Build scripts to use will most probably ant or maven and both are a lot more high-level than Makefiles. While I'd really recommend never to rely on an IDE for C++, I'd totally do so for java.
What about Beginning Android 3 (http://www.apress.com/9781430232971)
It has 612 Pages but it really focuses on Android development and not really on programming basics.
Check the Table of Contents on that page and you will see.
Head First Java is a great book and very easy to read and understand. It got lots of graphics to support the reading. I find it perfect for beginners.
For pure java - Thinking in java (its nicely written but quite big (+1000pages))
For Android check notepad tutorial on official android page its good for beggining http://developer.android.com/resources/tutorials/notepad/index.html

Categories

Resources