I have a view made up of TableLayout, TableRow and TextView. I want it to look like a grid. I need to get the height and width of this grid. The methods getHeight() and getWidth() always return 0. This happens when I format the grid dynamically and also when I use an XML version. How to retrieve the dimensions for a view? Here is my test program I used in Debug to check the results: import android
iPhoneã¢ããªéçºè ãããããAndroidã¸åå ¥ãããããªã¨èãã¦ãã人ãå¤ãã¨æãã¾ãã ãªã®ã§ä»åãããiPhoneéçºè ã®ããã®Androidå ¥éãã¯ããããã¨æãã¾ãã ä»åã¯ãã¥ã¼ã®é ç½®ã«ã¤ãã¦ã§ãã iPhoneã§ã®ãã¥ã¼ã®é ç½®ã¯ã追å ãããã¥ã¼ã«è¦ªãã¥ã¼ã«å¯¾ããframeãæå®ãã¦ã[view addSubview:addView]ãªã©ã¨ããã°ã好ããªå ´æã«ãã¥ã¼ã追å ã§ãã¾ãããAndroidã§ã¯å°ãåæãéãã¾ãã Viewã®æ§é Androidã§iPhoneã®UIViewã«ãããã®ã¯android.view.Viewã§ãã Viewèªä½ã¯ãµããã¥ã¼ãæã¤ãã¨ã¯ã§ãã¾ããã ãµããã¥ã¼ãæã¦ãã®ã¯Viewã®ãµãã¯ã©ã¹ViewGroupã§ãã ViewGroupã¯åãã¥ã¼ã®é ç½®æ¹æ³ãªã©ãæå®ãã¦ããã¥ã¼ã®è¿½å ãã§ãã¾ãã ViewGroupã¯abstarc
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}