首先说一下这个属性android:adjustViewBounds="true"这个方法主要是当宽或高有一项设置match或者固定尺寸时,另一边设置wrap时,可以使Imageview显示不变形,自动调整wrap这一边的尺寸另一个是android:scaleType=""网上搜索到的前几页,付的图没多大参考价值,这是无意中看到的,感觉..
分类:
其他好文 时间:
2016-02-29 14:42:16
阅读次数:
205
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match. 直接的解决方法:使用低版本的maven 可以设一个环境变量
分类:
系统相关 时间:
2016-02-29 10:45:16
阅读次数:
315
使用style替换背景,防止Activity黑色背景闪过 1.原来的布局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" andr
分类:
移动开发 时间:
2016-02-29 10:36:30
阅读次数:
238
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an
分类:
其他好文 时间:
2016-02-28 16:40:59
阅读次数:
165
这次内容,我们就项目中添加商店名称的EditText进行修改,让添加按钮随着edittext的内容而改变。 上代码,首先是xml文件上对两个控件的修改: <RelativeLayout android:id="@+id/et_relative" android:layout_width="match
分类:
移动开发 时间:
2016-02-27 23:41:08
阅读次数:
349
3.1 源代码 init: function( selector, context, rootjQuery ) { var match, elem, ret, doc; // Handle $(""), $(null), or $(undefined) //假设selector为空格。!select
分类:
Web程序 时间:
2016-02-27 20:37:30
阅读次数:
225
正则表达式用compile方法先生成要匹配的正则对象 相当于m=re.match("^[0-9]","18ruue");print m.group()re.matchre.searchre.subre.findallre.splitre.search ---- > group re.split re
分类:
编程语言 时间:
2016-02-27 16:23:12
阅读次数:
252
有一定思维难度的题目。。看了mps大爷的题解才会做(%%% mps) 考虑暴力O(n^2)dp的算法,只有当A[i] == B[j]时才会+1。我们可以利用这个性质,记录下每个数在A[i]中的5个位置。然后从前往后扫描B,顺便转移。转移时要维护前缀max,这个可以用树状数组随意维护一下。时间复杂度是
分类:
其他好文 时间:
2016-02-27 15:02:04
阅读次数:
164
This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be a
分类:
移动开发 时间:
2016-02-27 15:01:16
阅读次数:
205
runfile('C:/Users/kcl/Documents/Python Scripts/mlp_lasagne.py', wdir='C:/Users/kcl/Documents/Python Scripts') File "C:/Users/kcl/Documents/Python Scri
分类:
其他好文 时间:
2016-02-26 18:31:23
阅读次数:
138