-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01. VisitingCard.java
More file actions
114 lines (94 loc) · 3.74 KB
/
01. VisitingCard.java
File metadata and controls
114 lines (94 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Visiting card:
-----------------------------------------------------------------------
XML Code:
-----------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingTop="250dp"
android:background="#C7E6FF"
android:paddingRight="25dp"
android:paddingLeft="25dp"
tools:context=".MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="87dp">
<TextView
android:id="@+id/textView"
android:layout_width="276dp"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="113dp"
android:layout_marginTop="21dp"
android:layout_marginEnd="-27dp"
android:layout_marginBottom="1dp"
android:text="KASHtech"
android:textAlignment="center"
android:textSize="30dp" />
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="0dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="207dp"
android:layout_marginBottom="0dp"
app:srcCompat="@drawable/f53045395" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="#000000" />
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="22dp"
android:text="Dheeraj N Kashyap"
android:textAlignment="center" />
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="#000000" />
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Location: Bengaluru, Karntaka"
android:textAlignment="center" />
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="center"
android:text="Email: dheeraj.nk20@gmail.com" />
<TextView
android:id="@+id/textView5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Ph: +91 8762784593"
android:textAlignment="center" />
</LinearLayout>
-----------------------------------------------------------------------
Java Code
-----------------------------------------------------------------------
package com.example.visitingcard;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}