0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-25 04:35:12 +00:00
This commit is contained in:
X1nto 2020-03-17 18:55:24 +04:00
parent e4230550cf
commit 50537b5477
89 changed files with 135 additions and 61 deletions

3
.idea/.gitignore vendored
View file

@ -1,3 +0,0 @@
# Default ignored files
/workspace.xml

View file

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

20
.idea/gradle.xml Normal file
View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>

9
.idea/misc.xml Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>

View file

@ -15,11 +15,11 @@ class MainActivity : AppCompatActivity() {
setContentView(R.layout.activity_main) setContentView(R.layout.activity_main)
val navView: BottomNavigationView = findViewById(R.id.nav_view) val navView: BottomNavigationView = findViewById(R.id.nav_view)
val navController = findNavController(R.id.nav_host_fragment) val navController = findNavController(R.id.mobile_navigation)
// Passing each menu ID as a set of Ids because each // Passing each menu ID as a set of Ids because each
// menu should be considered as top level destinations. // menu should be considered as top level destinations.
val appBarConfiguration = AppBarConfiguration(setOf( val appBarConfiguration = AppBarConfiguration(setOf(
R.id.navigation_home, R.id.navigation_dashboard, R.id.navigation_notifications)) R.id.navigation_home))
setupActionBarWithNavController(navController, appBarConfiguration) setupActionBarWithNavController(navController, appBarConfiguration)
navView.setupWithNavController(navController) navView.setupWithNavController(navController)
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

0
app/src/main/res/drawable/brave_panel_bg.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_cloud_download.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_dashboard_black_24dp.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_discord.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_github.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_home_black_24dp.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_launcher_background.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_launcher_foreground.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_microg.xml Normal file → Executable file
View file

View file

0
app/src/main/res/drawable/ic_reddit.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_settings.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_telegram.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_vanced1.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_vanced2.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/ic_vanced3.xml Normal file → Executable file
View file

View file

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19.35,10.04C18.67,6.59 15.64,4 12,4 9.11,4 6.6,5.64 5.35,8.04 2.34,8.36 0,10.91 0,14c0,3.31 2.69,6 6,6h13c2.76,0 5,-2.24 5,-5 0,-2.64 -2.05,-4.78 -4.65,-4.96zM19,18L6,18c-2.21,0 -4,-1.79 -4,-4 0,-2.05 1.53,-3.76 3.56,-3.97l1.07,-0.11 0.5,-0.95C8.08,7.14 9.94,6 12,6c2.62,0 4.88,1.86 5.39,4.43l0.3,1.5 1.53,0.11c1.56,0.1 2.78,1.41 2.78,2.96 0,1.65 -1.35,3 -3,3zM10,14.18l-2.09,-2.09L6.5,13.5 10,17l6.01,-6.01 -1.41,-1.41z"/>
</vector>

View file

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19.35,10.04C18.67,6.59 15.64,4 12,4 9.11,4 6.6,5.64 5.35,8.04 2.34,8.36 0,10.91 0,14c0,3.31 2.69,6 6,6h13c2.76,0 5,-2.24 5,-5 0,-2.64 -2.05,-4.78 -4.65,-4.96zM19,18L6,18c-2.21,0 -4,-1.79 -4,-4 0,-2.05 1.53,-3.76 3.56,-3.97l1.07,-0.11 0.5,-0.95C8.08,7.14 9.94,6 12,6c2.62,0 4.88,1.86 5.39,4.43l0.3,1.5 1.53,0.11c1.56,0.1 2.78,1.41 2.78,2.96 0,1.65 -1.35,3 -3,3zM13.45,10h-2.9v3L8,13l4,4 4,-4h-2.55z"/>
</vector>

0
app/src/main/res/drawable/rectangle_1.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_2.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_3.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_4.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_5.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_6.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_7.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_8.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_9.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/rectangle_9_logo.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 292 B

After

Width:  |  Height:  |  Size: 292 B

0
app/src/main/res/drawable/site_panel_bg.xml Normal file → Executable file
View file

0
app/src/main/res/drawable/vectordiscord.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 468 B

After

Width:  |  Height:  |  Size: 468 B

0
app/src/main/res/drawable/vectorgithub.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 529 B

After

Width:  |  Height:  |  Size: 529 B

0
app/src/main/res/drawable/vectorlogo.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 237 B

View file

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 251 B

0
app/src/main/res/drawable/vectorsetting_icon.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

0
app/src/main/res/drawable/vectorsettings_icon.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 756 B

0
app/src/main/res/drawable/vectortelegram.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 534 B

0
app/src/main/res/drawable/vectortwitter.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 423 B

View file

@ -49,24 +49,26 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:srcCompat="@drawable/rectangle_3" app:srcCompat="@drawable/rectangle_3"
tools:layout_editor_absoluteX="13dp" tools:layout_editor_absoluteX="14dp"
tools:layout_editor_absoluteY="76dp" /> tools:layout_editor_absoluteY="67dp" />
<ImageView <ImageView
android:id="@+id/imageView3" android:id="@+id/imageView3"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:srcCompat="@drawable/rectangle_3" android:layout_marginStart="14dp"
tools:layout_editor_absoluteX="14dp" android:layout_marginTop="16dp"
tools:layout_editor_absoluteY="212dp" /> app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView2"
app:srcCompat="@drawable/rectangle_3" />
<ImageView <ImageView
android:id="@+id/imageView4" android:id="@+id/imageView4"
android:layout_width="wrap_content" android:layout_width="384dp"
android:layout_height="wrap_content" android:layout_height="454dp"
app:srcCompat="@drawable/rectangle_4" app:srcCompat="@drawable/rectangle_4"
tools:layout_editor_absoluteX="16dp" tools:layout_editor_absoluteX="12dp"
tools:layout_editor_absoluteY="364dp" /> tools:layout_editor_absoluteY="306dp" />
<ImageView <ImageView
android:id="@+id/imageView5" android:id="@+id/imageView5"
@ -74,69 +76,92 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:srcCompat="@drawable/rectangle_6" app:srcCompat="@drawable/rectangle_6"
tools:layout_editor_absoluteX="31dp" tools:layout_editor_absoluteX="31dp"
tools:layout_editor_absoluteY="366dp" /> tools:layout_editor_absoluteY="379dp" />
<TextView <TextView
android:id="@+id/textView2" android:id="@+id/textView2"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:fontFamily="@font/exo_semibold" android:fontFamily="@font/exo_semibold"
android:text="@string/vanced_medias" android:text="@string/vanced_medias"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:textSize="18sp" android:textSize="18sp"
tools:layout_editor_absoluteX="39dp"
tools:layout_editor_absoluteY="376dp" />
<ImageView
android:id="@+id/imageView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/imageView5"
app:layout_constraintEnd_toEndOf="@+id/imageView5"
app:layout_constraintHorizontal_bias="0.133"
app:layout_constraintStart_toStartOf="@+id/imageView5" app:layout_constraintStart_toStartOf="@+id/imageView5"
app:layout_constraintTop_toBottomOf="@+id/textView2" app:layout_constraintTop_toTopOf="@+id/imageView5" />
app:layout_constraintVertical_bias="0.195"
app:srcCompat="@drawable/Vectordiscord" />
<ImageView <ImageView
android:id="@+id/imageView7" android:id="@+id/imageView7"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:srcCompat="@drawable/rectangle_7" android:layout_marginStart="31dp"
tools:layout_editor_absoluteX="31dp" android:layout_marginBottom="45dp"
tools:layout_editor_absoluteY="603dp" /> app:layout_constraintBottom_toBottomOf="@+id/imageView4"
app:layout_constraintStart_toStartOf="parent"
<ImageView app:srcCompat="@drawable/rectangle_7" />
android:id="@+id/imageView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/rectangle_5"
tools:layout_editor_absoluteX="31dp"
tools:layout_editor_absoluteY="486dp" />
<Button <Button
android:id="@+id/button" android:id="@+id/button"
android:layout_width="172dp"
android:layout_height="96dp"
android:background="@drawable/rectangle_5"
android:fontFamily="@font/exo_semibold"
android:text="@string/support_us_"
android:textAllCaps="false"
android:textColor="@android:color/white"
tools:layout_editor_absoluteX="31dp"
tools:layout_editor_absoluteY="498dp" />
<Button
android:id="@+id/button2"
style="@style/Widget.AppCompat.Button.Borderless.Colored" style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="176dp" android:layout_width="171dp"
android:layout_height="108dp" android:layout_height="92dp"
android:background="@drawable/rectangle_8" android:background="@drawable/rectangle_8"
android:fontFamily="@font/exo_semibold" android:fontFamily="@font/exo_semibold"
android:text="@string/website_text" android:text="@string/website_text"
android:textAllCaps="false" android:textAllCaps="false"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
tools:layout_editor_absoluteX="203dp" tools:layout_editor_absoluteX="208dp"
tools:layout_editor_absoluteY="487dp" /> tools:layout_editor_absoluteY="501dp" />
<TextView <TextView
android:id="@+id/textView" android:id="@+id/textView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="11dp"
android:layout_marginTop="4dp"
android:fontFamily="@font/exo_bold" android:fontFamily="@font/exo_bold"
android:text="@string/website" android:text="@string/website"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
tools:layout_editor_absoluteX="214dp" app:layout_constraintStart_toStartOf="@+id/button"
tools:layout_editor_absoluteY="491dp" /> app:layout_constraintTop_toTopOf="@+id/button" />
<Button
android:id="@+id/button3"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginEnd="9dp"
android:fontFamily="@font/exo_semibold"
android:text="@string/install"
android:textAppearance="@style/install"
app:layout_constraintBottom_toBottomOf="@+id/imageView2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.983"
app:layout_constraintStart_toEndOf="@+id/imageView6"
app:layout_constraintTop_toBottomOf="@+id/imageView"
app:layout_constraintVertical_bias="0.013" />
<ImageView
android:id="@+id/imageView9"
android:layout_width="36dp"
android:layout_height="29dp"
app:srcCompat="@drawable/outline_cloud_download_black_18"
tools:layout_editor_absoluteX="295dp"
tools:layout_editor_absoluteY="80dp" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -6,9 +6,4 @@
android:icon="@drawable/ic_home_black_24dp" android:icon="@drawable/ic_home_black_24dp"
android:title="@string/home" /> android:title="@string/home" />
<item
android:id="@+id/navigation_notifications"
android:icon="@drawable/ic_notifications_black_24dp"
android:title="@string/settings" />
</menu> </menu>

View file

@ -11,15 +11,4 @@
android:label="@string/title_home" android:label="@string/title_home"
tools:layout="@layout/fragment_home" /> tools:layout="@layout/fragment_home" />
<fragment
android:id="@+id/navigation_dashboard"
android:name="com.vanced.manager.ui.dashboard.DashboardFragment"
android:label="@string/title_dashboard"
tools:layout="@layout/fragment_dashboard" />
<fragment
android:id="@+id/navigation_notifications"
android:name="com.vanced.manager.ui.notifications.NotificationsFragment"
android:label="@string/title_notifications"
tools:layout="@layout/fragment_notifications" />
</navigation> </navigation>

View file

@ -1,4 +1,6 @@
<resources> <resources>
<string name="app_name">Vanced Manager</string>
<string name="title_home">Home</string>
<string name="home">Home</string> <string name="home">Home</string>
<string name="vanced">Vanced</string> <string name="vanced">Vanced</string>
<string name="install">Install</string> <string name="install">Install</string>