Android Studio App Development | Tabs for our App | Part 2

Android Studio App Development | Tabs for our App | Part 2


Hey Guys,
welcome to the second part of the Android Studio App Development Tutorials in Java.
Today we are adding a TabHost to our App and you will also see what we made so far.
Next time we will create the Contact List and our own Contact Class.

- Project Download -
http://www.intracode.org/downloads/contact%20manager%20project.rar

Intro Song:
Robot Koch - Hard To Find
http://www.amazon.com/Hard-To-Find/dp/B002TXL8K2-
https://www.youtube.com/watch?v=g9zFzKA2r5o
http://www.projectmooncircle.com
https://soundcloud.com/robot-koch
http://www.robotsdontsleep.com
Closed Caption:

what is gonna go this is Johnny here
fuckin youtube and welcome back to the
Android studio up development tutorials
and today we're just going to continue
with our contact manager app so what I
actually want to change right here is
the on tax change event because i was
kind of confused
yesterday because I was using I was used
to see sharp because i'm i'm actually is
your shop developer and I don't really
like each other but it was my bad i'm
really sorry that I messed this up but
now we're going to fix this
so we are going to use the side . said
enabled method but we're going to do
this slight difference so first I'm
gonna just basically make this a
negative statement right here and i was
just basically going to say where that
has named txt . gets texts and then this
is actually going to return and a
detachable so this would work so we have
to convert this to string so just to
string and then . trim
so we're basically just going to trim
all the white spaces in front row at the
end of the string mine now . is empty
just like that so if the text so this is
of course method chaining at its finest
and yeah so it's just going to be
enabled if the text in the name txt is
not equal to nothing so if there if
anyone enters anything in there which is
not a wide space or nothing at all then
it would just work fine
so this is what this code basically says
and i hope this is the kind of work
yeah i think this is better than before
a lot better actually but ok alright so
this is it for a hour on tax changement
or add know whatever it is and now we're
going to get back to the layout because
what I actually want to implement the
day is a tab you
now i'm going to do this by just turned
down here and i'm going to see the tap
house right here
I just going to drag and drop this in
here ok so now this is I get to be
looking quite bad actually so first I
have to actually put this below the
device screen right here so actually
yeah okay we can leave that in the
linear layout here but I'm gonna get to
this in a second
so first I actually have to make this
feel the parent here as well so we're
just going to do a full parent like that
I'm going to expend this right here and
you're going to see that there are quite
some lads in here so we have the tab
content right here and this is basically
the important part
so this one here is going to be linear
layout which is going to be vertical
we have to remember that so what we're
going to do I'm going to do orientation
and then you have to put this on
particle and I'm going to do this to all
tabs right here so just tap three and a
vertical just like this
ok and now actually I what I want to do
I want to put all these elements of the
first tab because the first tab is
actually going to be the kind of the
Creator tab so I'm just going to call
this creative tap right here change the
ID and then i'm going to go
yeah of course there's no text and we
have to actually fill these tabs
Parliament programmatically so I'm just
going to rid of the second tab because
we don't need that and this one here is
actually going to be the something like
the Creator
I don't know it's kind of the where it's
stored so I'm just google step
contact store
something like that hi there this is
probably way better name for that but I
don't know
and of course is tap create I'm sorry
because what I usually do is that that's
actually a better way than just student
creator tab because what this basically
says is that we are specifying what it
is first so in the in the auto
completion feature it's actually if you
typed a bit is going to list all tap
so we already know we want to tap so
this is all we have to list if you type
creator and we have something like the
context or tab then this is kind of list
as well which is not necessary in my
opinion so this is a way better way than
just yeah just reversing this order
okay um so now to get all these elements
in there we just the use shift and take
all these and we actually got to put all
of these into tap creator right here and
now we have all over
ok that's reversed interesting ok
uh-huh oh great
ok then let's not do that
that's amazing it really is it really is
i love it
ok so let's use this first then then
that and that i dont even no way that's
not working why is that we were seeing
that that's really make sense at all but
ok fine and owns so we just drag and
drop of course we can do this in the
accidental as well with them just going
to use it like that right now
ok so as you can see are now we have on
tap you right here
and of course what's different right now
is that this tab
it's not actually going to be set up now
this is actually got to be kind of
tricky to do so this is actually not
quite clear how to do this so we have to
go to the code and our the spider of
that but we have to add a tab house
right here so I'm just going to tab host
and then we have to report this
and i'm just going to call this tab host
equals 2 and then tab host find view by
dr dad ID . tabo's ok so now we have a
tab host and now to actually get started
with this
this is all the text change stuff i
think i'm just going to set up tap host
here
that's better right here I guess
tapos that set up this is the method
we're going to use and once it's set up
we actually going to need to add a tab
to the tab host
so you have to type tab host . tab spec
and then I'm just going to call this
taps back equals 2 tab host . you taps
back and now we have to add a tattoo
this
so we actually know what this is so the
first tab was I think the Creator so I'm
just going to add the Creator tag right
here
ok and now we can reforge the taps back
so taps back . set content which is the
first thing because the contents of
course our job ID . and then we need the
tab creator so this is going to be the
head of the content for our tab and now
we need the label or something that's
the set indicator
that's what it is right here and this
indicator basically says what the name
on it
so we're just going to call this creator
like that
ok and now we're just going to taps back
well we have anything I say okay that's
great so now you just have to do tapos .
add tab and then tap back now we're done
with this
all we have to do is actually for others
another time so I'm just going to go
ahead and copy this
put this right here and now we can reuse
the tasks but we don't actually have to
create another variable another object
and now this is of course not the
Creator this is the store
I don't know it's kind of the contact
book isn't it
okay I'm just cost context or whatever
it's horrible day my no let's call this
list that and that's a good idea
so just call this list and contact there
this is our contact list
ok that's the way better name for the
list and i'm going to change the idea
idea
i G
in contact stores now going to be the
was I talking about it was tab something
list
ok tablets that's kind of a pet name
because lists of course and we're going
to use of all we're going to use list
views
let me call this tab contact list ok and
now our guy ID'd a tap
contact list like that so now we got
that set up and all this should actually
work already so this is our of our tab
right here we got at a post added at of
course we are going to add some stuff to
the type contact list so we're going to
basically make a list of all the context
you're going to create here and whenever
the button is pressed right here we
actually going to make a message but
before we actually get to that i'm
actually going to start the emulator and
i'm going to show you the
yeah what we made so far so I'll be
right back okay so now we can just
ok so this is our android device right
here and just going to minimize that and
now we're going to debark the
application application app whatever
ok it's going to make this and it's
gonna build our project and we are going
to use this beautiful emulator than to
see our application to collect
so as you can see it says every later
tutorial device and now it just just hit
OK and now it is going to install this
on this emulator and
we'll be able to see it in a second can
I was going to launch the application
and here we are this is our contact
manager and this is how it looks like so
you can see if you're going to take this
and you can see that is perfectly
working so if i actually get rid of this
its if i type space all the time it's
not going to do anything but if i type a
name or anything like that
it is of course going to enable this ad
contact button and now if we go to the
list
there's nothing in it so far but we're
going to add that in the future so also
if you put anything in here you're going
to see that
of course this is not going to be
enabled but if I and anything in here it
is going to be enabled like this
ok so that's it for this for our appt so
far
ok and also we have settings which is
quite cool
ok now let's get back to the and let's
get through this app
ok
it's gone fine ok so now i'm just gonna
ok get rid of that ok so we're pretty
much done with that but i'm going to add
one left wing in this tutorial which is
going to be the click event we're just
going to have a little message was going
to say well are you created your contact
this is all what I'm going to do so
we're going to go to the button right
here and I'm going to add the clicks
listeners to add button . set
onclicklistener and that you unclick
listener and then it's going to generate
that on click event for us and then
we're just going to do toast . make text
and then get application context
context and then we have to enter our
message than just your contact has been
created and then you just have to
specify length
I'm just going to do length it's
actually toast the length i can do that
toast . lang short and then . show like
that
and now we have to import toast or over
import of that ok
things ok so now it's just going to say
your conduct has been created as a
little message
yeah and just quickly gathered about
this and we're going to see how will
look like so this is the final thing and
let's see
ok so this is quite cool this is a lap
so far so I think it's quite nice arm
and we're going to continue with this
tomorrow or even today I'm not sure what
I'm going to put up the next tutorial
but it's going to be soon
so now if I put a name out here and we
click add context to say you can't
Casper created with this little 95 exit
right here so we could just
yeah you like that and we're going to
add more to this in the future so yeah
this is quite nice I guess
alright guys so thanks for watching and
so I see you in the next tutorial bye

