Skip to content

Commit 5c8147c

Browse files
author
priyanka0906
committed
TextView added.
1 parent 6e3afdd commit 5c8147c

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

android/src/main/java/playground/android/MainActivity.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ class MainActivity : AppCompatActivity() {
1515
val adapter = LibraryAdapter(this,Suppliers.libraries)
1616
recyclerView.adapter = adapter
1717

18-
19-
20-
2118
}
2219
}

android/src/main/res/layout/activity_main.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
5+
android:orientation="vertical"
56
xmlns:app="http://schemas.android.com/apk/res-auto">
6-
7+
<TextView
8+
android:layout_width="wrap_content"
9+
android:layout_height="wrap_content"
10+
android:text="@string/android_samples"
11+
android:textSize="28sp"
12+
android:layout_margin="10dp"/>
713
<androidx.recyclerview.widget.RecyclerView
814
android:id="@+id/recyclerView"
915
android:layout_width="match_parent"

android/src/main/res/layout/recyclerview_item.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
android:id="@+id/name_txt"
88
android:layout_width="match_parent"
99
android:layout_height="wrap_content"
10-
android:textSize="28sp"
10+
android:textSize="20sp"
1111
android:padding="5dp"
1212
android:layout_margin="10dp"
1313
/>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<resources>
22
<string name="app_name">Playground Android</string>
3+
<string name="android_samples">Android Samples</string>
34
</resources>

0 commit comments

Comments
 (0)