udacity / ud851-Sunshine

Apache License 2.0
2k stars 4.51k forks source link

S01.01-Solution-CreateLayout #193

Closed HockeytownDev closed 5 years ago

HockeytownDev commented 5 years ago

<?xml version="1.0" encoding="utf-8"?>

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent">

<!--TODO (8) Wrap the TextView in a ScrollView-->
<!--TODO (9) Set the ScrollView width to match_parent and the height to wrap_content-->

<!--TODO (2) Change the TextView's android:id attribute to tv_weather_data-->
<!--TODO (3) Give the TextView 16dp of padding-->
<!--TODO (4) Set the text size to 20sp-->
<!--TODO (5) Remove all attributes with the word constraint in them-->
<!--TODO (6) Remove the default text from the TextView-->
<ScrollView
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <TextView
    android:id="@+id/tv_weather_data"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="16dp"
    android:textSize="20sp"/>
</ScrollView>