`
文章列表
  先是布局文件 main.xml   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientati ...

html5 > 基本页

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no" /> <meta name="apple-mobile- ...
  Wifi2Activity.java   package wifi2.com; import java.util.ArrayList; import java.util.List; import wifi2.com.WifiConnect.WifiCipherType; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiConfiguration; import andr ...
先是主 布局文件 main.xml     <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientati ...
设置背景变化   addSensor.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub if(event.getAction() == MotionEvent.ACTION_DOWN){ //更改为按下时的背景图片 ...

php > 改变图片大小

    博客分类:
  • php
  function resizejpg($imgsrc,$imgdst,$imgwidth,$imgheight) { //$imgsrc jpg格式图像路径 $imgdst jpg格式图像保存文件名 $imgwidth要改变的宽度 $imgheight要改变的高度 //取得图片的宽度,高度值 $arr = getimagesize($imgsrc); //判断图片类型 $file = fopen($imgsrc, "rb"); $bin = fread($file, 2); fclose($file); ...
    <activity android:configChanges="orientation|keyboardHidden|navigation" android:name="set.mft.SetFun">     在 manifest 中  加 的 activity 中  加  android:configChanges="orientation|keyboardHidden|navigation"       ...
  显示在 drawble 下面 建立一个 XML     <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:startColor="#225E ...
  先是布局页面      <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars=" ...
主 activity 的 layout     <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height=&q ...
    try { String keyCommand = "input keyevent " + KeyEvent.KEYCODE_MENU; Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec(keyCommand); } catch (IOException e) { // TODO Auto-generated catch bloc ...
显示 布局 文件     <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="ve ...
    public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if(keyCode == KeyEvent.KEYCODE_BACK){ Toast.makeText(SetFunTime.this, "请点击界面上的返回按钮", Toast.LENGTH_LONG).show(); return true; } ...
先是 弹出窗  Dialog  的函数, 一个 是 弹出 输入窗口, 一个是弹出选择 窗口       package gloabal.mft; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.HashMap; import set.mft.SetWendu; import android.app.AlertDialog.Builder; import android.content.Context; import android.co ...
  public static String subStr(String str, int subSLength) throws UnsupportedEncodingException{ if (str == null) return ""; else{ int tempSubLength = subSLength;//截取字节数 String subStr = str.substring(0 ...
Global site tag (gtag.js) - Google Analytics