Answer the question
In order to leave comments, you need to log in
What are some books on GUI for Android applications in Java (without XML)?
Probably no one likes this approach, but I'm still a beginner, and I would like to learn only Java first. I think Java is quite suitable for small applications.
Please advise books that explain the GUI for Androyd using Java, otherwise I have XML in all books.
Answer the question
In order to leave comments, you need to log in
Why do you need to "learn XML" while you are a beginner?
Eclipse has a "fine enough" visual editor for these XMLs. Everything is quite visual, like in Delphi you add elements to the form with the mouse and you don’t need to poke around in XML.
For a start, this is enough for you. I've been picking android for a year, and I rarely get into XML layouts (layout).
And decide if you want to learn Java, which is SE or EE or AndroidSDK, which intersects with the first two, only a heel or two of Java-based libraries?
Gui in "regular java" is drawn differently (and these packages are not in the android SDK), but in the AndroidSDK it is drawn differently. There is a fairly intelligible and normal technology, not as cool as in C ++\Qt, but quite tolerable) so I don’t understand your question or your fears ...
Go, learn, create hellowords and task-things (for some reason, many start with this) and don't be afraid of anything;)
Well, for example, this is how you can create 2 buttons in the layout, then add the layout to the activity via setContentView.
LinearLayout linearLayout = new LinearLayout(this);
linearLayout.setOrientation(LinearLayout.VERTICAL);
Button btn1=new Button(this);
btn1.setText("btn1!");
linearLayout.addView(btn1,new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT));
Button btn2=new Button(this);
btn2.setText("btn2!");
linearLayout.addView(btn2,new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question