Skip to content

Commit 4650193

Browse files
committed
Add style and clickable image in AboutActivity
1 parent 76992a5 commit 4650193

13 files changed

Lines changed: 173 additions & 176 deletions

File tree

app/src/main/java/me/loule/vroomcards/activities/AboutActivity.java

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88

99
package me.loule.vroomcards.activities;
1010

11-
import androidx.appcompat.app.ActionBar;
1211
import androidx.appcompat.app.AppCompatActivity;
1312

1413
import android.content.Intent;
1514
import android.content.pm.PackageInfo;
1615
import android.content.pm.PackageManager;
16+
import android.net.Uri;
1717
import android.os.Bundle;
18+
import android.view.View;
19+
import android.widget.ImageView;
1820
import android.widget.TextView;
1921

2022
import me.loule.vroomcards.R;
@@ -25,24 +27,52 @@ public class AboutActivity extends AppCompatActivity {
2527
protected void onCreate(Bundle savedInstanceState) {
2628
super.onCreate(savedInstanceState);
2729
setContentView(R.layout.activity_about);
30+
ImageView imgLouisL = findViewById(R.id.louisLImageView);
31+
ImageView imgLouisY = findViewById(R.id.louisYImageView);
32+
ImageView imgVaheK = findViewById(R.id.vaheKImageVIew);
33+
ImageView imgAbedA = findViewById(R.id.abedAImageView);
2834

35+
TextView VersionEntry = findViewById(R.id.versionText);
2936

30-
// Récupérer l'intent
31-
Intent srcIntent = getIntent();
32-
33-
// je lis les infos qui sont dedans
34-
String name = srcIntent.getStringExtra("name de l'app");
35-
String groupe = srcIntent.getStringExtra("name de groupe");
36-
37-
38-
TextView vroomCards = findViewById(R.id.vroomCards);
39-
vroomCards.setText(name);
37+
imgLouisL.setOnClickListener(new View.OnClickListener() {
38+
public void onClick(View v) {
39+
Intent intent = new Intent();
40+
intent.setAction(Intent.ACTION_VIEW);
41+
intent.addCategory(Intent.CATEGORY_BROWSABLE);
42+
intent.setData(Uri.parse("https://github.com/Loule95450"));
43+
startActivity(intent);
44+
}
45+
});
4046

41-
TextView lefevre_g = findViewById(R.id.lefevre_g);
42-
vroomCards.setText(name);
47+
imgLouisY.setOnClickListener(new View.OnClickListener() {
48+
public void onClick(View v) {
49+
Intent intent = new Intent();
50+
intent.setAction(Intent.ACTION_VIEW);
51+
intent.addCategory(Intent.CATEGORY_BROWSABLE);
52+
intent.setData(Uri.parse("https://github.com/LouisYang95"));
53+
startActivity(intent);
54+
}
55+
});
4356

57+
imgVaheK.setOnClickListener(new View.OnClickListener() {
58+
public void onClick(View v) {
59+
Intent intent = new Intent();
60+
intent.setAction(Intent.ACTION_VIEW);
61+
intent.addCategory(Intent.CATEGORY_BROWSABLE);
62+
intent.setData(Uri.parse("https://github.com/VaheKri"));
63+
startActivity(intent);
64+
}
65+
});
4466

45-
TextView VersionEntry = findViewById(R.id.versionText);
67+
imgAbedA.setOnClickListener(new View.OnClickListener() {
68+
public void onClick(View v) {
69+
Intent intent = new Intent();
70+
intent.setAction(Intent.ACTION_VIEW);
71+
intent.addCategory(Intent.CATEGORY_BROWSABLE);
72+
intent.setData(Uri.parse("https://github.com/Abed-Nego28"));
73+
startActivity(intent);
74+
}
75+
});
4676

4777
try {
4878
PackageManager pm = getPackageManager();
172 KB
Loading
File renamed without changes.
507 KB
Loading
249 KB
Loading

app/src/main/res/drawable/oip.jpg

-16 KB
Binary file not shown.

app/src/main/res/drawable/ooip.jpg

-12.5 KB
Binary file not shown.
-7.74 KB
Binary file not shown.
1.13 MB
Loading

app/src/main/res/font/lobster.ttf

251 KB
Binary file not shown.

0 commit comments

Comments
 (0)