Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.
This repository was archived by the owner on Jun 22, 2023. It is now read-only.

Advanced Android: [Lesson 03.1][Step 2.1][ToptoBottom Constraint on Textview is wrong] #43

@RAdhyapak

Description

@RAdhyapak

Describe the problem
On Lesson 03.1(SensorListeners), step 2.1, we are asked to delete the previously added ScrollView and TextViews, and add a TextView in its place. One of the constraints on this new textView is:
app:layout_constraintTop_toBottomOf | "parent"

This causes the textView to align to the bottom of the Constraint Layout causing it to go off the layout screen.
Instead, this constraints should be:
app:layout_constraintTop_toTopOf="parent"

In which lesson and step of the codelab can this issue be found?
Lesson 03.1, Step 2.1

How to reproduce?
Just follow the steps of the exercise.

Versions

  1. What version of Android Studio are you using?
    Android Studio ChipMunk | 2021.2.1 Patch 2

  2. What API level are you targeting?
    minSdk 26
    targetSdk 32

codelab: advanced-android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions