-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvisitingcard.java
More file actions
26 lines (22 loc) · 836 Bytes
/
Copy pathvisitingcard.java
File metadata and controls
26 lines (22 loc) · 836 Bytes
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
package com.example.visitingcard;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
ImageView companylogo;
TextView txt,txt1,txt2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
companylogo=findViewById(R.id.logo);
txt=findViewById(R.id.details);
txt1 = findViewById(R.id.view1);
txt2 = findViewById(R.id.view2);
companylogo.setImageResource(R.drawable.easy);
txt.setText("Vignesh Kundar");
txt1.setText("MERN stack web developer");
txt2.setText("vigneshkundar125@gmail.com\n+919071077931");
}
}