₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,166 members, 8,425,257 topics. Date: Friday, 12 June 2026 at 10:08 AM

Toggle theme

Phensbassey's Posts

Nairaland ForumPhensbassey's ProfilePhensbassey's Posts

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 33 pages)

PhonesRe: Learn How To Develop Android Apps With Your Android Phone by phensbassey: 1:39pm On Jul 13, 2016
DavidTheGeek:
Copy and paste your code here.
here it is
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:background="#ffffff" andriod:orientation="vertical">
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" android:textColor="#ff0000"/>
<Button android:id="@+id/click_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Click Me" />
PhonesRe: Learn How To Develop Android Apps With Your Android Phone by phensbassey: 1:44am On Jul 13, 2016
DavidTheGeek:
LETS CONTINUE.... Android - User Interface (UI) Controls

User Interface simply means what you see on the screen.

A View is an object that draws something on the screen that the user can interact with and a ViewGroup is an object that holds other View (and ViewGroup) objects in order to define the layout of the user interface.

Layout(s) are defined in an XML file which offers a human-readable structure for the layout

In the main.xml file that was created on aide, ViewGroup is:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
</LinearLayout>

LinearLayout is a view group that aligns all children (view objects eg TextView) in a single direction, vertically or horizontally.

While View object is:
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="I am a TextView" />

TextView is for showing text.

****************************************

There are a number of View objects provided by Android that allow you to build the user interface for your app.
For example: TextView, EditText, Button, ImageView etc.

In this tutorial, we'll be working with TextView & Button.

***************************************

TextView
This control is used to display text to the user.

Button
A button can be pressed, or clicked, to perform an action.

******************

A view object may have a unique ID assigned to it which will identify the View object uniquely within the View Group.
The syntax for an ID, inside an XML tag is − android:id="@+id/text_id". (Bolded in TextView code above)

LETS GET TO WORK...
In this tutorial, we will buid a simple app that shows a Text and a Button. When the button is clicked, a toast message would show on the screen.

EDIT MAIN.XML.... ADD BUTTON
By defult, there's a TextView already, simply add betton code uder... like this...

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">

<TextView
android:text="@string/hello_world"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<Button
android:id="@+id/click_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click Me" />

</LinearLayout>

Check image below to see how your main.xml file should look now....

Let's add a background color...
Add this android:background="#ffffff" code to in <LinearLayout........

Also lets add color to our text....

Add this android:textColor="#ff0000" code to in <TextView........

Click menu and select Run.
Install app.

App background should be white. Text should be red and a button should be visible now.

Let me know if you got it right, so i'll continue.
here s a screen shot of mine its showing me eror pls tel me what idid wrong

PhonesRe: Top 3 Must Have Game For Your Andriod by phensbassey: 11:48pm On Jul 08, 2016
polariss:
sorry bro,are these games offline?..I really hate games that require data
yea they are offline, but can be played online multiplayer
PhonesRe: Top 3 Must Have Game For Your Andriod by phensbassey: 3:05pm On Jul 08, 2016
these are the ones I have for now
GTA Sa
Asphalt8 airborne
dream league soccer
walking dead michonne

PhonesRe: Top 3 Must Have Game For Your Andriod by phensbassey: 2:46pm On Jul 08, 2016
whiz10:
please where and how did yhu downloaded gta: san Andreas. google play is requesting for cash before download, can yhu help out?
download here...www.play.mob.org
PoliticsRe: 90-Year-Old Man's House Close To Udom's Residence Demolished. Man Laments (Pics) by phensbassey: 1:26pm On Jul 04, 2016
dainformant:
A 90 year old man has been engulfed in sadness and languish after his mud house was destroyed by a caterpillar reportedly supervised by soldiers in , the country-home of Akwa Ibom governor Udom Emmanuel.

The details surrounding the bulldozing of the thatched house which is very close to the governor's residence -is still sketchy but according to reports by the Guide citizen, the aged man who has been crying over the loss of his house is now squatting on the veranda of one of the churches in Awa iman in Onna Local Government.

