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