0% found this document useful (0 votes)
24 views9 pages

Source Code

The document contains XML source code for an Android application's layout using ConstraintLayout, featuring multiple TextViews and ImageViews for a chat interface. Key functionalities include video calling, voice notes, text messaging, and profile picture changes. The layout is designed to be responsive and visually appealing, with various UI elements positioned for user interaction.

Uploaded by

herdin nugraha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views9 pages

Source Code

The document contains XML source code for an Android application's layout using ConstraintLayout, featuring multiple TextViews and ImageViews for a chat interface. Key functionalities include video calling, voice notes, text messaging, and profile picture changes. The layout is designed to be responsive and visually appealing, with various UI elements positioned for user interaction.

Uploaded by

herdin nugraha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

source code :

1. xml version="1.0" encoding="utf-8"?>


2. <[Link]
xmlns:android="[Link]
3. xmlns:app="[Link]
4. xmlns:tools="[Link]
5. android:layout_width="match_parent"
6. android:layout_height="match_parent"
7. app:layout_anchorGravity="center"
8. tools:context=".MainActivity">
9.  
10. <TextView
11. android:id="@+id/textView10"
12. android:layout_width="160dp"
13. android:layout_height="50dp"
14. android:layout_marginTop="25dp"
15. android:layout_marginEnd="50dp"
16. android:layout_marginRight="50dp"
17. android:background="@drawable/chatbox1"
18. android:gravity="center"
19. android:text="Sedang mengerjakan UTS"
20. android:textColor="#000000"
21. app:layout_constraintBottom_toBottomOf="parent"
22. app:layout_constraintEnd_toEndOf="parent"
23. app:layout_constraintTop_toBottomOf="@+id/textView7"
24. app:layout_constraintVertical_bias="0.0" />
25.  
26. <TextView
27. android:id="@+id/textView8"
28. android:layout_width="130dp"
29. android:layout_height="25dp"
30. android:layout_marginTop="25dp"
31. android:layout_marginEnd="48dp"
32. android:layout_marginRight="48dp"
33. android:background="@drawable/chatbox1"
34. android:gravity="center"
35. android:text="Baik-baik saja!"
36. android:textColor="#000000"
37. app:layout_constraintBottom_toBottomOf="parent"
38. app:layout_constraintEnd_toEndOf="parent"
39. app:layout_constraintTop_toBottomOf="@+id/textView2"
40. app:layout_constraintVertical_bias="0.0" />
41.  
42. <TextView
43. android:id="@+id/textView7"
44. android:layout_width="150dp"
45. android:layout_height="25dp"
46. android:layout_marginStart="64dp"
47. android:layout_marginLeft="64dp"
48. android:layout_marginTop="25dp"
49. android:background="@drawable/chatbox"
50. android:gravity="center"
51. android:text="Kamu sedang apa?"
52. android:textColor="#000000"
53. app:layout_constraintStart_toStartOf="parent"
54. app:layout_constraintTop_toBottomOf="@+id/textView8" />
55.  
56. <ImageView
57. android:id="@+id/imageView21"
58. android:layout_width="35dp"
59. android:layout_height="35dp"
60. android:layout_marginStart="16dp"
61. android:layout_marginLeft="16dp"
62. app:layout_constraintBottom_toBottomOf="@+id/textView7"
63. app:layout_constraintEnd_toStartOf="@+id/textView7"
64. app:layout_constraintHorizontal_bias="0.538"
65. app:layout_constraintStart_toStartOf="parent"
66. app:layout_constraintTop_toTopOf="@+id/textView7"
67. app:layout_constraintVertical_bias="0.3"
68. app:srcCompat="@drawable/ic_face_co" />
69.  
70. <[Link]
71. android:id="@+id/toolbar"
72. android:layout_width="409dp"
73. android:layout_height="wrap_content"
74. android:background="#87C7FF"
75. android:minHeight="?attr/actionBarSize"
76. android:theme="?attr/actionBarTheme"
77. app:layout_constraintEnd_toEndOf="parent"
78. app:layout_constraintStart_toStartOf="parent"
79. app:layout_constraintTop_toTopOf="parent" />
80.  
81. <TextView
82. android:id="@+id/textView"
83. android:layout_width="wrap_content"
84. android:layout_height="wrap_content"
85. android:text="Chatto"
86. android:textColor="#373636"
87. android:textSize="30sp"
88. android:textStyle="bold"
89. android:typeface="normal"
90. app:layout_constraintBottom_toBottomOf="@+id/toolbar"
91. app:layout_constraintEnd_toEndOf="@+id/toolbar"
92. app:layout_constraintStart_toStartOf="@+id/toolbar"
93. app:layout_constraintTop_toTopOf="@+id/toolbar" />
94.  
95. <TextView
96. android:id="@+id/textView2"
97. android:layout_width="120dp"
98. android:layout_height="25dp"
99. android:layout_marginTop="25dp"
[Link]:layout_marginEnd="48dp"
[Link]:layout_marginRight="48dp"
[Link]:background="@drawable/chatbox1"
[Link]:gravity="center"
[Link]:text="Halo! Herdin!"
[Link]:textColor="#000000"
[Link]:layout_constraintBottom_toBottomOf="parent"
[Link]:layout_constraintEnd_toEndOf="parent"
[Link]:layout_constraintTop_toBottomOf="@+id/textView4"
[Link]:layout_constraintVertical_bias="0.0" />
110. 
111.<TextView
[Link]:id="@+id/textView3"
[Link]:layout_width="wrap_content"
[Link]:layout_height="wrap_content"
[Link]:layout_marginTop="35dp"
[Link]:layout_marginEnd="75dp"
[Link]:layout_marginRight="75dp"
[Link]:text="Herdin Nugraha"
[Link]:textSize="30sp"
[Link]:layout_constraintEnd_toEndOf="parent"
[Link]:layout_constraintTop_toBottomOf="@+id/toolbar" />
122. 
123.<ImageView
[Link]:id="@+id/imageView4"
[Link]:layout_width="wrap_content"
[Link]:layout_height="wrap_content"
[Link]:layout_marginTop="25dp"
[Link]:layout_constraintEnd_toEndOf="parent"
[Link]:layout_constraintStart_toStartOf="parent"
[Link]:layout_constraintTop_toBottomOf="@+id/textView3"
[Link]:srcCompat="@drawable/line" />
132. 
133.<TextView
[Link]:id="@+id/textView4"
[Link]:layout_width="150dp"
[Link]:layout_height="25dp"
[Link]:layout_marginStart="65dp"
[Link]:layout_marginLeft="65dp"
[Link]:layout_marginTop="25dp"
[Link]:background="@drawable/chatbox"
[Link]:gravity="center"
[Link]:text="Halo! Apa kabar?"
[Link]:textColor="#000000"
[Link]:layout_constraintStart_toStartOf="parent"
[Link]:layout_constraintTop_toBottomOf="@+id/imageView4" />
146. 
147.<ImageView
[Link]:id="@+id/imageView17"
[Link]:layout_width="75dp"
[Link]:layout_height="75dp"
[Link]:layout_constraintBottom_toTopOf="@+id/imageView4"
[Link]:layout_constraintEnd_toStartOf="@+id/textView3"
[Link]:layout_constraintStart_toStartOf="parent"
[Link]:layout_constraintTop_toBottomOf="@+id/toolbar"
[Link]:srcCompat="@drawable/ic_face_co" />
156. 
157.<ImageView
[Link]:id="@+id/imageView18"
[Link]:layout_width="35dp"
[Link]:layout_height="35dp"
[Link]:layout_marginStart="15dp"
[Link]:layout_marginLeft="15dp"
[Link]:layout_constraintBottom_toBottomOf="@+id/textView4"
[Link]:layout_constraintEnd_toStartOf="@+id/textView4"
[Link]:layout_constraintHorizontal_bias="0.066"
[Link]:layout_constraintStart_toStartOf="parent"
[Link]:layout_constraintTop_toTopOf="@+id/textView4"
[Link]:srcCompat="@drawable/ic_face_co" />
169. 
170.<TextView
[Link]:id="@+id/textView11"
[Link]:layout_width="330dp"
[Link]:layout_height="30dp"
[Link]:layout_marginBottom="30dp"
[Link]:background="@drawable/chat"
[Link]:gravity="center"
[Link]:text="Ketik pesan"
[Link]:textColor="#000000"
[Link]:layout_constraintBottom_toBottomOf="parent"
[Link]:layout_constraintEnd_toEndOf="parent"
[Link]:layout_constraintHorizontal_bias="0.283"
[Link]:layout_constraintStart_toStartOf="parent" />
183. 
184.<ImageView
[Link]:id="@+id/imageView22"
[Link]:layout_width="wrap_content"
[Link]:layout_height="wrap_content"
[Link]:layout_constraintBottom_toBottomOf="@+id/textView11"
[Link]:layout_constraintEnd_toEndOf="parent"
[Link]:layout_constraintHorizontal_bias="0.26"
[Link]:layout_constraintStart_toEndOf="@+id/textView11"
[Link]:layout_constraintTop_toTopOf="@+id/textView11"
[Link]:layout_constraintVertical_bias="0.0"
[Link]:srcCompat="@android:drawable/ic_btn_speak_now" />
195. 
196.<ImageView
[Link]:id="@+id/imageView23"
[Link]:layout_width="30dp"
[Link]:layout_height="30dp"
[Link]:layout_marginEnd="-20dp"
[Link]:layout_marginRight="-20dp"
[Link]:layout_constraintBottom_toBottomOf="@+id/toolbar"
[Link]:layout_constraintEnd_toEndOf="@+id/toolbar"
[Link]:layout_constraintStart_toEndOf="@+id/textView"
[Link]:layout_constraintTop_toTopOf="@+id/toolbar"
[Link]:srcCompat="@drawable/ic_telephone_handle_silhouette" />
207. 
208.<ImageView
[Link]:id="@+id/imageView24"
[Link]:layout_width="35dp"
[Link]:layout_height="35dp"
[Link]:layout_constraintBottom_toBottomOf="@+id/toolbar"
[Link]:layout_constraintEnd_toStartOf="@+id/textView"
[Link]:layout_constraintStart_toStartOf="@+id/toolbar"
[Link]:layout_constraintTop_toTopOf="parent"
[Link]:srcCompat="@drawable/ic_video_camera" />
217. 
218.</[Link]>

KETERANGAN VITUR:
1. BISA MELAKUKAN VIDEO CALL
2. BISA MELAKUKAN PANGGILAN TELPON
3. MENULIS PESAN
4. MELAKUKAN VOICE NOTE
5. MENGGANTI PHOTO PROFIL

You might also like