Source; http://www.nationalhelm.net/2016/07/old-man-laments-after-his-house-close.html
ohh my God I can't believe this, you knw am from awa iman, and I know this man personally, he sews cloth at the front of his house before this happened, i used to personally help bring out his sewing machine... i was there two weeks ago... the house was intact, I can't believe this... my grandfather's house is just behind this one, I Hope the haven't reached there...this is unfortunate...

PoliticsHow Long since You Enrolled For NIMC (NIN)? have you collected your cards? by phensbassey(op):
for me its been since last year beginning, and I haven't received any SMS from nimc to come collect the card.
the major problem is that banks have rejected the temporary Nin slip that we received.
its been long I don't know what is happening with them.
please has anyone received his/her e-id cards? how did you go about it...
Christianity EtcRe: Do You Think The 'forbidden Fruit' In The Garden Of Eden Is A Metaphor For Sex? by phensbassey: 10:10pm On Jun 14, 2016
no its not sex, how?; well remembere after God created Adam and Eve, he told them to be fruitful and multiply and fill the earth.
now that was God's command to Adam and eve, so if the forbidden fruit was sex, God wouldn't have told them to do so..HOW CAN YOU MUITIPLY WITHOUT HAVING SEXhuh
Car TalkWhich Is Safer? Changing Two Front Tyres Whic Are Smaller? Or All Four Tyres? by phensbassey(op): 9:00am On Jun 09, 2016
I need advice pls on what to do, the back tyres on our Lexus Rx350 is bigger than the front: like the back is R18-60, while the front isR18-55, the tyres wiil expire by the end of this year, I want to change them..
should I change all four or only the front which are smaller?...which is safer...considering that am on low budget..
Car TalkWhich Is Much Safer Changing Only Two Tyres?, Or All Four With The Same Size? by phensbassey(op): 8:49am On Jun 09, 2016
I need advice pls on what to do, the back tyres on our Lexus Rx350 is bigger than the front: like the back is R18-60, while the front isR18-55, the tyres wiil expire by the end of this year, I want to change them..
should I change all four or only the front which are smaller?...which is safer...considering that am on low budget..
PhonesCan You Buy A Phone That Worth N200,000 Plus ? by phensbassey(op): 10:26pm On Jun 06, 2016
Most us likes smartphones and always goes for the best and latest in town but the question to answers is how much are you willing to pay for a smartphone or do you have limitation even off you have the money.

While surfing today i saw that the new Samsung Galaxy S7 edge cost nothing less than N190,000- N240,000 to acquire just one smartphone and there are phones that is even more expensive then the S7 but the question is can you really buy a phone above 200k in Nigeria.

When i saw the price of Samsung galaxy s7 i just asked my self how many people can really afford this smartphone in Nigeria, but am sure many can and will buy it. The truth is that those expensive phones is not a phone but something more you can check the full specification of Samsung galaxy s7 here to see how powerful the phone are.

I have twice used an expensive smartphones and have come to a conclusion that a smartphone is not just about making or answering calls but a fun. Finally we are know that better soup na money make am but how much are you willing to spend for that soup? can you spend at least N180,000 to buy Samsung Galaxy S7 edge or any other smartphone?
let me have your own opinion.
Christianity EtcRe: What Is Your Reaction When Jehovah Witnesses Knock On Your Door? by phensbassey: 6:58pm On Jun 06, 2016
nigerianvenom:
I have them as friends, lived with them and even during secondary school, as a boarding student, I use to attend their studies.
My uncle has more awake and watchtower including their hymns tape than even a devout jw member.
My ex gf was a jw, so no one will tell me what I don't know about them.
They are hypocrites
have you met all 8,000,000 of jw to knw that they are hypocrites?..does two bad apple in a basketful of apples mean the whole apple is bad...tell me who you know that's not a hypocrite one way or the other..
Christianity EtcRe: What Is Your Reaction When Jehovah Witnesses Knock On Your Door? by phensbassey: 4:16pm On Jun 05, 2016
Yagazee:
Lol! Well youths of other churches no get time to dey waka dey knock from door to door. I hail una. U guys should keep it up.
as a Christian it's an obligation to share the good news to others...
Christianity EtcRe: What Is Your Reaction When Jehovah Witnesses Knock On Your Door? by phensbassey: 1:54pm On Jun 05, 2016
Yagazee:
my brother this guys dey preach everywhere. Even as maiduguri no good I dey see them for some areas sha. I shoch when we World Universities Games at Korea, them plenty there with the same books wey dem dey carry.
we jw numbers only 8million in the world, we're not perfect, we make mistake like humans, buh I have never ever..ever seen people so selfless and caring..like jw, some people here are saying dey dey don't open doors this...and that..they keep rejecting the truth.. jw helped me change my life for good...if not for them I'd probably be or in jail or worse...we don't preach because of any benefits to ourselves... is to help others who are lost, confused and afraid just like Jesus and his deciples did..we are like mtn everywhere you go...
RomanceRe: 30 Funny Pictures Of Robert Mugabe And Quotes by phensbassey: 3:18pm On Jun 02, 2016
*grabs a can of origin and sits*
CelebritiesRe: PHOTO: Wizkid’s 19 Year Old Impersonator, Ifeoma Nelly by phensbassey: 3:03pm On Jun 02, 2016
wait na girl be DAThuh undecided
PoliticsRe: I Just Got Fuel For N140 by phensbassey:
*modified*

