PIXNET Logo登入

西西部落格@痞客邦

跳到主文

亂寫的啦

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 14 週二 201216:16
  • 雜記

Get inflater from Context
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LayoutInflater inflater = LayoutInflater.from(context);
 
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(1) 人氣(68)

  • 個人分類:Android
▲top
  • 8月 08 週三 201200:17
  • Android Default Resource

android.R.layout.xxx
都在下面連結
https://github.com/android/platform_frameworks_base/tree/master/core/res/res/layout
這邊也有
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(34)

  • 個人分類:Android
▲top
  • 8月 06 週一 201223:20
  • PopupMenu DIY

在Android 3.0後的版本,硬體Menu鍵會消失
進而轉變成Contextual Menu 
設計了一款利用PopupWindow模擬的menu,可以相容於API 10以上(應該可以更低,不過我懶得去一一查)
我先把code列出來,以後在整理註解囉(pixnet對code的排列不是很友善 Orz)
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(170)

  • 個人分類:Android
▲top
  • 8月 06 週一 201218:33
  • PopupWindow擷取KeyEvent

PopupWindow 直接繼承於Object
http://developer.android.com/reference/android/widget/PopupWindow.html
要直接取得KeyEvent不太可能,我們可以用繞道的方法作,
我們可以針對其上的View設定KeyListener就可以解決問題
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(267)

  • 個人分類:Android
▲top
  • 11月 29 週二 201109:41
  • Dex轉Jar

利用dex2jar工具可以將dex檔轉換成jar檔
google code : http://code.google.com/p/dex2jar/
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(906)

  • 個人分類:Android
▲top
  • 10月 26 週三 201110:42
  • Remove Recent Projects from Visual Studio 2008


Store in registry 
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ProjectMRUList
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(11)

  • 個人分類:Visual Studio
▲top
  • 4月 01 週五 201111:55
  • ISO轉到隨身諜

ISO To Usb
 
Linux : unetbootin  http://unetbootin.sourceforge.net/
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(411)

  • 個人分類:Application
▲top
  • 3月 29 週二 201110:45
  • 利用檔名取得inode

As Title
利用path_lookup 這個Function 可以透過path取得nameidata 
參數的部份等以後有空再補上
 
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(101)

  • 個人分類:Linux
▲top
  • 3月 10 週四 201120:14
  • Fedora 上的 SSH 設定

 
修改預設的SSH設定
OS Fedora 13 (kernel 2.6.33.3-85.fc13.i686.PAE) 未改
打開
/etc/ssh/sshd_config
修改連線數量
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(795)

  • 個人分類:Linux
▲top
  • 3月 03 週四 201117:33
  • Windows Server 2008 停用關機事件追蹤

 
 
Start→Run→gpedit.msc→Computer Configuration→Administrative Templates→System→Display Shutdown Event Tracker→Disabled→OK
(繼續閱讀...)
文章標籤

西西 發表在 痞客邦 留言(0) 人氣(68)

  • 個人分類:Windows
▲top
12...4»

文章分類

toggle Computer (6)
  • Windows (5)
  • Application (4)
  • Java (4)
  • Android (8)
  • Visual Studio (1)
  • Linux (13)
  • Running (0)
  • 未分類文章 (1)

最新文章

  • 雜記
  • Android Default Resource
  • PopupMenu DIY
  • PopupWindow擷取KeyEvent
  • Dex轉Jar
  • Remove Recent Projects from Visual Studio 2008
  • ISO轉到隨身諜
  • 利用檔名取得inode
  • Fedora 上的 SSH 設定
  • Windows Server 2008 停用關機事件追蹤

參觀人氣

  • 本日人氣:
  • 累積人氣: