Skip to content

Commit 424a9f3

Browse files
authored
feat: add link to website with documentation (#2545)
1 parent b12dcce commit 424a9f3

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

app/src/main/java/io/pslab/activity/MainActivity.java

+6
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
273273
navItemIndex = 5;
274274
CURRENT_TAG = TAG_ABOUTUS;
275275
break;
276+
case R.id.nav_documentation:
277+
customTabService.launchUrl("https://docs.pslab.io/");
278+
if (drawer != null) {
279+
drawer.closeDrawers();
280+
}
281+
break;
276282
case R.id.nav_rate:
277283
customTabService.launchUrl("https://play.google.com/store/apps/details?id=io.pslab");
278284
if (drawer != null) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
2+
3+
<path android:fillColor="@android:color/white" android:pathData="M21,5c-1.11,-0.35 -2.33,-0.5 -3.5,-0.5c-1.95,0 -4.05,0.4 -5.5,1.5c-1.45,-1.1 -3.55,-1.5 -5.5,-1.5S2.45,4.9 1,6v14.65c0,0.25 0.25,0.5 0.5,0.5c0.1,0 0.15,-0.05 0.25,-0.05C3.1,20.45 5.05,20 6.5,20c1.95,0 4.05,0.4 5.5,1.5c1.35,-0.85 3.8,-1.5 5.5,-1.5c1.65,0 3.35,0.3 4.75,1.05c0.1,0.05 0.15,0.05 0.25,0.05c0.25,0 0.5,-0.25 0.5,-0.5V6C22.4,5.55 21.75,5.25 21,5zM21,18.5c-1.1,-0.35 -2.3,-0.5 -3.5,-0.5c-1.7,0 -4.15,0.65 -5.5,1.5V8c1.35,-0.85 3.8,-1.5 5.5,-1.5c1.2,0 2.4,0.15 3.5,0.5V18.5z"/>
4+
5+
<path android:fillColor="@android:color/white" android:pathData="M17.5,10.5c0.88,0 1.73,0.09 2.5,0.26V9.24C19.21,9.09 18.36,9 17.5,9c-1.7,0 -3.24,0.29 -4.5,0.83v1.66C14.13,10.85 15.7,10.5 17.5,10.5z"/>
6+
7+
<path android:fillColor="@android:color/white" android:pathData="M13,12.49v1.66c1.13,-0.64 2.7,-0.99 4.5,-0.99c0.88,0 1.73,0.09 2.5,0.26V11.9c-0.79,-0.15 -1.64,-0.24 -2.5,-0.24C15.8,11.66 14.26,11.96 13,12.49z"/>
8+
9+
<path android:fillColor="@android:color/white" android:pathData="M17.5,14.33c-1.7,0 -3.24,0.29 -4.5,0.83v1.66c1.13,-0.64 2.7,-0.99 4.5,-0.99c0.88,0 1.73,0.09 2.5,0.26v-1.52C19.21,14.41 18.36,14.33 17.5,14.33z"/>
10+
11+
</vector>

app/src/main/res/menu/activity_main_drawer.xml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
android:checkable="true"
3838
android:icon="@drawable/ic_info_black_24dp"
3939
android:title="@string/nav_about_us" />
40+
<item
41+
android:id="@+id/nav_documentation"
42+
android:checkable="true"
43+
android:icon="@drawable/baseline_menu_book_24"
44+
android:title="@string/nav_documentation" />
4045
<item
4146
android:id="@+id/nav_rate"
4247
android:checkable="true"

app/src/main/res/values/strings.xml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<string name="nav_instruments">Instruments</string>
1111
<string name="nav_settings">Settings</string>
1212
<string name="nav_about_us">About Us</string>
13+
<string name="nav_documentation">Documentation</string>
1314
<string name="nav_buy_pslab">Buy PSLab</string>
1415
<string name="nav_report">Feedback &amp; Bugs</string>
1516
<string name="nav_help_feedback">FAQ</string>

0 commit comments

Comments
 (0)