随笔分类 - Android————学习记录
摘要:1、属性动画 android3.0中已经支持,如果要在3.0之前使用属性动画,可以使用nineoldanimation.jar包2、新消息提示控件 BadgeView控件,可以在github上找到3、常用的图片压缩工具 github中搜索resize可以找到很多 如:https://gith...
阅读全文
posted @ 2014-12-24 15:03
╰→劉じ尛鶴
摘要:今天做项目的时候遇到一个问题:当html通过js调用input of type file时候,希望android手机的选择器可以同时出现“相机”和“图片”等,但通过下面代码Intent i = new Intent(Intent.ACTION_GET_CONTENT);i.addCategory...
阅读全文
摘要:public class MyWb extends Activity { /** Called when the activity is first created. */ WebView web; ProgressBar progressBar; private Value...
阅读全文
摘要:TextView中的超链接点击时,其实是通过Intent方式的,因此会调用Activity中的startActivity(Intent intent)方法,所以可在此方法中做些简单的拦截操作例如拦截Intent.ACTION_VIEW操作@Overridepublic void startActiv...
阅读全文
摘要:关于收起虚拟键盘,网上能找到的大多是这个:InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);imm.hideSoftInputFromWindow(editText...
阅读全文
摘要:package com.lxh.textview;import android.app.Activity;import android.os.Bundle;import android.view.View;imp...
阅读全文
摘要:***********************************总结******************************************* * 显示到前台:* MyFragme...
阅读全文
摘要:Project --> generate JavadocGo to "Configure Javadoc arguments."in VM options add "-bootclasspath /path/to/sdk/platforms/android-##/android.jar"将path/...
阅读全文
posted @ 2014-09-26 11:17
╰→劉じ尛鶴
摘要:1、制作三张启动图片都命名为splash.png,分辨率为240*320、320*480、480*800,分别放置在drawable-ldpi、drawable-mdpi、drawable-hdpi文件夹中。2、在layout文件夹中创建一个activity_splash.xml文件,内容如下 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android&quo
阅读全文

浙公网安备 33010602011771号