摘要:
三、Android设置横屏或竖屏: (一)、全屏: 在Activity的onCreate方法中的setContentView(myview)调用之前添加下面代码 : requestWindowFeature(Window.FEATURE_NO_TITLE);//隐藏标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREE... 阅读全文
摘要:
String string = "市场价:¥158.00"; TextView textView = (TextView) findViewById(R.id.textView); SpannableString sp = new SpannableString(string); sp.setSpan(new StrikethroughSpan(), 0, string.length(), Sp... 阅读全文
摘要:
if (autoSwitchpicTask==null){ autoSwitchpicTask = new AutoSwitchPicTask(); autoSwitchpicTask.start(); }else { autoSwitchpicTask.start(); } } ... 阅读全文
摘要:
rivate String strAction="android.intent.action.NEW_OUTGOING_CALL"; @Override public void onReceive(Context context, Intent intent) { System.out.println("===PhoneInterceptorReceiver.on... 阅读全文
摘要:
public void onReceive(Context context, Intent intent) { //得到发送广播的意图中的动作 String action=intent.getAction(); //手机收到短信后发送的广播 if(strAction.equals(action)){ //得... 阅读全文
摘要:
String ADD_SHORTCUT_ACTION 动作:在系统中添加一个快捷方式。 String ALL_APPS_ACTION 动作:列举所有可用的应用。输入:无。 String ALTERNATIVE_CATEGORY 类别:说明 activity 是用户正在浏览的数据的一个可选操作。 String ANSWER_ACTION 动作:处理拨入的电话。 String BATTERY... 阅读全文
摘要:
WebSettings ws = mViewHolder.contentWbv.getSettings(); /** * setAllowFileAccess 启用或禁止WebView访问文件数据 setBlockNetworkImage 是否显示网络图像 * setBuiltInZoomControls 设置是否支持缩放 setCacheMo... 阅读全文