Video Length: 13:17
Uploaded By: Johnny Manson
View Count: 216,165

Related Software Products
Tabs for Project
Tabs for Project

Published By:
Detong Technology Ltd.

Description:
Tabs for Project: A super practical tool for viewing, editing and managing a project in a tabbed window in Microsoft Project. Once the software is installed, you can find a tab bar in Microsoft Project as in Internet Explorer 8 and FireFox. When you open or create a project, there will be a corresponding tab in the tab bar. You can switch among projects just by clicking the tabs; double-clicking on the tabs will close the relevant projects, and double-clicking on the blank place of the tab bar ...


Related Videos
2014 Samsung Flexible OLED Display Phone and Tab Concept
2014 Samsung Flexible OLED Display Phone and Tab Concept

Samsung Flexible Display Phone and Tab Concept samsung flexible phone samsung flexible tablet samsung flexible hr / bClosed Caption:/b yeah yeah every job when I'm gonna say what's up with you and carla has she left you yet the fact oh she did hello No and ok technology is my thing well I need to get going wow that's amazing can I see that all in a day's work for ...
Video Length: 01:43
Uploaded By: IndVideos
View Count: 3,447,726

Android tutorial for beginners -90- Creating Swipe Views with Tabs
Android tutorial for beginners -90- Creating Swipe Views with Tabs

How to create an android tab layout with swipeable view in android. Download the project and get the source code from here http://easyway2in.blogspot.ae/2014/10/android-swipe-views-with-tabs.html Like my Facebook page : https://www.facebook.com/codeglympse Subscribe My YouTube channel : http://www.youtube.com/ticoontechnologies hr / bClosed Caption:/b hello guys in this part we are going to learn about how to create and android tablet ...
Video Length: 22:39
Uploaded By: PRABEESH R K
View Count: 75,189

Bootstrap 3 Tutorials - #7 Creating Responsive Tabs (with effects)
Bootstrap 3 Tutorials - #7 Creating Responsive Tabs (with effects)

Bootstrap 3 Tutorials - #7 Creating Tabs in Bootstrap Download Free Project files for This series. Drop box : http://bit.ly/17gmvII Google Drive : http://goo.gl/KFvOnC Mediafire: http://bit.ly/17T65H5 (100% secure) Virus total scan http://goo.gl/ggG9CU Subscribe to my YouTube Channel YouTube : http://www.youtube.com/wiredwiki Ask, Share, Like Twitter : http://www.twitter.com/wiredwikibr ...
Video Length: 05:38
Uploaded By: Wiredwiki English
View Count: 41,525

G5 Project a2c - Words (Guitar Cover by AlexProg) + Tabs
G5 Project a2c - Words (Guitar Cover by AlexProg) + Tabs

DOWNLOAD TABS: Guitar Pro File: http://www.mediafire.com/download/vzcjp246rd7vxoz/Words+G5+Project+TABS+by+AlexProg.gp5 PDF: http://www.mediafire.com/view/50y97oehoch22zz/Words_G5_Project_TABS_by_AlexProg.pdf Song: Words Composed by: a2c From: G5 Project Album: G5 2007 Original backing track used from http://www.vivix.info/g5/ Cover by: Alexander Gutiérrez (a.k.a. AlexProg) Download cover: ...
Video Length: 05:56
Uploaded By: AlexProgOfficial
View Count: 23,082

Bleed The Freak - Alice in Chains | Guitar Cover with Solo and Tabs
Bleed The Freak - Alice in Chains | Guitar Cover with Solo and Tabs

Guitar cover / lesson Bleed the Freak by Alice in Chains - Learn to play Jerry Cantrell's Solo Album: Facelift Check my music: http://www.reverbnation.com/zeronochange All Tabs are original, transcribed directly from what I play in the video and you won't find them anywhere else. Please subscribe to The Cantrell Project. A respectful quest to promote, discuss, learn, share, admire, and ultimately enjoy the work of one of ...
Video Length: 04:19
Uploaded By: The Cantrell Project
View Count: 22,348

Bad Apple - Touhou Project [Guitar tabs]
Bad Apple - Touhou Project [Guitar tabs]

Bad Apple - Touhou Project [Guitar tabs] Sheet music available on: https://www.jellynote.com/sheet-music-tabs/touhou-project/bad-apple/5168181f0be58713eb678eb1#instr:fretboard Join the Jellycommunity on Website: http://www.jellynote.com Facebook: http://www.facebook.com/JellyNote Twitter: http://twitter.com/JellyNote
Video Length: 03:41
Uploaded By: Jellynote
View Count: 16,727

Trading Website Community Project - 43 - How to Make Awesome Colored Tabs
Trading Website Community Project - 43 - How to Make Awesome Colored Tabs

Facebook - https://www.facebook.com/TheNewBoston-464114846956315/ GitHub - https://github.com/buckyroberts Google+ - https://plus.google.com/+BuckyRoberts LinkedIn - https://www.linkedin.com/in/buckyroberts reddit - https://www.reddit.com/r/thenewboston/ Support - https://www.patreon.com/thenewboston thenewboston - https://thenewboston.com/ Twitter - https://twitter.com/bucky_roberts hr / bClosed Caption:/b are a casual can ...
Video Length: 07:13
Uploaded By: thenewboston
View Count: 14,650

Alice in Chains - It Aint Like That | Guitar Cover with Tabs
Alice in Chains - It Aint Like That | Guitar Cover with Tabs

Guitar cover / lesson It Aint Like That by Alice in Chains - Learn to play Jerry Cantrell's Solo Album: Facelift All Tabs are original, transcribed directly from what I play in the video and you won't find them anywhere else. Please subscribe to The Cantrell Project. A respectful quest to promote, discuss, learn, share, admire, and ultimately enjoy the work of one of the greatest musicians alive Jerry Cantrell. Subscribe and ...
Video Length: 04:39
Uploaded By: The Cantrell Project
View Count: 14,329

Again - Alice in Chains | Guitar Cover with Tabs
Again - Alice in Chains | Guitar Cover with Tabs

Guitar cover / lesson gain by Alice in Chains - Learn to play Jerry Cantrell's Solo Album: Tripod Check my music: http://www.reverbnation.com/zeronochange All Tabs are original, transcribed directly from what I play in the video and you won't find them anywhere else. Please subscribe to The Cantrell Project. A respectful quest to promote, discuss, learn, share, admire, and ultimately enjoy the work of one of the greatest ...
Video Length: 04:09
Uploaded By: The Cantrell Project
View Count: 13,819

Copyright © 2025, Ivertech. All rights reserved.