diff --git a/app/build.gradle b/app/build.gradle index df972ea..dd6858f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,7 +6,7 @@ android { applicationId "org.neshan.sample.starter" minSdkVersion 19 versionCode 1 - versionName "1.0" + versionName "1.0.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } diff --git a/app/src/main/java/org/neshan/sample/starter/DashboardActivity.java b/app/src/main/java/org/neshan/sample/starter/DashboardActivity.java index 44c8011..9bdb732 100644 --- a/app/src/main/java/org/neshan/sample/starter/DashboardActivity.java +++ b/app/src/main/java/org/neshan/sample/starter/DashboardActivity.java @@ -1,9 +1,11 @@ package org.neshan.sample.starter; import android.content.Intent; +import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; +import android.widget.TextView; import org.neshan.sample.starter.activity.AddMarker; import org.neshan.sample.starter.activity.ChangeCameraBearing; @@ -16,6 +18,7 @@ import org.neshan.sample.starter.activity.POILayer; import org.neshan.sample.starter.activity.TrafficLayer; import org.neshan.sample.starter.activity.UserLocation; +import org.w3c.dom.Text; public class DashboardActivity extends AppCompatActivity { @@ -23,6 +26,9 @@ public class DashboardActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_dashboard); + + TextView appVersion = findViewById(R.id.app_version); + appVersion.setText(String.format("نسخه %s", BuildConfig.VERSION_NAME)); } public void goToAddMarkerActivity(View view) { @@ -79,4 +85,12 @@ public void goToDatabaseLayerActivity(View view) { Intent intent = new Intent(this, DatabaseLayer.class); startActivity(intent); } + + public void openNeshanLink(View view) { + startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://developer.neshan.org/"))); + } + + public void openGithubLink(View view) { + startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/NeshanMaps/android-neshan-maps-starter"))); + } } diff --git a/app/src/main/res/drawable/seek_bar_thumb.xml b/app/src/main/res/drawable/seek_bar_thumb.xml index a1bd240..9f0a721 100644 --- a/app/src/main/res/drawable/seek_bar_thumb.xml +++ b/app/src/main/res/drawable/seek_bar_thumb.xml @@ -1,7 +1,7 @@ + android:shape="rectangle"> diff --git a/app/src/main/res/layout/activity_dashboard.xml b/app/src/main/res/layout/activity_dashboard.xml index 7b08a5e..0b9e41d 100644 --- a/app/src/main/res/layout/activity_dashboard.xml +++ b/app/src/main/res/layout/activity_dashboard.xml @@ -37,6 +37,7 @@ app:layout_constraintBottom_toBottomOf="@id/iv"/> + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file