- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 Android 主题(Theme)的实现
(1) res/values/style.xml @drawable/translucent_background false @drawable/blue (2)MainActivity.javapublic class MainActivity extends Activity { /** Called
2011-12-15 09:57:17
322
原创 Android Style样式的定义和应用
(1) res/values/style.xml 18sp #EC9237 (2)res/layout/main.xmlhttp://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_widt
2011-12-15 09:36:52
401
原创 Android 获取手机屏幕的宽度和高度
DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);int width = dm.widthPixels;int height = dm.heightPixels;
2011-12-15 09:28:08
295
原创 Android 实现文本超级链接
android:layout_width="fill_parent" android:layout_height="wrap_content" android:autoLink="all" android:text="请访问我的博客:http://http://write.blog.csdn.net/postedit" />
2011-12-15 09:23:57
335
转载 android 判断3G网络是否链接
public static boolean isNetworkAvailable( Context context) { ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (conn
2011-12-09 16:24:25
433
转载 android 判断wifi网络是否链接
public static boolean isWiFiActive(Context inContext) { WifiManager mWifiManager = (WifiManager) inContext.getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = mWifiManager.
2011-12-09 16:22:12
318
原创 Android 图片三维翻转的效果
package chroya.demo.rotate3d; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Camera; import android.graphics
2011-11-19 08:36:38
847
转载 Android 显示图片
public class SecondActivity extends Activity { ListView mListView; View mView; public static final String imageUrl = "http://192.168.1.103/test.jpg"; @Override public void onCreate(
2011-11-09 11:51:01
249
转载 Android webView播放flash
public class BrowserTest extends Activity { private WebView mWebView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mWebVi
2011-11-09 11:40:50
553
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人