当前位置:首页 > IT技术 > 移动平台 > 列表
移动平台 共有 121249 个文章

android的service

    package com.service.service;import com.example.service.R;import android.app.Activity;import android.content.ComponentName;import android.content.Context;import android.content.Intent;import android.content.ServiceConnection;import android.os.Bundle;import android.os.IBinder;import android.o...[继续阅读]

移动开发

42. Trapping Rain Water

    题目:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this...[继续阅读]

移动开发

iOS程序的启动图片图标规范

       ...[继续阅读]

移动开发

关于Android attrs 自定义属性的说明

    写个自定义控件时经常要自定义一些自己的属性,平时用的都是那几个,今天就顺便一起总结一下这个东东吧~一、定义:属性的定义都在attrs.xml文件里面;二、读取:通过都是通过TypedArray去读取的,要获取TypedArray都是通过conte...[继续阅读]

移动开发

移动端 1px边框 问题

    https://segmentfault.com/a/1190000015736900https://blog.csdn.net/yexudengzhidao/article/details/98480173本文介绍了解决移动端1px边框问题的5种方法。当然了,在这之前先整理了与这些方法相关的知识:物理像素、设备独立像素、设备像素比和viewport。物理...[继续阅读]

移动平台

IOS中的UIScrollView

    要引用UIScrollView 首先要遵循UIScrollViewDelegate协议然后重写//1.拖拽方法-(void)scrollViewDidScroll:(UIScrollView *)scrollView;//2.即将开始拖拽的方法-(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView;//3.拖拽完毕的方法-(void)scrollViewDidEndDragging:(UIScr...[继续阅读]

移动开发

android ImageView 图片宽度全屏,高度自适应的写法

    <ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:adjustViewBounds="true" android:scaleType="fitXY" android:src="@drawable/res_version_bg" /><!-- Set this to true if you want the ImageView to adjust its bounds to preserve the aspec...[继续阅读]

移动平台

PAT-BASIC-1018-锤子剪刀布

    大家应该都会玩“锤子剪刀布”的游戏:两人同时给出手势,胜负规则如图所示:现给出两人的交锋记录,请统计双方的胜、平、负次数,并且给出双方分别出什么手势的胜算最大。输入格式:输入第1行给出正整数N(<=105),即...[继续阅读]

移动开发

iOS开发- iPhone6/6 Plus适配

    花了点时间, 重新整理了下iPhone的相关适配, 总结如下:iOS6之前, 屏幕适配一般使用autosize,设置视图与父视图的尺寸关系 缺陷:(Autosizing布局的不足) 1. 不能设置视图与视图之间的关系 2. 不能设置尺寸放大,缩小的最大值,最小值...[继续阅读]

移动开发

【转载】总结一下Android中主题(Theme)的正确玩法

    http://www.cnblogs.com/zhouyou96/p/5323138.html 总结一下Android中主题(Theme)的正确玩法在AndroidManifest.xml文件中有<application android:theme="@style/AppTheme">,其中的@style/AppTheme是引用的res/values/styles.xml 中的主题样式,也有可能是引用的 res/values...[继续阅读]

移动开发