2013年9月26日 星期四

Android-如何新增第二個activity

Android 新增第二個activity

一、在src/tw.xx.xx.xx上按右鍵New->Other
二、點選Android Activity->Next
三、點選Blank Activity->Next
四、在Activity Name中輸入想要的[檔案名稱]->Finish

完成~

--好康廣告--

[歌詞]火星人布魯諾(Bruno Mars) - Just The Way You Are

同樣好聽~介紹給大家~

Her eyes her eyes
Make the stars look like they're not shining
Her hair her hair
Falls perfectly without her trying
She's so beautiful
And I tell her everyday(yeahh~)

I know I know
When I compliment her she won't believe me
And it's so it's so
Sad to think that she don't see what I see
But everytime she saks me "do I look okay?"
I say

When I see your face
There's not a thing that I would change
'cause you're amazing
Just the way you are
And when you smile
The whole world stops and stares for a while
'cause girl you're amazing
Just the way you are

Her lips her lips
I could kiss them all day if she let me
Her laugh her laugh
She hates but I think it's so sexy
She's so beautiful
And I tell her everyday

Oh you know you know you know
I'd never ask you to change
If perfects what you're searching for
Then just stay the same
So don't even bother asking if you look okay
'cause you know I'll say

When I see your face
There's not a thing that I would change
'cause you're amazing
Just the way you are
And when you smile
The whole world stops and stares for a while
'cause girl you're amazing
Just the way you are
The way you are
The way you are
Girl you're amazing
Just the way you are

When I see your face
There's not a thing that I would change
'cause you're amazing
Just the way you are
And when you smile
The whole world stops and stares for a while
'cause girl you're amazing
Just the way you are
(yeahh~)


--好康廣告--

2013年9月25日 星期三

[歌詞]柏蒂 (Birdy) - Wings

最近開車時常聽到廣播上有播,蠻好聽的
所以去找了這位歌手的這首歌~~

柏蒂 (Birdy) - Wings

Sunlight comes creeping in
Illuminates our skin
We watch the day on by
Stories of all we did
It made me think of you
It made me think of you

Under a trillion srars
We danced on top of cars
Took pictures of the state
So far from where we are
They made me think of you
They made me think of you

Oh lights go down
In the moment we're lost and found
I just want to be by yours side
If these wings coule fly

Oh damm these walls
In the moment we're ten feet tall
And how you told me after it all
We remember tonight
For the rest of our lives

I'm in a foreight state
My thoughts they slip away
My words are leaving me
They go another place
Because I thought of you
Just from the thought of you

Oh lights go down
In the moment we're lost and found
I just want to be by yours side
If these wings could fly

Oh damm these walls
In the moment we're ten feet tall
And how you told me after it all
We remember tonight
For the rest of our lives

If these wings could fly

Oh lights go down
In the moment we're lost and found
I just want to be by yours side
If these wings could fly

Oh damm these walls
In the moment we're ten feet tall
And how you told me after it all
We remember tonight
For the rest of our lives

--好康廣告--

Android-如何更換底圖、顏色

Android 如何更換底圖

換底圖顏色的範例:

一、在res/values/下新增color.xml
輸入以下內容:
<resources>
<drawable name="darkgray">#808080</drawable>
<drawable name="white">#FFFFFF</drawable>
<drawable name="blue">#0000FF</drawable>
<drawable name="red">#FF0000</drawable>
<drawable name="black">#000000</drawable>
</resources>

二、在main.xml中的Layout屬性下加入

android:background="@drawable/darkgray"

ps.darkgray可更換成想要的顏色




換底色圖檔的範例:
一、在res/下新增drawable資料夾,把圖檔放入此資料夾
例如:photo.png

二、在main.xml中的Layout屬性下加入

android:background="@drawable/photo"

ps.圖檔的副檔名不用寫,直接寫檔名即可

--好康廣告--

2013年9月10日 星期二

開啟卡巴斯基的遠端服務

今日工作時,架了一台VM,裡頭灌了一台Windows 7
完成後,遠端連線都沒有問題
接著又灌卡巴斯基 8,結果遠端就無法連線
測了一下,原來是卡巴的防火牆把遠端給關了

開啟的步驟如下:
1) 開啟卡巴斯基管理畫面
2) 點選【設定】->【防火牆】
3) 點選【網路封包規則】
4) 點選【遠端桌面網路活動】,點上方的【編輯】鈕
5) 原先是【封鎖】,改為【允許】
6) 畫面下方的本機連接埠輸入【3389】,按【確定】

完成!

--好康廣告--

  加入書籤: HemiDemi Yahoo! My Web Google Bookmarks technorati 收進你的MyShare個人書籤 Del.icio.us
Related Posts Plugin for WordPress, Blogger...