Skip to content

Commit 4900148

Browse files
committed
style #9: add recycle view
1 parent 13cb741 commit 4900148

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

Affirmations/.idea/workspace.xml

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
77
tools:context=".MainActivity">
88

9-
<TextView
10-
android:id="@+id/textview"
11-
android:layout_width="wrap_content"
12-
android:layout_height="wrap_content"
13-
android:text="Hello World!"
14-
app:layout_constraintBottom_toBottomOf="parent"
15-
app:layout_constraintLeft_toLeftOf="parent"
16-
app:layout_constraintRight_toRightOf="parent"
17-
app:layout_constraintTop_toTopOf="parent" />
189

19-
</androidx.constraintlayout.widget.ConstraintLayout>
10+
<androidx.recyclerview.widget.RecyclerView
11+
android:id="@+id/recycler_view"
12+
android:layout_width="match_parent"
13+
android:layout_height="match_parent"
14+
android:scrollbars="vertical"
15+
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>
16+
</FrameLayout>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent" android:layout_height="match_parent">
4+
5+
</TextView>

0 commit comments

Comments
 (0)