where did you get it? angry
pinshure or geraraheirundecided
CelebritiesRe: Maheeda Dances Naked On Instagram (photos) by phensbassey: 5:35pm On Jun 01, 2016
nawa ooo
ProgrammingRe: How To Be A Blogger by phensbassey: 5:31pm On Jun 01, 2016
hebenezher:
Good evening fellas.

I'm so interested and curious to be a blogger, but I actually have no clue of it. So, I was thinking if you guys could at least help my dream. I'm a 200L student of achievers university located at ondo state(private university)
Dept: computer and information science. Thanks in anticipation
but come, HW hard is d maths in that computer science dept?
ProgrammingRe: How To Be A Blogger by phensbassey: 5:28pm On Jun 01, 2016
Google is your Friend grin
FamilyRe: Funniest And Craziest Things You Did When You Were A Kid by phensbassey: 5:09pm On May 23, 2016
nwonufestus:
mehnnn as kpako pekin,me dey carry dried garri 4 pcket dey go skul
hahahah me been dey mix am with sugar, then carry crey fish for the other pocket lol
FamilyRe: Funniest And Craziest Things You Did When You Were A Kid by phensbassey: 5:09pm On May 23, 2016
nwonufestus:
mehnnn as kpako pekin,me dey carry dried garri 4 pcket dey go skul
hahahah me been dey mix am with sugar, then carry crey fish for the other pocket
PhonesRe: Addicted To Your Mobile Phone? 5 Ways To Beat Your Phone Addiction by phensbassey(op): 9:05pm On May 22, 2016
3. Turn your Phone Off When You Get Into The Car This should be a law. I’m waiting for the day that it is. Just as in an aircraft you are asked to power off your electronic devices and cell phones, this should be the law of the road. It is impossible for your mind to be at two places at once. It is a law of physics: no one thing can occupy the same space at the same time, and if your mind and eyes are on your phone, they are not on the road. Driving is one of those places where you do not want to mess around. Sometimes I hear the excuse “Well, I need my phone for directions, my GPS is on it.” To that I say: what did people do five years ago? You would carefully map out your route before you left the house, or you would pull off to the side of the road as you looked at a map. The same rule should apply today. When driving— close off your phone so that you are not even tempted to look at it. Your life and other people’s lives are at stake.
4. Get Real When you are with a real life person sharing a conversation, a meal, or a cup of coffee, they are a real life form. A real person right there in front of you to engage with. Are you telling me that your virtual friends and virtual text conversations are more important than the real life person in front of you? Not only is this THE rudest thing on the planet, but it breaks down friendships and can ruin relationships. Even if you say to a friend “Oh I just need to check that,” They may respond “Oh, that’s OK.” But the truth is it’s not OK. What you are saying is that the virtual message is more important than them. They have taken time out of their busy life to meet with you, and share real life time with you. By turning your attention away from them you are inevitably saying “You are not as important.” It’s really a sickness that we are so addicted to our phones that we ignore the people we are with to hang out with virtual people over Facebook, Twitter, and text messages. Come on people—it’s time to get real.
5. Don’t Lose Sleep Over It If you find yourself up late at night playing on your phone, whether it is video games, Facebook, or text messaging, you are losing precious sleep over your addiction. The moment you stop putting energy into caring for your basic needs and pour your time and energy into your phone, you are allowing the phone to dictate your health and well- being. If you catch yourself in this scenario, my advice is to power off your phone an hour before bed time to ensure that your last hour is spent in a meaningful way, and that you get to bed on time to start the next day afresh. Your phone is just not worth losing sleep over.
PhonesAddicted To Your Mobile Phone? 5 Ways To Beat Your Phone Addiction by phensbassey(op):
An addiction is when the thing
you are addicted to begins to
control your life and interferes
with your daily activities, work,
and relationships. The classical
definition of an alcoholic is
someone who wakes up to a
glass of vodka instead of a cup
of coffee. But with the boom of
technology, the signs of
addiction can also be found in
other places besides the bottom
of a glass, it can also be found
in the form of cell phones.
If you find yourself checking
your phone first thing in the
morning—before even getting
out of bed, you may be
addicted. If you find you’re
text-messaging while driving,
checking your phone instead of
working on an important
assignment, or checking
Facebook during a romantically
dinner—your phone is
interfering with your life and
you are addicted.
Are missing out on living a
fulfilled and rich life because
you’re constantly staring at
your cell phone?
Here are five tips to manage
your phone addiction.


