Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBill Hou
Courses Plus Student 725 Pointsthe weight property is missing in the textview in ny ADT and I can not set the percentage of the weight
Does this means the ADT I installed is older than instructor's in the video? (I am in the Android track)
4 Answers
Hiroki Hokari
5,308 PointsActually it could probably be opposite: yours is newer than videos. There are some differences between us and over there in the video due to this.
You can easily add it yourself simply by writing those property in the TextView element. Or manipulate it within the weight property in the property window right-down of the eclipse.
Bill Hou
Courses Plus Student 725 PointsThanks for the answer. On my PC, if I type in the android:weight in the textview, the eclipse will flag error to that line. However, there is a layout_weight in the textview property but that was not what Ben used in the video. I put that in anyway, the app did not crash, but I could not tell whether it works actually....::))
Bill Hou
Courses Plus Student 725 PointsThanks for the answer. On my PC, if I type in the android:weight in the textview, the eclipse will flag error to that line. However, there is a layout_weight in the textview property but that was not what Ben used in the video. I put that in anyway, the app did not crash, but I could not tell whether it works actually....::))
Hiroki Hokari
5,308 PointsThat's because it should be android:layout_weight="value" Not android: weight="value"