Not getting RelativeLayout's getHeight() after setting Visibility Visible from Visiblity GONE

后端 未结 4 884
醉话见心
醉话见心 2021-01-15 04:57

What i want is, when i click on Dashboard Button it will open like a SlidingDrawer and after it opened when clicked on it again it will close. i use this custom drawer becau

4条回答
  •  时光说笑
    2021-01-15 05:39

    simply use this to get the height and width of which visibility is GONE..

    myView.getMeasuredHeight();
    myView.getMeasuredWidth();
    

提交回复
热议问题