1. The first 30 minutes of
your day

If you find yourself waking up
in the morning reaching to
check in with your phone
before you even got out of bed,
this is a serious problem. The
first 30 minutes upon
awakening should be dedicated
to creating a good start to your
day. This means getting out of
bed, freshening up, taking 5
minutes to meditate and stretch
and preparing a healthy
breakfast. Start your day doing
healthy, positive things to build
your inner fortitude to take on
the day ahead.

2. Create No-Phone Time
Zones
The truth of the matter is
having a cell phone close by at
work is common, and
sometimes even required.
Whether the ding of your phone
is work-related or not—that
specific phone alert is rarely
related to the current work at
hand. If you are constantly
getting distracted by your
phone going off—you won’t
remain focused on the work in
front of you, decreasing
productivity. Therefore, I
advocate for creating a no-
phone time-zone. This means
that for at least 2 hours of your
day(when you’re most
productive work happens) you
close off your phone and stay
completely dedicated to the
work in front of you.



www.lifehack.org/articles/lifestyle/addicted-your-mobile-phone-5-ways-beat-your-phone-addiction.html
Nairaland GeneralRe: Harmless Everyday Things In Our Homes That Could Actually Kill Us. by phensbassey: 10:24pm On May 21, 2016
SeverusSnape:
Valar Dohaeris
a man should not be corrected...
Nairaland GeneralRe: Harmless Everyday Things In Our Homes That Could Actually Kill Us. by phensbassey: 3:34pm On May 21, 2016
PunterTim:
Valar Morghulis!
Valar doheires
Nairaland GeneralRe: Harmless Everyday Things In Our Homes That Could Actually Kill Us. by phensbassey: 3:33pm On May 21, 2016
pamcode:
The mosquito coil part is spot on. I remember when i used one in my room when i was sleeping only to wake minutes later to feeling like i was being choked. I sharply ran out to receive fresh Air. I never used mosquito coil in my room or near my bed.
my bro thank God say you were furtunate enough o wake up..for some that's it...
EducationRe: Pictures Of Some Weird And Unbelievable Facts... by phensbassey(op): 12:43pm On May 20, 2016
more PIC.....

EducationRe: Pictures Of Some Weird And Unbelievable Facts... by phensbassey(op): 1:22pm On May 19, 2016
more.....

EducationRe: Pictures Of Some Weird And Unbelievable Facts... by phensbassey(op): 12:56pm On May 19, 2016
more.....feel free to add yours

EducationRe: Pictures Of Some Weird And Unbelievable Facts... by phensbassey(op): 8:38am On May 19, 2016
more facts....

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 33 pages)