
Anoop P. Patel
Articles
-
Nov 20, 2024 |
dev.to | Anoop P. Patel
Cursor follower using html, css and js <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>3D Cursor Follower</title> <style> body { margin: 0; overflow: hidden; background: #000; } canvas { display: block; } </style> </head> <body> <canvas id="canvas"></canvas> <script> const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Set canvas to full screen function...
-
Nov 20, 2024 |
dev.to | Anoop P. Patel
Add Flip card effect in your project just copy and paste the code..
-
Sep 22, 2024 |
dev.to | Anoop P. Patel
there are two activities MainActivity.java SettingActivity.java MainActivity.java public void launchSettings(View v){ //Launch a new activity Intent i = new Intent(this,SettingActivity.class); String message = ((EditText)findViewById(R.id.editTextText)).getText().toString(); i.putExtra("cool", message); startActivity(i); } SettingActivity.java public class SettingActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {...
-
Sep 22, 2024 |
dev.to | Anoop P. Patel
XML file: <Button android:id="@+id/btn" android:onClick="launchSettings" android:text="button" android:layout_width="wrap_content" android:layout_height="wrap_content"/> java file: public void launchSettings(View v){ //Launch a new activity Intent i = new Intent(this,SettingActivity.class); startActivity(i); } After adding these functionality you will be able to launch new Activity.
-
Sep 22, 2024 |
dev.to | Anoop P. Patel
Java Code public class MainActivity extends AppCompatActivity { Button btn; TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn = findViewById(R.id.btn); textView = findViewById(R.id.editText); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { String input = textView.getText().toString().trim(); TextView text = findViewById(R.id.result);...
Try JournoFinder For Free
Search and contact over 1M+ journalist profiles, browse 100M+ articles, and unlock powerful PR tools.
Start Your 7-Day Free Trial →