摘要:
我们平常可以直接在xml里设置margin,如:但是有些情况下,需要在java代码里来写,可是View本身没有setMargin方法,怎么办呢?通过查阅android api,我们发现android.view.ViewGroup.MarginLayoutParams有个方法setMargins(le... 阅读全文
posted @ 2015-07-09 22:10
牧之丨
阅读(5687)
评论(0)
推荐(0)
摘要:
参照以下博客和代码:1http://blog.csdn.net/gf771115/article/details/82372292 http://blog.csdn.net/love_world_/article/details/8426935RelativeLayout rl = new Rela... 阅读全文
posted @ 2015-07-09 22:05
牧之丨
阅读(342)
评论(0)
推荐(0)
摘要:
ViewGroupWidth/Height ,Padding/marginFrameLayoutgravityLinearLayoutOrientation/horizontal/verticalweightRelativeLayoutalignBaseline/(Left/Top/Right/Bo... 阅读全文
posted @ 2015-07-09 21:59
牧之丨
阅读(534)
评论(0)
推荐(0)
摘要:
最近在看别人技术博客(http://www.cnblogs.com/over140/p/3508335.html)的时候,发现一个属性:android:clipChildren属性。翻文档找到下面介绍android:clipChildrensetClipChildren(boolean)Define... 阅读全文
posted @ 2015-07-09 21:49
牧之丨
阅读(454)
评论(0)
推荐(0)
摘要:
方法1. 利用Bitmap.createBitmap Bitmap adjustPhotoRotation(Bitmap bm, final int orientationDegree) {Matrix m = new Matrix();m.setRotate(orientationDegree, ... 阅读全文
posted @ 2015-07-09 11:41
牧之丨
阅读(13054)
评论(3)
推荐(1)
摘要:
增加largeHeap="true"属性。android:largeHeapWhether your application's processes should be created with a large Dalvik heap. This applies to all processes c... 阅读全文
posted @ 2015-07-09 10:14
牧之丨
阅读(557)
评论(0)
推荐(0)
浙公网安备 33010602011771号