Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

match_parent on webView not actually matching parent.

I've just been following along with the BlogReader tutorial, but after adding a webView and manually setting it to match_parent on both the height and the width, I still get an ugly border around the element. The border appears on both the simulator and a real device.

Several SO answers said it had to do with the app not supporting all screen sizes, so I added the following to my AndroidManifext.xml with no luck as far as a solution goes:

<supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true"/>

Picture

Any ideas? I'm using the latest build of Android Studio (0.2.3)

1 Answer

I even spent a little time searching the Treehouse forums and I couldn't seem to find anything! Thank you very much!