`
liangoogle
  • 浏览: 273174 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
从 这个网址下载: http://developer.android.com/sdk/index.html#win-bundle 解压后的eclipse就可以直接使用。 安装svn: help---->install new software,输入网址: http://subclipse.tigris.org/update 选择 subclipse plugin 一个选项,进行安装即可。
怎么在主工程中设置library项目中背景或者其他一些属性值。 attr.xml :自定义属性。 format值参考:    http://huangbo-2020.iteye.com/blog/1477611 1、自定义属性: <resources> <attr name="searchViewCloseIcon" format="reference" /> </resources>             <ImageView                android:layout_wid ...
android 中theme.xml与style.xml的区别: 相同点: 两者的定义相同。 <resources> <stylename="theme"parent="android:Theme.Black"> <itemname="android:windowNoTitle">true< /item> <itemname="android:textSize">14sp< /item> <itemna ...
  想让软键盘上的enter键显示搜索图标:              xml中设置:                android:imeOptions="actionSearch"                android:inputType="text" .java中:                mQueryTextView.setImeOptions(EditorInfo.IME_ACTION_SEARCH);//显示搜索图标。                mQueryTextView.setInputType(Editor ...
当应用需要一个相同的标题时或者是工具栏时我们可以使用requestWindowFeature属性: public class AndroidTestActivity extends Activity {    /** Called when the activity is first created. */    @Override    public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        requestWindowFeature(Window. ...
 //这是show一个PopupWindow    PopupWindow mPopupWindow;     public void showPopupWindow() { LayoutInflater mLayoutInflater = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE); View music_popunwindwow = mLayoutInflater.inflate(R.layout.portal_select_layout, null); ListView port ...
    这是开始网络请求的方法,网络返回在ResponseCallback处理:     private void DoHttpWebRequest()         {             string url = "http://www.cnblogs.com/linzheng";             var request = HttpWebRequest.Create(url);//创建WebRequest类             var result = (IAsyncResult)request.BeginGetResponse(Resp ...

wp7 WebClient请求

      这事一个开始加载url的 方法 ,在 加载 完成时发生 webClient_OpenReadCompleted方法:     private void DoWebClient()         {          WebClient webClient = new WebClient();          webClient.OpenReadAsync(new Uri("http://www.cnblogs.com/linzheng"));          webClient.OpenReadCompleted += new OpenRea ...
判断网络是否可用: true为 有网可用,false为无网可用。 var  network = Microsoft.Phone.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable(); 判断网络状态: 方法返回网络类型。      public static string GetNetStates()         {             var info = Microsoft.Phone.Net.NetworkInformation.NetworkInterface.NetworkInterfa ...
做widget : 想点击widget一个按钮时就进入客户端,要和点击应用程序的图标效果一样,纠结了很久,得出代码:  if (action.equals("Enter")) {            Intent i = new Intent(Intent.ACTION_MAIN);            i.addCategory(Intent.CATEGORY_LAUNCHER);            i.setComponent(new ComponentName("com.yourpakage", "com.yourpakage& ...

eclipse 提示慢 Alt+/

 
eclipse Alt+/ 这个快捷键提示慢解决: 下载org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar, 关闭Eclipse, 将它放到:Eclipse\plugins下覆盖同名文件.
  userName = (EditText) layout.findViewById(R.id.username);  //TODO 显示软盘 使用EditText的getContext   InputMethodManager imm = (InputMethodManager)userName.getContext(). getSystemService(Context.INPUT_METHOD_SERVICE);        imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);      

widget

1:在清单注册:        <receiver        android:name="com.youku.widget2.LenovoLeosWidgetDemoWidgetProvider"   android:label="@string/app_name"   >            <intent-filter>                <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>     ...
        <activity android:configChanges="orientation|keyboardHidden"             android:theme="@android:style/Theme.NoTitleBar.Fullscreen"             android:screenOrientation="portrait" android:name="com.wiwigo.app.SplashActivity">             <i ...
在程序中加入以下代码时,软键盘会出现: InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); imm.toggleSoftInput(0, InputMethodManager.RESULT_SHOWN); .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas,"Courier New",courier,mon ...
Global site tag (gtag.js) - Google Analytics