上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页
摘要: Android学习系列(5)--App布局初探之简单模型 阅读全文
posted @ 2012-06-18 13:39 小さいです哥 阅读(123) 评论(0) 推荐(0)
摘要: 通常情况会想到drawableLeft,drawableTop,drawableRight,drawableBotton,这样是可以做,但只能在四个位置。 下面这种办法可以实现任意位置: Java代码 importandroid.app.Activity; importandroid.graphics.drawable.Drawable; importandroid.os.Bundle; importandroid.text.Html; importandroid.text.Spanned; importandroid.text.Html.ImageGetter; importandroid. 阅读全文
posted @ 2012-06-15 15:14 小さいです哥 阅读(414) 评论(0) 推荐(0)
摘要: 屏幕大小:一:不同的layoutAndroid手机屏幕大小不一,有480x320, 640x360, 800x480.怎样才能让App自动适应不同的屏幕呢? 其实很简单,只需要在res目录下创建不同的layout文件夹,比如layout-640x360,layout-800x480,所有的layout文件在编译之后都会写入R.java里,而系统会根据屏幕的大小自己选择合适的layout进行使用。二:hdpi、mdpi、ldpi在之前的版本中,只有一个drawable,而2.1版本中有drawable-mdpi、drawable-ldpi、drawable-hdpi三个,这三个主要是为了支持多分 阅读全文
posted @ 2012-06-15 15:13 小さいです哥 阅读(225) 评论(0) 推荐(0)
摘要: package com.example;import java.io.BufferedReader;import java.io.InputStream;import java.io.InputStreamReader;import android.app.Activity;import android.app.Dialog;import android.app.ProgressDialog;import android.content.Context;import android.net.ConnectivityManager;import android.net.NetworkInfo;i 阅读全文
posted @ 2012-06-12 09:11 小さいです哥 阅读(582) 评论(0) 推荐(0)
摘要: package cn.xsm.hero;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.view.View;import android.widget.Button;import android.widget.EditText;import android.view.View.OnClickListener;public class AndroidThreadActivity extends Activ. 阅读全文
posted @ 2012-06-03 17:39 小さいです哥 阅读(153) 评论(0) 推荐(0)
摘要: alter proc getName@userName varchar(50)asif(@userName = 'xsm') beginselect userName from Table_Test where userName=@userName;endelse beginselect count(*) from Table_Test;endreturnalter proc getWeek@weeks varchar(50)asdeclare @i int, @weekName varchar(50)set @i=0set @weekName='Sunday' 阅读全文
posted @ 2012-05-22 16:48 小さいです哥 阅读(238) 评论(0) 推荐(0)
摘要: FinalData.rar 阅读全文
posted @ 2012-05-22 11:08 小さいです哥 阅读(274) 评论(0) 推荐(0)
摘要: str = '[111]dsfdsd[33333]'pattern = r"(\[.*?\])"; guid = re.findall(pattern,str ,re.M) if(len(guid)>0): guid = guid[0] guid = guid.replace('[','').replace(']','') 阅读全文
posted @ 2012-05-17 09:58 小さいです哥 阅读(8069) 评论(0) 推荐(1)
摘要: #-*- MailClassLibrary -*-import smtplibimport osimport sysfrom email.header import Header from email.mime.text import MIMETextfrom email.mime.multipart import MIMEMultipart class MailClassLibrary: def __init__(self, mailType): self.mailSendType = mailType sender = "xsmhero@aa.com" receiver 阅读全文
posted @ 2012-05-10 08:32 小さいです哥 阅读(297) 评论(1) 推荐(0)
摘要: 替换exe程序图标dll/// <summary> /// 替换程序图标 /// </summary> /// <param name="exe">程序</param> /// <param name="ico">图标</param> /// <returns></returns> private bool setAppIco(string exe, string ico) { try { UpdateExeIco.UpdateExeIco exeIco = 阅读全文
posted @ 2012-05-04 09:11 小さいです哥 阅读(384) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页