Learn Android Tutorial 1.12- Setup a More Advanced XML

preview_player
Показать описание
In this Android tutorial you will:
-Learn about the weight set up in XML
-set up the gravity as well
-some other stuff that is cool that i don't really feel like typing right now
-subscribe
-Thumbs up this video ;)

This video is the 13th in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C++, OpenGL, or as a matter of fact, any other programming language.

If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

follow me on twitter @mybringback

Рекомендации по теме
Комментарии
Автор

I know I'm late to the game, but Travis these are the best tutorials I have seen so far. Thanks for this!

rstr
Автор

There isn't an EditText option in the Form Widgets folder in my Eclipse, but I found that Plain Text inside the Text Fields folder worked almost exactly the same.

BuildSomethingUseful
Автор

@christagoh I believe the editText would be in the Text Field category, but I can't be too positive, I don't have eclipse installed on this computer :(

mybringback
Автор

Hi Travis! Love your tutorials! How come you've got these extras like EditText. I don't have it eather... Is there an option in Eclipse on did I install the wrong version of Eclipse. I installed it before finding your tutorials. Thanks a million! :)

sofiaengvall
Автор

with everyone with the edit text thing Travis is using an older version of eclipse and the ADT plugin so edit text doesn't look the same it looks like a text field and it is under text fields and it is called abc

connorblock
Автор

Note to new viewers: Use match_parent instead of fill_parent, as it's got replaced since API 8. Both will still work though.

warba
Автор

Wheres the source code? Awesome tutorials btw! Im gonna watch this series to the end. Hopefully you make more android tuts!

STMaraj
Автор

@sofiaengvall: I asked the same question on the forum and this was the answer:

"Travis made the turtorial using a older version of Android (I assume you're using 4.0 like I am).

As you get further along the tutorials you'll notice that some stuff that you could do in older versions of Android can no longer be done in version 4.0"

Some stuff is called different or at a different place, annoying but it keeps me finding things myself and not only copy Travis. works for me!

TheDubbellu
Автор

Go to Text Fields > Plain Text, then in the xml it shows up as EditText, thanks that works, if it does, thumbs up so people can see! :)

SuperJoey
Автор

@sofiaengvall You can code it as you see in 0:54, just write "<EditText android:text="What you want" android:id="@+id/Whatyouwant" I think that would work.

bakeandmakeacake
Автор

Hey Travis, I cant fine EditText in my form widgets, not AutocompleteTextView and MultiAutocompleteTextview. how can i get those... ?

christagoh
Автор

Apparently there is a bug with the new Api 16, when you drag and drop the Plain Text you will get an error showing up. Until it get fixed, one can use this line to bypass the error.

KimDouglassMinistry
Автор

Use a Plain Text item from the Text Fields Category

aidanium
Автор

we are supposed to use match_parent instead of fill parent (just a wordsup)

fabriziorl
Автор

@mybringback Hi again, i already check that category. Even in this video, it shows that EditText is in Form Widgets Category. :-(

christagoh
Автор

it might not be working in older versions of sdk

jaikiratsinghseth
Автор

I have the same problem.
Can anyone suggest please a solution?

Thanks

YouWiNeverKnow
Автор

why are you using code?!
you can change stuff like gravity and basicly anything you did here, from the graphical view

adirmugrabi
Автор

the first 5 minutes is total useless. u can just drag the buttons to the center and it automaticly adds this

Skillzr
Автор

How is it useless? He's trying to teach you XML, the app is not that important.

LosEagle
join shbcf.ru