-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit 7ec6376
committed
Refactor: Use common lesson description layout in RoomActivity
This commit refactors `activity_room.xml` to use the reusable `lesson_description_section.xml` layout, replacing the previous `MaterialTextView`.
The `RoomActivity.java` file is updated to call the new `LessonUiUtils.setupDescriptionSection` method to populate the description text. An additional section header for "Layout Preview" has also been added to the XML layout.1 parent 1fc90f3 commit 7ec6376
File tree
2 files changed
+25
-5
lines changed- app/src/main
- java/com/d4rk/androidtutorials/java/ui/screens/android/lessons/data/room
- res/layout
2 files changed
+25
-5
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | + | ||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | - | ||
10 | - | ||
9 | + | ||
10 | + | ||
11 | + | ||
11 | 12 | | |
12 | 13 | | |
13 | - | ||
14 | - | ||
14 | + | ||
15 | + | ||
16 | + | ||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
| |||
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
27 | - | ||
42 | + | ||
28 | 43 | | |
29 | 44 | | |
30 | 45 | | |
| |||
0 commit comments