Your problem is similar to one CommonWare's blog. Multiple-View ViewPager Options There are three approach. One of those is override getPageWidth() in your PagerAdapter:
@Overridepublicfloat getPageWidth(int position){return(0.5f);}
The others is more complicated but there're attach source and long explanation so i don't copy here.
resource url : http://stackoverflow.com/questions/13194666/how-to-set-viewpager-size
techdrew 發表在
痞客邦
留言(0)
人氣()
public static void Update() throws Exception {
HttpClient httpclient = new DefaultHttpClient();
httpclient.getParams().setParameter(
CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
HttpPost httppost = new HttpPost("http://mpss.csce.uark.edu/~tsumar/test/upload_file.php");
techdrew 發表在
痞客邦
留言(0)
人氣()
Image image = null;
try
URL url = new URL("http://www.yahoo.com/image_to_read.jpg");
image = ImageIO.read(url);
} catch (IOException e) {
techdrew 發表在
痞客邦
留言(0)
人氣()
Reference Link : http://offclassroom.com/off-classroom/cc/282-swap-variables-in-c-without-using-temporary-variable.html
Hello friends! Being a final year computer engineering student, I have gone through so many C programming logics as a preparation of Interview (unfortunately still haven't got a chance to face it :-)
Recently one of my friends cleared the first two rounds of aptitude & programming and then got a chance to face the interview. He was asked so many logical questions on C & C++ . One of those question was, “How many different methods do you know to swap two variables without using a temporary variable?”
From this question, we can't give a particular answer as there might be so many logical solutions that can be used to swap two variables. I certainly know three:
techdrew 發表在
痞客邦
留言(0)
人氣()
Formula:
1+4+9+25+...+n^2 = (n(n+1)(2n+1)) / 6
techdrew 發表在
痞客邦
留言(0)
人氣()
不知道有沒有人也跟我一樣覺得 windows 7 的系統音效很煩人
每次按下一個鍵就有聲音
常常開機會被超大聲的開機音效嚇到
其實要關閉系統音效很簡單,只需要幾個步驟
比較簡單的步驟只要開啟右下角的音量控制
techdrew 發表在
痞客邦
留言(0)
人氣()
2011年由Google收購的廣告DoubleClick做了一個2011年全球百大網站排行榜給客戶們作參考,Facebook榮登第一名,
大部分人應該都有一個Facebook帳號,如果今天你想要備份你的或你朋友的相簿,不管是想要把你的相片換到另換一個伺服器,或著是單存的想要作一個備份都可以使用chrome的擴充軟體,這個擴充軟體不需要Facebook的認證,也不用登入Facebook,只要你有權限進入的相簿你都可以下載。
下載位置: PhotoLive
一安裝好後,每個相簿上面會多出一個按鈕
按下後
techdrew 發表在
痞客邦
留言(0)
人氣()
是否有桌面滿滿都是東西的困擾? 每次要找都找不到東西
是否有每次要開啟某某檔案,就得一個一個資料夾開找程式檔,或著在 "開始"裡面一個一個慢慢找找得很頭大?
那麼這款軟體你一定會愛不釋手
軟體名稱: Launchy
軟體官網: http://www.launchy.net/
techdrew 發表在
痞客邦
留言(0)
人氣()
大家想到上傳照片分享照片,最先想到的一定都是flicker facebook 或者是 無名
但是那些上傳都要經過一道一道手續
譬如..你一定要先有一個帳號 光是申請帳號就是一件很麻煩的事了
接下來你還要去尋找他們上傳照片的地方在哪
有些比較舊的網站甚至要一張一張照片上傳
techdrew 發表在
痞客邦
留言(0)
人氣()
電視已經變人生活中不可或缺得一像產品的
不管是吃飯的時候,無聊休閒的時候,或是睡前的時候,
大部分人都會待在電視機前面,就算沒什麼好看的也拼命轉台
在這邊跟大家介紹一款方便又快速的網路電視軟體
**NOTICE**
techdrew 發表在
痞客邦
留言(0)
人氣()
薛丁格的貓是奧地利物理學家埃爾溫·薛定諤用來解釋在宏觀情況下量力子學還不完整的假想性實驗
實驗內容大意:
1. 將一隻貓,放射性原子核,和一個毒氣瓶放到一個密閉的箱子裡
2.這個放射性原子核在一個小時內有50%的機率衰竭放出一個力子,而這個力子會啟動毒氣瓶殺死貓
techdrew 發表在
痞客邦
留言(0)
人氣()
電影 <<關鍵報告>>中所出現的用手勢控制電腦已經不是夢了,Oblong
公司就開發出來了,用手勢來當作滑鼠,想要什麼東西只要一抓或一揮就可以到你想要他到的地方
至於實用性就不是這麼大了,一般上班打報告幾乎用不到吧,不過對醫療方便,報告發表可能會比較有用一點
techdrew 發表在
痞客邦
留言(0)
人氣()