(转自stackoverflow)

1.Permission 在自定义的ContentProvider中如何使用

http://stackoverflow.com/questions/14368867/permission-denial-opening-provider

2.如何动态的改变layout的宽和高

http://stackoverflow.com/questions/18655940/linearlayoutlayoutparams-cannot-be-cast-to-android-widget-framelayoutlayoutpar

Solution:

We must to kwow the parent ViewGroup container for the view, because each View is filled with its parent LayoutParams for measure purposes.

If we don't know through a simple glance on the xml which is the parent ViewGroup for the View, we can always get its reference with .getParent() method from the View instance.

posted @ 2016-11-28 18:30  风吹来的砂  阅读(135)  评论(0编辑  收藏  举报