Share feature and some refactor to easily manage source code files

This commit is contained in:
M M Arif
2020-03-17 00:28:03 +05:00
parent c2e80199ca
commit 79bd96f6a2
28 changed files with 134 additions and 57 deletions

View File

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="24dp"
android:tint="#368F73" android:viewportHeight="24.0"
android:viewportWidth="24.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
</vector>

View File

@ -10,7 +10,7 @@
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="400dp">
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
@ -83,7 +83,7 @@
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginStart="64dp"
android:background="?attr/inputBackgroundColor" />
android:background="?attr/dividerColor" />
<TextView
android:id="@+id/addCollaborator"
@ -151,7 +151,19 @@
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginStart="64dp"
android:background="?attr/inputBackgroundColor" />
android:background="?attr/dividerColor" />
<TextView
android:id="@+id/shareRepository"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:drawableStart="@drawable/ic_share_24dp"
android:drawablePadding="24dp"
android:padding="16dp"
android:text="@string/shareRepository"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp" />
<TextView
android:id="@+id/openWebRepo"

View File

@ -10,7 +10,7 @@
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="400dp">
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
@ -96,7 +96,19 @@
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginStart="64dp"
android:background="?attr/inputBackgroundColor" />
android:background="?attr/dividerColor" />
<TextView
android:id="@+id/shareIssue"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:drawableStart="@drawable/ic_share_24dp"
android:drawablePadding="24dp"
android:padding="16dp"
android:text="@string/shareIssue"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp" />
<TextView
android:id="@+id/copyIssueUrl"
@ -116,7 +128,7 @@
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginStart="64dp"
android:background="?attr/inputBackgroundColor" />
android:background="?attr/dividerColor" />
<TextView
android:id="@+id/closeIssue"

View File

@ -66,7 +66,7 @@
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="16dp"
android:background="@color/divider" />
android:background="@color/dividerColor" />
</LinearLayout>

View File

@ -96,6 +96,6 @@
android:layout_height="1dp"
android:id="@+id/divider"
android:layout_marginTop="15dp"
android:background="?attr/inputBackgroundColor" />
android:background="?attr/dividerColor" />
</RelativeLayout>

View File

@ -7,4 +7,5 @@
<attr name="inputTextColor" format="reference" />
<attr name="selectedTextColor" format="reference" />
<attr name="alertDialogTheme" format="reference" />
<attr name="dividerColor" format="reference" />
</resources>

View File

@ -34,4 +34,6 @@
<color name="lightThemeInputBackground">#b6bbbf</color>
<color name="lightThemeInputTextColor">#212121</color>
<color name="dividerColor">#dbdbdb</color>
</resources>

View File

@ -555,4 +555,7 @@
<string name="waitLoadingDownloadFile">Please wait for the file to load to memory</string>
<string name="downloadFileSaved">File is saved to Download directory</string>
<string name="excludeFilesInFileviewer">This file type is not supported in file viewer. Download it instead from the three dotted menu?</string>
<string name="shareIssue">Share Issue</string>
<string name="shareRepository">Share Repository</string>
</resources>

View File

@ -19,6 +19,7 @@
<item name="autoCompleteTextViewStyle">@style/AppThemeDarkSearchAutoCompleteTextView</item>
<item name="hintColor">@color/hintColor</item>
<item name="colorControlActivated">@color/darkGreen</item>
<item name="dividerColor">@color/dividerColor</item>
</style>
<!-- Dark theme - default -->
@ -40,6 +41,7 @@
<item name="autoCompleteTextViewStyle">@style/AppThemeLightSearchAutoCompleteTextView</item>
<item name="hintColor">@color/hintColor</item>
<item name="colorControlActivated">@color/darkGreen</item>
<item name="dividerColor">@color/dividerColor</item>
</style>
<!-- Light theme -->