ãã¥ã¼ã表示ãããåã®ãã¥ã¼ã®å¤§ããã測ãæ¹æ³ ãã¥ã¼ãç»é¢ã«è¡¨ç¤ºãããåã«ããããããã¥ã¼ã®å¤§ãããç¥ã£ã¦ããããã¨ããå ´åã®ãã¥ã¼ã®è¨ããããç´¹ä»ãã¾ãã è¨ãããã¯Viewã¯ã©ã¹ã®getMeasuredWidthã¾ãã¯getMeasuredHeightã¡ã½ãããå¼ã³åºãã ãã§ããããã®ã¡ã½ãããå¼ã³åºãåã«measureã¡ã½ããã次ã®ããã«å¼ã³åºãå¿ è¦ãããã¾ãã View myView = findViewById(R.id.my_view); myView.measure( MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); measureã¡ã½ããã¯ãã¥ã¼ãã©ãã»ã©ã®å¤§ãããæã£ã¦ãããã調ã¹ãã¨ãã«å¼ã°
{{#tags}}- {{label}}
{{/tags}}