部落格文章訂閱
貧窮不能等,因為時間久了,你就會貧窮習慣了;
夢想不能等,因為努力晚了,人老就無能為力了;
學習不能等,因為懂得少了,就沒本事夢想成真了;
健康不能等,因為身體垮了,人生的一切就都沒了。

找不到想要的文章嗎? 請直接再下面的搜尋框裡輸入要查詢文章內容關鍵字 ,就能夠更快速的取得想要閱讀的問題喔~~謝謝大家的支持與愛護~若有任何建議事項, 歡迎透過留言板留言給我喔!!
目前分類:Android程式設計 (10)
- Sep 19 Fri 2014 01:37
OS X 安裝 ant 指令
- May 21 Wed 2014 19:28
[轉貼] Load a POST request into a WebView in Android
The standard way to load an URL into a WebView object is using the loadUrl method.
- May 21 Wed 2014 16:39
[轉貼] Android Programming: Send data via POST to WebView (e.g. to implement an automatic login)
With the following code, it is possible to send data to a WebView using POST with Android:
public void onCreate(Bundle savedInstanceState) { |
- May 21 Wed 2014 16:14
[轉貼] Call an activity method from a fragment
Q:
Trying to call a method in my activity from a fragment. I want the fragment to give the method data and to get the data when the method return. I want to achieve similar to call on a static method, but without the use of static because it create problems in the activity.
New to fragments so I need an easy and pedagogic explanation!
Thanks!
- May 14 Wed 2014 12:29
[轉] Android-Bootstrap
做到一种样式 android 的spinner本身背景样式要黑色的 ,而spinner里的字体也是黑色的 ,spinner 控件的属性里设置TextColor没用 网上找了下 需要定义xml 文件来定义样式 和自定义按钮控件类似;
1,首先定义spinenr本身背景的样式:
- <?xml version="1.0" encoding="utf-8"?>
- <selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/droplist_down" />
- <item android:state_focused="true" android:drawable="@drawable/droplist_focus" />
- <item android:drawable="@drawable/droplist" />
- </selector>
- May 13 Tue 2014 16:36
[轉] Android AppTheme 系統預設樣式android:Theme語法整理
建立Android Project後會多了res/values/styles.xml的樣式檔案
事實上這是讓Android讀取的預設的樣式定義檔
例如要讓整個程式的基本樣式為亮色系或暗色系~
或者要隱藏標題全螢幕等等, 皆可以在這個檔案上進行修改...
在/res/values/目錄下, 預設的styles.xml內容
- Mar 31 Mon 2014 00:40
[轉帖] 在Android中使用顏色的方法
在Android中創建或表示一個顏色的方法
- Dec 21 Sat 2013 04:02
Convert String to Uri
You can use the parse
static method from Uri
Uri myUri =Uri.parse("http://stackoverflow.com")
- Dec 21 Sat 2013 02:47
[轉貼] 一個可以接web service回應的Android HTTP client
在瀏覽器裡頭有實做AJAX query,這讓網頁有了更大的發揮空間,
程式人員可以讓網頁就像一般應用程式一樣有趣。
那如果,一般應用程式也可以發出HTTP query,
進而取得web service吐出的東西,那又會擦出怎樣的火花呢? 先賣個關子~
- Dec 21 Sat 2013 02:13
[轉貼] 禁止屏幕随手机旋转变化 及 避免在转屏时重启Activity
禁止屏幕随手机旋转变化
有时候我们希望让一个程序的界面始终保持在一个方向,不随手机方向旋转而变化:
在AndroidManifest.xml的每一个需要禁止转向的Activity配置中加入 android:screenOrientation=”landscape” 属性。