-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README.md Signed-off-by: Surya Dhanush <[email protected]>
- Loading branch information
1 parent
ec4c951
commit afc40e9
Showing
10 changed files
with
180 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,61 @@ | ||
package com.cyberviy.ViyP; | ||
|
||
import android.content.pm.PackageInfo; | ||
import android.content.pm.PackageManager; | ||
import android.os.Bundle; | ||
import android.view.MenuItem; | ||
import android.widget.ArrayAdapter; | ||
import android.widget.ListView; | ||
import android.widget.TextView; | ||
|
||
import androidx.appcompat.app.ActionBar; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
public class AboutActivity extends AppCompatActivity { | ||
TextView ver; | ||
|
||
String version; | ||
String[] whatsnew = { | ||
"Improved UI", | ||
"Fingerprint Auth", | ||
"Secure core mode v1.SCM", | ||
"Random Password Generator v1.RPG", | ||
"Add passwords from RPG using copy", | ||
"Minor Bug fixes and Improvements", | ||
}; | ||
|
||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_about); | ||
try { | ||
PackageInfo pInfo = getApplicationContext().getPackageManager().getPackageInfo(getPackageName(), 0); | ||
version = "Version " + pInfo.versionName; | ||
} catch (PackageManager.NameNotFoundException e) { | ||
e.printStackTrace(); | ||
} | ||
ver = findViewById(R.id.version); | ||
ver.setText(version); | ||
ActionBar actionBar = getSupportActionBar(); | ||
if (actionBar != null) { | ||
actionBar.setDisplayHomeAsUpEnabled(true); | ||
} | ||
|
||
ArrayAdapter adapter = new ArrayAdapter(this, R.layout.list_whats_new, whatsnew); | ||
ListView listView = findViewById(R.id.listView); | ||
listView.setAdapter(adapter); | ||
} | ||
|
||
@Override | ||
public boolean onOptionsItemSelected(MenuItem item) { | ||
switch (item.getItemId()) { | ||
case android.R.id.home: | ||
// app icon in action bar clicked; goto parent activity. | ||
this.finish(); | ||
return true; | ||
default: | ||
return super.onOptionsItemSelected(item); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
tools:context=".AboutActivity"> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
<TextView | ||
android:id="@+id/version" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Version" | ||
android:layout_margin="5dp" | ||
android:textSize="@dimen/text_hi_size" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Changelog" | ||
android:layout_margin="5dp" | ||
android:textSize="@dimen/text_medium_size" /> | ||
|
||
<ListView | ||
android:id="@+id/listView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
tools:listitem="@layout/list_whats_new" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!-- Single List Item Design --> | ||
|
||
<TextView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/label" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:padding="10dip" | ||
android:textSize="16sp" | ||
android:fontFamily="@font/capriola" | ||
android:textStyle="normal"></TextView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters