tag:blogger.com,1999:blog-8001153144156969687.post6613419394085621753..comments2024-03-18T06:41:33.526-05:00Comments on Daniel Lew's Coding Thoughts: GridLayout Child View Clipping IssuesDanielhttp://www.blogger.com/profile/17003436808680466962noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-8001153144156969687.post-37307562912015214922018-12-17T07:37:03.692-06:002018-12-17T07:37:03.692-06:00You are a real scholar, sir. Thank you so much.You are a real scholar, sir. Thank you so much.vojtahttps://www.blogger.com/profile/13094507740279091166noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-57715073218738998812016-12-06T12:04:26.165-06:002016-12-06T12:04:26.165-06:00Omg, thank you so much. Have been struggled with t...Omg, thank you so much. Have been struggled with this for all day :'(VinhLuonghttps://www.blogger.com/profile/00897470666276578436noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-32325107471269220822016-05-14T14:04:56.692-05:002016-05-14T14:04:56.692-05:00Ditto to what others have said - this was SUPER he...Ditto to what others have said - this was SUPER helpful. Been pulling my hair out trying to figure out why and you solved it for me. Thanks SO much!!!Anonymoushttps://www.blogger.com/profile/17737334725003693726noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-86639032642398279272016-04-25T10:28:03.592-05:002016-04-25T10:28:03.592-05:00hey, i am having an issue with this trick. If the ...hey, i am having an issue with this trick. If the text is in the right most cell then this works well but it doesn't work when the text is in the left most cell which I want to scale dynamically and the cell on the right is fixed.Aman Agarwalhttps://www.blogger.com/profile/08408585933306919651noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-91478188734342331952014-06-15T16:29:28.970-05:002014-06-15T16:29:28.970-05:00Thanks for sharing this! It was super helpful.Thanks for sharing this! It was super helpful.Code Oakhttps://www.blogger.com/profile/05534063948736833966noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-62454811243305034932014-04-16T22:44:15.060-05:002014-04-16T22:44:15.060-05:00Not a lot of working answer on internet . ThanksNot a lot of working answer on internet . ThanksNiqohttps://www.blogger.com/profile/00380740536335978725noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-38720123787137833942014-03-01T17:34:31.397-06:002014-03-01T17:34:31.397-06:00thanks a lot for this, saved me a couple of hrs.thanks a lot for this, saved me a couple of hrs.Mouna Cheikhnahttps://www.blogger.com/profile/03576235622034829927noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-68074553208418905662013-03-26T09:49:46.449-05:002013-03-26T09:49:46.449-05:00Thank you for posting this! Just spent hours tryin...Thank you for posting this! Just spent hours trying to figure out wtf was going on until I found this and problem solved :)Juhanihttps://www.blogger.com/profile/07819792599905242968noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-29979357245929843542013-03-25T14:38:08.081-05:002013-03-25T14:38:08.081-05:00Thanks, you solved my problem.Thanks, you solved my problem.Ed Burnettehttps://www.blogger.com/profile/00602922769425368599noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-17063724414711929902012-09-16T15:34:58.946-05:002012-09-16T15:34:58.946-05:00Thanks a lot. You ended my headache :-)Thanks a lot. You ended my headache :-)Federico Paolinellihttps://www.blogger.com/profile/10865151592341195217noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-71133762494531996682012-09-02T17:28:12.579-05:002012-09-02T17:28:12.579-05:00I think you meant
app:layout_gravity="fill_h...I think you meant <br />app:layout_gravity="fill_horizontal"<br />instead of<br />android:layout_gravity="fill_horizontal"Unknownhttps://www.blogger.com/profile/02658520376673490587noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-52099415931425031882012-06-11T08:06:21.079-05:002012-06-11T08:06:21.079-05:00I believe the reason this is necessary is because ...I believe the reason this is necessary is because the rendering happens in two steps:<br /><br />1. Determine the width of the view based on layout_width.<br /><br />2. Adjust the width based on layout_gravity.<br /><br />If the width is already set to a large size due to step #1, it won't reduce it in step #2. But if the width starts small, it will expand due to layout_gravity.Danielhttps://www.blogger.com/profile/17003436808680466962noreply@blogger.comtag:blogger.com,1999:blog-8001153144156969687.post-92072188307849233152012-03-06T15:10:59.690-06:002012-03-06T15:10:59.690-06:00I was missing the android:layout_width="0dp&q...I was missing the android:layout_width="0dp". Not sure why that is necessary, but it certainly worked well.Stevehttps://www.blogger.com/profile/12010337390085489700noreply@blogger.com