|
@ -1,6 +1,7 @@
|
|||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
|
@ -25,6 +26,10 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
dataBinding {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
// To inline the bytecode built with JVM target 1.8 into
|
||||
// bytecode that is being built with JVM target 1.6. (e.g. navArgs)
|
||||
|
||||
|
@ -45,7 +50,8 @@ dependencies {
|
|||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||||
implementation 'androidx.core:core-ktx:1.2.0'
|
||||
implementation 'com.google.android.material:material:1.1.0'
|
||||
implementation 'androidx.fragment:fragment-ktx:1.2.2'
|
||||
implementation 'androidx.fragment:fragment-ktx:1.2.3'
|
||||
implementation 'androidx.preference:preference-ktx:1.1.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
implementation 'androidx.browser:browser:1.2.0'
|
||||
implementation 'androidx.navigation:navigation-fragment:2.2.1'
|
||||
|
|
|
@ -10,14 +10,22 @@
|
|||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name">
|
||||
android:name=".SplashScreenActivity"
|
||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||
android:label="@string/title_activity_splash_screen"
|
||||
android:theme="@style/FullscreenTheme">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name">
|
||||
</activity>
|
||||
|
||||
<meta-data
|
||||
android:name="preloaded_fonts"
|
||||
android:resource="@array/preloaded_fonts" />
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
package com.vanced.manager.Adapter
|
||||
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.FragmentManager
|
||||
import androidx.fragment.app.FragmentPagerAdapter
|
||||
|
||||
class SectionPageAdapter(fm: FragmentManager) : FragmentPagerAdapter(fm, FragmentPagerAdapter.BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {
|
||||
|
||||
private val fragmentList : MutableList<Fragment> = ArrayList()
|
||||
private val titleList : MutableList<String> = ArrayList()
|
||||
|
||||
override fun getCount(): Int {
|
||||
return fragmentList.size
|
||||
}
|
||||
|
||||
override fun getItem(position: Int): Fragment {
|
||||
return fragmentList[position]
|
||||
}
|
||||
|
||||
override fun getPageTitle(position: Int): CharSequence? {
|
||||
return titleList[position]
|
||||
}
|
||||
fun addFragment(fragment: Fragment, title:String) {
|
||||
fragmentList.add(fragment)
|
||||
titleList.add(title)
|
||||
}
|
||||
}
|
|
@ -13,6 +13,10 @@ import android.content.Intent
|
|||
import androidx.browser.customtabs.CustomTabsIntent
|
||||
import android.widget.Toast
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.viewpager2.widget.ViewPager2
|
||||
import com.google.android.material.tabs.TabLayout
|
||||
import kotlinx.android.synthetic.main.include_changelogs.*
|
||||
import com.vanced.manager.Adapter.SectionPageAdapter
|
||||
|
||||
/**
|
||||
* A simple [Fragment] subclass.
|
||||
|
@ -23,43 +27,84 @@ class HomeFragment : Fragment() {
|
|||
inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View? {
|
||||
return inflater.inflate(R.layout.fragment_home, container, false)
|
||||
val homefragment = inflater.inflate(R.layout.fragment_home, container, false)
|
||||
val viewPager = homefragment.findViewById(R.id.viewpager)
|
||||
val tabLayout = homefragment.findViewById(R.id.tablayout)
|
||||
return homefragment
|
||||
}
|
||||
|
||||
private fun isMicrogInstalled(packageName:String, packageManager:PackageManager):Boolean {
|
||||
private fun isMicrogInstalled(packageName: String, packageManager: PackageManager): Boolean {
|
||||
return try {
|
||||
packageManager.getPackageInfo(packageName, 0)
|
||||
true
|
||||
} catch (e:PackageManager.NameNotFoundException) {
|
||||
} catch (e: PackageManager.NameNotFoundException) {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
super.onActivityCreated(savedInstanceState)
|
||||
setUpViewPager(viewpager)
|
||||
tablayout.setupWithViewPager(viewpager)
|
||||
tablayout.addOnTabSelectedListener(object:TabLayout.OnTabSelectedListener {
|
||||
override fun onTabSelected(tab: TabLayout.Tab?) {
|
||||
}
|
||||
|
||||
override fun onTabReselected(tab: TabLayout.Tab?) {
|
||||
}
|
||||
|
||||
override fun onTabUnselected(tab: TabLayout.Tab?) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
private fun setUpViewPager(viewPager2: ViewPager2) {
|
||||
val adapter = SectionPageAdapter(getChildFragmentManager())
|
||||
adapter.addFragment(VancedChangelogFragment, "Vanced")
|
||||
adapter.addFragment(MicrogChangelogFragment, "MicroG")
|
||||
viewpager.setAdapter(adapter)
|
||||
}
|
||||
|
||||
companion object {
|
||||
val instance:HomeFragment
|
||||
get() {
|
||||
return HomeFragment()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
(activity as MainActivity).supportActionBar?.title = getString(R.string.home)
|
||||
|
||||
val braveurl = "https://brave.com/van874"
|
||||
val vancedurl = "https://vanced.app"
|
||||
val builder = CustomTabsIntent.Builder()
|
||||
val brave = getView()?.findViewById(R.id.button) as Button
|
||||
val website = getView()?.findViewById(R.id.button2) as Button
|
||||
val mgsettings = getView()?.findViewById(R.id.button8) as Button
|
||||
val pm = activity?.packageManager
|
||||
val isInstalled = pm?.let { isMicrogInstalled("com.mgoogle.android.gms", it) }
|
||||
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
brave.setOnClickListener{
|
||||
val builder = CustomTabsIntent.Builder()
|
||||
val pm = activity?.packageManager
|
||||
|
||||
val bravebtn = getView()?.findViewById(R.id.brave_button) as Button
|
||||
val websitebtn = getView()?.findViewById(R.id.website_button) as Button
|
||||
val microgsettingsbtn = getView()?.findViewById(R.id.microg_settingsbtn) as Button
|
||||
val discordbtn = getView()?.findViewById(R.id.discordbtn) as Button
|
||||
val telegrambtn = getView()?.findViewById(R.id.tgbtn) as Button
|
||||
val twitterbtn = getView()?.findViewById(R.id.twitterbtn) as Button
|
||||
val redditbtn = getView()?.findViewById(R.id.redditbtn) as Button
|
||||
val git1btn = getView()?.findViewById(R.id.github_managerbtn) as Button
|
||||
val git2btn = getView()?.findViewById(R.id.github_botbtn) as Button
|
||||
val git3btn = getView()?.findViewById(R.id.github_websitebtn) as Button
|
||||
|
||||
bravebtn.setOnClickListener {
|
||||
val braveurl = "https://brave.com/van874"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.Brave))
|
||||
val customTabsIntent = builder.build()
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(braveurl))
|
||||
}
|
||||
website.setOnClickListener{
|
||||
websitebtn.setOnClickListener {
|
||||
val vancedurl = "https://vanced.app"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.Vanced))
|
||||
val customTabsIntent = builder.build()
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(vancedurl))
|
||||
}
|
||||
mgsettings.setOnClickListener{
|
||||
microgsettingsbtn.setOnClickListener {
|
||||
val isInstalled = pm?.let { isMicrogInstalled("com.mgoogle.android.gms", it) }
|
||||
if (isInstalled == true) {
|
||||
val intent = Intent()
|
||||
intent.component = ComponentName(
|
||||
|
@ -67,13 +112,55 @@ class HomeFragment : Fragment() {
|
|||
"org.microg.gms.ui.SettingsActivity"
|
||||
)
|
||||
startActivity(intent)
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
val toast = Toast.makeText(context, "Install MicroG First!", Toast.LENGTH_SHORT)
|
||||
toast.show()
|
||||
}
|
||||
|
||||
}
|
||||
discordbtn.setOnClickListener {
|
||||
val discordurl = "https://discord.gg/TUVd7rd"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.Discord))
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(discordurl))
|
||||
}
|
||||
telegrambtn.setOnClickListener {
|
||||
val telegramurl = "https://t.me/joinchat/AAAAAEHf-pi4jH1SDIAL4w"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.Telegram))
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(telegramurl))
|
||||
}
|
||||
twitterbtn.setOnClickListener {
|
||||
val twitterurl = "https://twitter.com/YTVanced"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.Twitter))
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(twitterurl))
|
||||
}
|
||||
redditbtn.setOnClickListener {
|
||||
val redditurl = "https://reddit.com/r/vanced"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.Reddit))
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(redditurl))
|
||||
}
|
||||
git1btn.setOnClickListener {
|
||||
val gitmanagerurl = "https://github.com/YTVanced/VancedInstaller"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.GitHub))
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(gitmanagerurl))
|
||||
}
|
||||
git2btn.setOnClickListener {
|
||||
val gitboturl = "https://github.com/YTVanced/VancedHelper"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.GitHub))
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(gitboturl))
|
||||
}
|
||||
git3btn.setOnClickListener {
|
||||
val gitwebsiteurl = "https://github.com/YTVanced/VancedWebsite"
|
||||
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.GitHub))
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.launchUrl(requireContext(), Uri.parse(gitwebsiteurl))
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package com.vanced.manager
|
||||
|
||||
import android.content.DialogInterface
|
||||
import android.os.Bundle
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.appcompat.widget.Toolbar
|
||||
|
@ -15,6 +17,12 @@ class MainActivity : AppCompatActivity() {
|
|||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_main)
|
||||
|
||||
val prefs = getSharedPreferences("prefs", MODE_PRIVATE)
|
||||
val firstStart = prefs.getBoolean("firstStart", true)
|
||||
if (firstStart) {
|
||||
showGayDialog()
|
||||
}
|
||||
|
||||
val navView : BottomNavigationView = findViewById(R.id.bottom_nav)
|
||||
|
||||
homeFragment = HomeFragment()
|
||||
|
@ -57,4 +65,17 @@ class MainActivity : AppCompatActivity() {
|
|||
true
|
||||
}
|
||||
}
|
||||
private fun showGayDialog() {
|
||||
AlertDialog.Builder(this)
|
||||
.setTitle("Gay Alert!")
|
||||
.setMessage("Warning!\nIf you didn't download this app from vanced.app or github,\nIt may be infected with malicious code. Make sure to have Official version or be gay")
|
||||
.setPositiveButton("close"
|
||||
) { dialog, which -> dialog.dismiss() }
|
||||
.create().show()
|
||||
|
||||
val prefs = getSharedPreferences("prefs", MODE_PRIVATE)
|
||||
val editor = prefs.edit()
|
||||
editor.putBoolean("firstStart", false)
|
||||
editor.apply()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
package com.vanced.manager
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
||||
/**
|
||||
* A simple [Fragment] subclass.
|
||||
*/
|
||||
class MicrogChangelogFragment : Fragment() {
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View? {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_microg_changelog, container, false)
|
||||
}
|
||||
|
||||
}
|
|
@ -1,59 +1,11 @@
|
|||
package com.vanced.manager
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
|
||||
// TODO: Rename parameter arguments, choose names that match
|
||||
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
|
||||
private const val ARG_PARAM1 = "param1"
|
||||
private const val ARG_PARAM2 = "param2"
|
||||
class SettingsFragment : PreferenceFragmentCompat() {
|
||||
|
||||
/**
|
||||
* A simple [Fragment] subclass.
|
||||
* Use the [SettingsFragment.newInstance] factory method to
|
||||
* create an instance of this fragment.
|
||||
*/
|
||||
class SettingsFragment : Fragment() {
|
||||
// TODO: Rename and change types of parameters
|
||||
private var param1: String? = null
|
||||
private var param2: String? = null
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
arguments?.let {
|
||||
param1 = it.getString(ARG_PARAM1)
|
||||
param2 = it.getString(ARG_PARAM2)
|
||||
}
|
||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
||||
setPreferencesFromResource(R.xml.preferences, rootKey)
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View? {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_settings, container, false)
|
||||
}
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* Use this factory method to create a new instance of
|
||||
* this fragment using the provided parameters.
|
||||
*
|
||||
* @param param1 Parameter 1.
|
||||
* @param param2 Parameter 2.
|
||||
* @return A new instance of fragment SettingsFragment.
|
||||
*/
|
||||
// TODO: Rename and change types and number of parameters
|
||||
@JvmStatic
|
||||
fun newInstance(param1: String, param2: String) =
|
||||
SettingsFragment().apply {
|
||||
arguments = Bundle().apply {
|
||||
putString(ARG_PARAM1, param1)
|
||||
putString(ARG_PARAM2, param2)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
20
app/src/main/java/com/vanced/manager/SplashScreenActivity.kt
Normal file
|
@ -0,0 +1,20 @@
|
|||
package com.vanced.manager
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.PersistableBundle
|
||||
import android.content.Intent
|
||||
|
||||
class SplashScreenActivity : AppCompatActivity() {
|
||||
private val SPLASH_TIME_OUT:Long=3000
|
||||
override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
|
||||
super.onCreate(savedInstanceState, persistentState)
|
||||
setContentView(R.layout.activity_splash_screen)
|
||||
|
||||
Handler().postDelayed({
|
||||
startActivity(Intent(this, MainActivity::class.java))
|
||||
finish()
|
||||
}, SPLASH_TIME_OUT)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.vanced.manager
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
||||
/**
|
||||
* A simple [Fragment] subclass.
|
||||
*/
|
||||
class VancedChangelogFragment : Fragment() {
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View? {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_vanced_changelog, container, false)
|
||||
}
|
||||
|
||||
}
|
Before Width: | Height: | Size: 292 B |
|
@ -1,17 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="30dp"
|
||||
android:height="28dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="28" >
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H30V28H0V0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V28H30V0"
|
||||
android:fillColor="#FFFFFF"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_brush_black_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M7,14c-1.66,0 -3,1.34 -3,3 0,1.31 -1.16,2 -2,2 0.92,1.22 2.49,2 4,2 2.21,0 4,-1.79 4,-4 0,-1.66 -1.34,-3 -3,-3zM20.71,4.63l-1.34,-1.34c-0.39,-0.39 -1.02,-0.39 -1.41,0L9,12.25 11.75,15l8.96,-8.96c0.39,-0.39 0.39,-1.02 0,-1.41z"/>
|
||||
</vector>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="30dp"
|
||||
android:height="21dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="21"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H30V21H0V0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V21H30V0"
|
||||
android:fillColor="#1490D7"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,9 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z" />
|
||||
</vector>
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="29dp"
|
||||
android:height="29dp"
|
||||
android:viewportWidth="29"
|
||||
android:viewportHeight="29"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H29V29H0V0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V29H29V0"
|
||||
android:fillColor="#FFFFFF"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="30dp"
|
||||
android:height="28dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="28"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H30V28H0V0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V28H30V0"
|
||||
android:fillColor="#FFFFFF"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_info_black_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z"/>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_language_black_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM18.92,8h-2.95c-0.32,-1.25 -0.78,-2.45 -1.38,-3.56 1.84,0.63 3.37,1.91 4.33,3.56zM12,4.04c0.83,1.2 1.48,2.53 1.91,3.96h-3.82c0.43,-1.43 1.08,-2.76 1.91,-3.96zM4.26,14C4.1,13.36 4,12.69 4,12s0.1,-1.36 0.26,-2h3.38c-0.08,0.66 -0.14,1.32 -0.14,2 0,0.68 0.06,1.34 0.14,2L4.26,14zM5.08,16h2.95c0.32,1.25 0.78,2.45 1.38,3.56 -1.84,-0.63 -3.37,-1.9 -4.33,-3.56zM8.03,8L5.08,8c0.96,-1.66 2.49,-2.93 4.33,-3.56C8.81,5.55 8.35,6.75 8.03,8zM12,19.96c-0.83,-1.2 -1.48,-2.53 -1.91,-3.96h3.82c-0.43,1.43 -1.08,2.76 -1.91,3.96zM14.34,14L9.66,14c-0.09,-0.66 -0.16,-1.32 -0.16,-2 0,-0.68 0.07,-1.35 0.16,-2h4.68c0.09,0.65 0.16,1.32 0.16,2 0,0.68 -0.07,1.34 -0.16,2zM14.59,19.56c0.6,-1.11 1.06,-2.31 1.38,-3.56h2.95c-0.96,1.65 -2.49,2.93 -4.33,3.56zM16.36,14c0.08,-0.66 0.14,-1.32 0.14,-2 0,-0.68 -0.06,-1.34 -0.14,-2h3.38c0.16,0.64 0.26,1.31 0.26,2s-0.1,1.36 -0.26,2h-3.38z"/>
|
||||
</vector>
|
41
app/src/main/res/drawable/ic_logo_1.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="960dp"
|
||||
android:height="560dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="560">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M292.5,113.5l-33,29c0,0 -30,148 -17,212s18,97 91,99s324,0 324,0s80.265,-33.663 59,-261.959C701.5,30.5 292.5,113.5 292.5,113.5z"/>
|
||||
<path
|
||||
android:pathData="M723.062,157.08c-7.661,-28.84 -30.24,-51.548 -58.94,-59.265c-6.213,-1.68 -25.124,-6.773 -108.001,-9.24c-39.811,-1.19 -75.763,-1.204 -76.121,-1.204s-36.311,0.014 -76.124,1.204c-82.879,2.478 -101.785,7.577 -107.981,9.24c-28.694,7.719 -51.299,30.425 -58.954,59.265c-10.08,37.867 -10.374,114.072 -10.374,122.64c0,8.624 0.28,85.364 10.36,123.216c7.658,28.84 30.24,51.546 58.94,59.263c6.213,1.68 25.125,6.775 107.999,9.239c39.824,1.201 75.776,1.201 76.135,1.201s36.311,0 76.121,-1.204c82.88,-2.478 101.788,-7.576 107.987,-9.239c28.703,-7.723 51.296,-30.431 58.951,-59.251c10.08,-37.87 10.36,-114.609 10.36,-123.234C733.434,271.138 733.143,194.933 723.062,157.08zM697.28,396.068c-5.217,19.637 -20.583,35.098 -40.094,40.348c-35.363,9.537 -177.173,9.537 -177.173,9.537s-141.809,0 -177.172,-9.537c-19.51,-5.25 -34.877,-20.72 -40.093,-40.348c-9.475,-35.588 -9.475,-116.365 -9.475,-116.365s0,-80.184 9.475,-115.771c5.216,-19.636 20.583,-35.101 40.093,-40.348c35.35,-9.537 177.159,-9.537 177.159,-9.537s141.809,0 177.173,9.537c19.511,5.248 34.877,20.72 40.093,40.348c9.476,35.588 9.476,115.771 9.476,115.771S706.741,360.48 697.28,396.068z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startY="470.9961"
|
||||
android:startX="289.0122"
|
||||
android:endY="89.0262"
|
||||
android:endX="670.9821"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF0262FC"/>
|
||||
<item android:offset="1" android:color="#FFFE0020"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M554.665,262.298l-107.602,-69.423c-4.667,-2.723 -10.657,-1.147 -13.38,3.52c-0.002,0.002 -0.003,0.004 -0.004,0.006l-0.21,0.355c-2.715,4.67 -1.138,10.657 3.525,13.384l102.896,61.911c6.695,4.026 6.656,13.745 -0.069,17.721L436.449,350.84c-4.687,2.688 -6.314,8.66 -3.641,13.354l0.207,0.358c2.688,4.687 8.66,6.314 13.354,3.64l108.147,-68.553C568.181,290.979 568.259,271.071 554.665,262.298z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M499.726,271.04l-52.981,-29.845c-6.859,-3.864 -15.338,1.089 -15.338,8.96v59.69c0,7.871 8.479,12.824 15.338,8.961l52.981,-29.846C506.709,285.04 506.709,274.96 499.726,271.04z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startY="307.9883"
|
||||
android:startX="425.2808"
|
||||
android:endY="252.0134"
|
||||
android:endX="481.2556"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF0262FC"/>
|
||||
<item android:offset="1" android:color="#FFFE0020"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</vector>
|
|
@ -1,14 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="25dp"
|
||||
android:height="25dp"
|
||||
android:viewportWidth="25"
|
||||
android:viewportHeight="25"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H25V25H0V0Z"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_palette_black_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12,3c-4.97,0 -9,4.03 -9,9s4.03,9 9,9c0.83,0 1.5,-0.67 1.5,-1.5 0,-0.39 -0.15,-0.74 -0.39,-1.01 -0.23,-0.26 -0.38,-0.61 -0.38,-0.99 0,-0.83 0.67,-1.5 1.5,-1.5L16,16c2.76,0 5,-2.24 5,-5 0,-4.42 -4.03,-8 -9,-8zM6.5,12c-0.83,0 -1.5,-0.67 -1.5,-1.5S5.67,9 6.5,9 8,9.67 8,10.5 7.33,12 6.5,12zM9.5,8C8.67,8 8,7.33 8,6.5S8.67,5 9.5,5s1.5,0.67 1.5,1.5S10.33,8 9.5,8zM14.5,8c-0.83,0 -1.5,-0.67 -1.5,-1.5S13.67,5 14.5,5s1.5,0.67 1.5,1.5S15.33,8 14.5,8zM17.5,12c-0.83,0 -1.5,-0.67 -1.5,-1.5S16.67,9 17.5,9s1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5z"/>
|
||||
</vector>
|
|
@ -1,18 +1,9 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="32.5dp"
|
||||
android:height="32.5dp"
|
||||
android:viewportWidth="32.5"
|
||||
android:viewportHeight="32.5"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H32.5V32.5H0V0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V32.5H32.5V0"
|
||||
android:fillColor="#FFFFFF"
|
||||
/>
|
||||
</group>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="34dp"
|
||||
android:height="34dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M14.5,15.41C14.58,15.5 14.58,15.69 14.5,15.8C13.77,16.5 12.41,16.56 12,16.56C11.61,16.56 10.25,16.5 9.54,15.8C9.44,15.69 9.44,15.5 9.54,15.41C9.65,15.31 9.82,15.31 9.92,15.41C10.38,15.87 11.33,16 12,16C12.69,16 13.66,15.87 14.1,15.41C14.21,15.31 14.38,15.31 14.5,15.41M10.75,13.04C10.75,12.47 10.28,12 9.71,12C9.14,12 8.67,12.47 8.67,13.04C8.67,13.61 9.14,14.09 9.71,14.08C10.28,14.08 10.75,13.61 10.75,13.04M14.29,12C13.72,12 13.25,12.5 13.25,13.05S13.72,14.09 14.29,14.09C14.86,14.09 15.33,13.61 15.33,13.05C15.33,12.5 14.86,12 14.29,12M22,12C22,17.5 17.5,22 12,22S2,17.5 2,12C2,6.5 6.5,2 12,2S22,6.5 22,12M18.67,12C18.67,11.19 18,10.54 17.22,10.54C16.82,10.54 16.46,10.7 16.2,10.95C15.2,10.23 13.83,9.77 12.3,9.71L12.97,6.58L15.14,7.05C15.16,7.6 15.62,8.04 16.18,8.04C16.75,8.04 17.22,7.57 17.22,7C17.22,6.43 16.75,5.96 16.18,5.96C15.77,5.96 15.41,6.2 15.25,6.55L12.82,6.03C12.75,6 12.68,6.03 12.63,6.07C12.57,6.11 12.54,6.17 12.53,6.24L11.79,9.72C10.24,9.77 8.84,10.23 7.82,10.96C7.56,10.71 7.2,10.56 6.81,10.56C6,10.56 5.35,11.21 5.35,12C5.35,12.61 5.71,13.11 6.21,13.34C6.19,13.5 6.18,13.62 6.18,13.78C6.18,16 8.79,17.85 12,17.85C15.23,17.85 17.85,16.03 17.85,13.78C17.85,13.64 17.84,13.5 17.81,13.34C18.31,13.11 18.67,12.6 18.67,12Z"/>
|
||||
</vector>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="27dp"
|
||||
android:height="26dp"
|
||||
android:viewportWidth="27"
|
||||
android:viewportHeight="26"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H27V26H0V0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V26H27V0"
|
||||
android:fillColor="#451490D7"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,5 +1,9 @@
|
|||
<vector android:height="24dp" android:tint="#1490D7"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FF000000" android:pathData="M19.1,12.9a2.8,2.8 0,0 0,0.1 -0.9,2.8 2.8,0 0,0 -0.1,-0.9l2.1,-1.6a0.7,0.7 0,0 0,0.1 -0.6L19.4,5.5a0.7,0.7 0,0 0,-0.6 -0.2l-2.4,1a6.5,6.5 0,0 0,-1.6 -0.9l-0.4,-2.6a0.5,0.5 0,0 0,-0.5 -0.4H10.1a0.5,0.5 0,0 0,-0.5 0.4L9.3,5.4a5.6,5.6 0,0 0,-1.7 0.9l-2.4,-1a0.4,0.4 0,0 0,-0.5 0.2l-2,3.4c-0.1,0.2 0,0.4 0.2,0.6l2,1.6a2.8,2.8 0,0 0,-0.1 0.9,2.8 2.8,0 0,0 0.1,0.9L2.8,14.5a0.7,0.7 0,0 0,-0.1 0.6l1.9,3.4a0.7,0.7 0,0 0,0.6 0.2l2.4,-1a6.5,6.5 0,0 0,1.6 0.9l0.4,2.6a0.5,0.5 0,0 0,0.5 0.4h3.8a0.5,0.5 0,0 0,0.5 -0.4l0.3,-2.6a5.6,5.6 0,0 0,1.7 -0.9l2.4,1a0.4,0.4 0,0 0,0.5 -0.2l2,-3.4c0.1,-0.2 0,-0.4 -0.2,-0.6ZM12,15.6A3.6,3.6 0,1 1,15.6 12,3.6 3.6,0 0,1 12,15.6Z"/>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M19.1,12.9a2.8,2.8 0,0 0,0.1 -0.9,2.8 2.8,0 0,0 -0.1,-0.9l2.1,-1.6a0.7,0.7 0,0 0,0.1 -0.6L19.4,5.5a0.7,0.7 0,0 0,-0.6 -0.2l-2.4,1a6.5,6.5 0,0 0,-1.6 -0.9l-0.4,-2.6a0.5,0.5 0,0 0,-0.5 -0.4H10.1a0.5,0.5 0,0 0,-0.5 0.4L9.3,5.4a5.6,5.6 0,0 0,-1.7 0.9l-2.4,-1a0.4,0.4 0,0 0,-0.5 0.2l-2,3.4c-0.1,0.2 0,0.4 0.2,0.6l2,1.6a2.8,2.8 0,0 0,-0.1 0.9,2.8 2.8,0 0,0 0.1,0.9L2.8,14.5a0.7,0.7 0,0 0,-0.1 0.6l1.9,3.4a0.7,0.7 0,0 0,0.6 0.2l2.4,-1a6.5,6.5 0,0 0,1.6 0.9l0.4,2.6a0.5,0.5 0,0 0,0.5 0.4h3.8a0.5,0.5 0,0 0,0.5 -0.4l0.3,-2.6a5.6,5.6 0,0 0,1.7 -0.9l2.4,1a0.4,0.4 0,0 0,0.5 -0.2l2,-3.4c0.1,-0.2 0,-0.4 -0.2,-0.6ZM12,15.6A3.6,3.6 0,1 1,15.6 12,3.6 3.6,0 0,1 12,15.6Z"/>
|
||||
</vector>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="27dp"
|
||||
android:height="23dp"
|
||||
android:viewportWidth="27"
|
||||
android:viewportHeight="23"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0 0H27V23H0V0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V23H27V0"
|
||||
android:fillColor="#FFFFFF"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="316dp"
|
||||
android:height="802dp"
|
||||
android:viewportWidth="316"
|
||||
android:viewportHeight="802"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M9 0H307C311.971 0 316 4.02944 316 9V793C316 797.971 311.971 802 307 802H9C4.02944 802 0 797.971 0 793V9C0 4.02944 4.02944 0 9 0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V802H316V0"
|
||||
android:fillColor="#FFFFFF"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,20 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="382dp"
|
||||
android:height="120dp"
|
||||
android:viewportWidth="382"
|
||||
android:viewportHeight="120" >
|
||||
|
||||
<group>
|
||||
|
||||
<clip-path
|
||||
android:pathData="M9 0H373C377.971 0 382 4.02944 382 9V111C382 115.971 377.971 120 373 120H9C4.02944 120 0 115.971 0 111V9C0 4.02944 4.02944 0 9 0Z" />
|
||||
<path
|
||||
|
||||
android:pathData="M0 0V120H382V0"
|
||||
android:fillColor="#E8E5E5" />
|
||||
|
||||
</group>
|
||||
|
||||
</vector>
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="382dp"
|
||||
android:height="381dp"
|
||||
android:viewportWidth="382"
|
||||
android:viewportHeight="381"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M9 0H373C377.971 0 382 4.02944 382 9V372C382 376.971 377.971 381 373 381H9C4.02944 381 0 376.971 0 372V9C0 4.02944 4.02944 0 9 0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V381H382V0"
|
||||
android:fillColor="#E8E5E5"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,50 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="161dp"
|
||||
android:height="109dp"
|
||||
android:viewportWidth="161"
|
||||
android:viewportHeight="109"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M9 0H152C156.971 0 161 4.02944 161 9V100C161 104.971 156.971 109 152 109H9C4.02944 109 0 104.971 0 100V9C0 4.02944 4.02944 0 9 0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V109H161V0"
|
||||
android:fillColor="#C4C4C4"
|
||||
/>
|
||||
<group
|
||||
android:translateX="-0.478"
|
||||
android:translateY="-5.538"
|
||||
android:pivotX="80.5"
|
||||
android:pivotY="54.5"
|
||||
android:scaleX="2.797"
|
||||
android:scaleY="26.23"
|
||||
android:rotation="-45.651"
|
||||
>
|
||||
<path
|
||||
android:pathData="M0 0V109H161V0"
|
||||
>
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:type="linear"
|
||||
android:startX="40.25"
|
||||
android:startY="54.5"
|
||||
android:endX="120.75"
|
||||
android:endY="54.5"
|
||||
>
|
||||
<item
|
||||
android:color="#FF5C00"
|
||||
android:offset="0"
|
||||
/>
|
||||
<item
|
||||
android:color="#FF0F00"
|
||||
android:offset="1"
|
||||
/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="348dp"
|
||||
android:height="109dp"
|
||||
android:viewportWidth="348"
|
||||
android:viewportHeight="109"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M9 0H339C343.971 0 348 4.02944 348 9V100C348 104.971 343.971 109 339 109H9C4.02944 109 0 104.971 0 100V9C0 4.02944 4.02944 0 9 0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V109H348V0"
|
||||
android:fillColor="#6958D0"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="348dp"
|
||||
android:height="97dp"
|
||||
android:viewportWidth="348"
|
||||
android:viewportHeight="97"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M9 0H339C343.971 0 348 4.02944 348 9V88C348 92.9706 343.971 97 339 97H9C4.02944 97 0 92.9706 0 88V9C0 4.02944 4.02944 0 9 0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V97H348V0"
|
||||
android:fillColor="#DE181515"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,50 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="174dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="174"
|
||||
android:viewportHeight="108"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M9 0H165C169.971 0 174 4.02944 174 9V99C174 103.971 169.971 108 165 108H9C4.02944 108 0 103.971 0 99V9C0 4.02944 4.02944 0 9 0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V108H174V0"
|
||||
android:fillColor="#1643B8"
|
||||
/>
|
||||
<group
|
||||
android:translateX="-0.5"
|
||||
android:translateY="-0.298"
|
||||
android:pivotX="87"
|
||||
android:pivotY="54"
|
||||
android:scaleX="2.828"
|
||||
android:scaleY="5.563"
|
||||
android:rotation="-45"
|
||||
>
|
||||
<path
|
||||
android:pathData="M0 0V108H174V0"
|
||||
>
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:type="linear"
|
||||
android:startX="43.5"
|
||||
android:startY="54"
|
||||
android:endX="130.5"
|
||||
android:endY="54"
|
||||
>
|
||||
<item
|
||||
android:color="#2E73FF"
|
||||
android:offset="0"
|
||||
/>
|
||||
<item
|
||||
android:color="#FF0032"
|
||||
android:offset="1"
|
||||
/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
|
@ -1,18 +0,0 @@
|
|||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="34dp"
|
||||
android:height="26dp"
|
||||
android:viewportWidth="34"
|
||||
android:viewportHeight="26"
|
||||
>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M7 0H27C30.866 0 34 3.13401 34 7V19C34 22.866 30.866 26 27 26H7C3.13401 26 0 22.866 0 19V7C0 3.13401 3.13401 0 7 0Z"
|
||||
/>
|
||||
<path
|
||||
android:pathData="M0 0V26H34V0"
|
||||
android:fillColor="#000000"
|
||||
/>
|
||||
</group>
|
||||
</vector>
|
Before Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 237 B |
Before Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 756 B |
|
@ -8,19 +8,23 @@
|
|||
android:layout_height="match_parent"
|
||||
android:paddingTop="?attr/actionBarSize">
|
||||
|
||||
<include
|
||||
android:id="@+id/main_toolbar"
|
||||
layout="@layout/home_toolbar" />
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:id="@+id/bottom_nav"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="63dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="?android:attr/windowBackground"
|
||||
android:background="?colorSurface"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/frame_layout"
|
||||
app:menu="@menu/bottom_nav_menu" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/frame_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="760dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@id/bottom_nav"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
|
|
16
app/src/main/res/layout/activity_splash_screen.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
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:background="?colorSurface"
|
||||
tools:context=".SplashScreenActivity">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="400dp"
|
||||
android:src="@mipmap/ic_launcher_foreground"
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
</FrameLayout>
|
|
@ -1,376 +1,63 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.home.HomeFragment">
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="178dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:layout_marginBottom="433dp"
|
||||
android:src="@drawable/rectangle_3" />
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:fillViewport="true"
|
||||
tools:layout_marginTop="24dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="36dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginBottom="575dp"
|
||||
android:src="@drawable/rectangle_3" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="@dimen/stdp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="382dp"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="312dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:src="@drawable/rectangle_4" />
|
||||
<include
|
||||
android:id="@+id/home_vanced_wrapper"
|
||||
layout="@layout/include_vanced"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/stdp"
|
||||
android:layout_marginEnd="@dimen/stdp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/home_device_wrapper" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView7"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/imageView6"
|
||||
android:layout_alignEnd="@+id/imageView6"
|
||||
android:layout_alignBottom="@+id/imageView6"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginStart="23dp"
|
||||
android:layout_marginTop="48dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:layout_marginBottom="253dp"
|
||||
android:src="@drawable/rectangle_6"
|
||||
android:contentDescription="TODO" />
|
||||
<include
|
||||
android:id="@+id/home_microg_wrapper"
|
||||
layout="@layout/include_microg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/stdp"
|
||||
android:layout_marginTop="@dimen/stdp"
|
||||
android:layout_marginEnd="@dimen/stdp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/home_vanced_wrapper" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="141dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/imageView6"
|
||||
android:layout_alignBottom="@+id/imageView6"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:layout_marginEnd="243dp"
|
||||
android:layout_marginBottom="363dp"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/useful_links"
|
||||
android:textSize="22sp" />
|
||||
<include
|
||||
android:id="@+id/home_changelog_wrapper"
|
||||
layout="@layout/include_changelogs"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="@dimen/stdp"
|
||||
android:layout_marginTop="@dimen/stdp"
|
||||
android:layout_marginEnd="@dimen/stdp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
android:layout_width="165dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/imageView6"
|
||||
android:layout_alignTop="@+id/imageView6"
|
||||
android:layout_alignEnd="@+id/imageView6"
|
||||
android:layout_alignBottom="@+id/imageView6"
|
||||
android:layout_marginStart="17dp"
|
||||
android:layout_marginTop="167dp"
|
||||
android:layout_marginEnd="200dp"
|
||||
android:layout_marginBottom="144dp"
|
||||
android:background="@drawable/rectangle_5"
|
||||
android:text="@string/support_us_"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button2"
|
||||
android:layout_width="165dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/imageView6"
|
||||
android:layout_alignTop="@+id/imageView6"
|
||||
android:layout_alignEnd="@+id/imageView6"
|
||||
android:layout_alignBottom="@+id/imageView6"
|
||||
android:layout_marginStart="192dp"
|
||||
android:layout_marginTop="167dp"
|
||||
android:layout_marginEnd="17dp"
|
||||
android:layout_marginBottom="144dp"
|
||||
android:background="@drawable/rectangle_8"
|
||||
android:text="@string/website_text"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="#ffffff" />
|
||||
<include
|
||||
android:id="@+id/home_usefullinks_wrapper"
|
||||
layout="@layout/include_useful_links"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/stdp"
|
||||
android:layout_marginTop="@dimen/stdp"
|
||||
android:layout_marginEnd="@dimen/stdp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/home_changelog_wrapper" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/imageView6"
|
||||
android:layout_alignBottom="@+id/imageView6"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginStart="34dp"
|
||||
android:layout_marginTop="276dp"
|
||||
android:layout_marginEnd="30dp"
|
||||
android:layout_marginBottom="36dp"
|
||||
android:src="@drawable/rectangle_7" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="32dp"
|
||||
android:layout_alignStart="@+id/imageView2"
|
||||
android:layout_alignTop="@+id/imageView2"
|
||||
android:layout_alignEnd="@+id/imageView2"
|
||||
android:layout_alignBottom="@+id/imageView2"
|
||||
android:layout_marginStart="51dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:layout_marginEnd="250dp"
|
||||
android:layout_marginBottom="81dp"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/vanced"
|
||||
android:textColor="#1490D7"
|
||||
android:textSize="24sp" />
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView11"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/imageView2"
|
||||
android:layout_alignEnd="@+id/imageView2"
|
||||
android:layout_alignBottom="@+id/imageView2"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="41dp"
|
||||
android:layout_marginEnd="281dp"
|
||||
android:layout_marginBottom="46dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/latest"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView12"
|
||||
android:layout_width="99dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_alignStart="@+id/imageView2"
|
||||
android:layout_alignTop="@+id/imageView2"
|
||||
android:layout_alignEnd="@+id/imageView2"
|
||||
android:layout_alignBottom="@+id/imageView2"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="70dp"
|
||||
android:layout_marginEnd="270dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/installed"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button3"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/imageView2"
|
||||
android:layout_alignTop="@+id/imageView2"
|
||||
android:layout_alignEnd="@+id/imageView2"
|
||||
android:layout_alignBottom="@+id/imageView2"
|
||||
android:layout_marginStart="268dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:layout_marginBottom="70dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/install"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="#1490D7"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView9"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_alignStart="@+id/imageView2"
|
||||
android:layout_alignTop="@+id/imageView2"
|
||||
android:layout_alignEnd="@+id/imageView2"
|
||||
android:layout_alignBottom="@+id/imageView2"
|
||||
android:layout_marginStart="235dp"
|
||||
android:layout_marginTop="11dp"
|
||||
android:layout_marginEnd="105dp"
|
||||
android:layout_marginBottom="75dp"
|
||||
android:src="@drawable/outline_cloud_download_24" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView10"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_alignStart="@+id/imageView4"
|
||||
android:layout_alignTop="@+id/imageView4"
|
||||
android:layout_alignEnd="@+id/imageView4"
|
||||
android:layout_alignBottom="@+id/imageView4"
|
||||
android:layout_marginStart="235dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="105dp"
|
||||
android:layout_marginBottom="74dp"
|
||||
android:src="@drawable/outline_cloud_download_24" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView13"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="34dp"
|
||||
android:layout_alignStart="@+id/imageView4"
|
||||
android:layout_alignTop="@+id/imageView4"
|
||||
android:layout_alignEnd="@+id/imageView4"
|
||||
android:layout_alignBottom="@+id/imageView4"
|
||||
android:layout_marginStart="51dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:layout_marginEnd="224dp"
|
||||
android:layout_marginBottom="79dp"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/microg"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView14"
|
||||
android:layout_width="78dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/imageView4"
|
||||
android:layout_alignTop="@+id/imageView4"
|
||||
android:layout_alignEnd="@+id/imageView4"
|
||||
android:layout_alignBottom="@+id/imageView4"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="46dp"
|
||||
android:layout_marginEnd="286dp"
|
||||
android:layout_marginBottom="41dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/latest"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView15"
|
||||
android:layout_width="91dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/imageView4"
|
||||
android:layout_alignTop="@+id/imageView4"
|
||||
android:layout_alignEnd="@+id/imageView4"
|
||||
android:layout_alignBottom="@+id/imageView4"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="77dp"
|
||||
android:layout_marginEnd="256dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/installed"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button7"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/imageView4"
|
||||
android:layout_alignTop="@+id/imageView4"
|
||||
android:layout_alignEnd="@+id/imageView4"
|
||||
android:layout_alignBottom="@+id/imageView4"
|
||||
android:layout_marginStart="268dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:layout_marginBottom="63dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/install"
|
||||
android:textAllCaps="false"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button8"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignTop="@+id/imageView4"
|
||||
android:layout_alignEnd="@+id/imageView4"
|
||||
android:layout_alignBottom="@+id/imageView4"
|
||||
android:layout_marginTop="34dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginBottom="26dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/settings"
|
||||
android:textAllCaps="false"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView11"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_alignStart="@+id/imageView4"
|
||||
android:layout_alignTop="@+id/imageView4"
|
||||
android:layout_alignEnd="@+id/imageView4"
|
||||
android:layout_alignBottom="@+id/imageView4"
|
||||
android:layout_marginStart="238dp"
|
||||
android:layout_marginTop="46dp"
|
||||
android:layout_marginEnd="108dp"
|
||||
android:layout_marginBottom="38dp"
|
||||
android:src="@drawable/ic_settings_black_24dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="127dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/button"
|
||||
android:layout_alignTop="@+id/button"
|
||||
android:layout_alignEnd="@+id/button"
|
||||
android:layout_alignBottom="@+id/button"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="31dp"
|
||||
android:layout_marginBottom="58dp"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/brave_browser"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="240dp"
|
||||
android:layout_height="23dp"
|
||||
android:layout_alignStart="@+id/imageView7"
|
||||
android:layout_alignTop="@+id/imageView7"
|
||||
android:layout_alignEnd="@+id/imageView7"
|
||||
android:layout_alignBottom="@+id/imageView7"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_marginEnd="107dp"
|
||||
android:layout_marginBottom="83dp"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/vanced_medias"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView6"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_alignStart="@+id/imageView8"
|
||||
android:layout_alignTop="@+id/imageView8"
|
||||
android:layout_alignEnd="@+id/imageView8"
|
||||
android:layout_alignBottom="@+id/imageView8"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="223dp"
|
||||
android:layout_marginBottom="68dp"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/github_link"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
15
app/src/main/res/layout/fragment_microg_changelog.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout 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"
|
||||
tools:context=".MicrogChangelogFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="32sp"
|
||||
android:text="Same-but-for-microg" />
|
||||
|
||||
</FrameLayout>
|
|
@ -1,15 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
<Layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SettingsFragment">
|
||||
android:layout_width="match_parent">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="40sp"
|
||||
android:text="WIP" />
|
||||
|
||||
</FrameLayout>
|
||||
</Layout>
|
15
app/src/main/res/layout/fragment_vanced_changelog.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout 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"
|
||||
tools:context=".VancedChangelogFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="32sp"
|
||||
android:text="This-is-a-hardcoded-string" />
|
||||
|
||||
</FrameLayout>
|
|
@ -11,6 +11,16 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/rectangle_2"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark" />
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_info_black_24dp"
|
||||
android:backgroundTint="#ffffff"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="@dimen/eightdp"/>
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
</LinearLayout>
|
36
app/src/main/res/layout/include_changelogs.xml
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardBackgroundColor="e8e8e8">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="Changelogs"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/app_bar_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tablayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
</layout>
|
120
app/src/main/res/layout/include_microg.xml
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardCornerRadius="@dimen/eightdp"
|
||||
app:cardBackgroundColor="?colorSurfaceVariant"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="true">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/microg_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/microg"
|
||||
android:textColor="?colorPrimary"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:layout_marginStart="@dimen/thtdp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:layout_editor_absoluteX="47dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/microg_remote_latest_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:layout_marginTop="@dimen/eightdp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/microg_title">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/microg_latest"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/latest"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/microg_latest_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="IDK" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/microg_remote_latest_version">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/microg_installed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/installed"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/microg_installed_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="IDK" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/microg_installbtn"
|
||||
app:backgroundTint="?colorPrimary"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
android:layout_width="116dp"
|
||||
android:layout_height="40dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/install"
|
||||
android:textAllCaps="false"
|
||||
app:icon="@drawable/outline_cloud_download_24"
|
||||
android:layout_marginEnd="@dimen/eightdp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toEndOf="@+id/microg_title"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/microg_settingsbtn"
|
||||
app:backgroundTint="?colorPrimary"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/settings"
|
||||
android:textAllCaps="false"
|
||||
app:icon="@drawable/ic_settings_black_24dp"
|
||||
android:layout_marginEnd="@dimen/eightdp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
</layout>
|
384
app/src/main/res/layout/include_useful_links.xml
Normal file
|
@ -0,0 +1,384 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardCornerRadius="@dimen/eightdp"
|
||||
app:cardBackgroundColor="?colorSurfaceVariant"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="true">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="348dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/useful_links_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/useful_links"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:id="@+id/social_media_card"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="85dp"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:layout_marginEnd="@dimen/eightdp"
|
||||
android:foregroundGravity="center_vertical"
|
||||
app:cardBackgroundColor="#6958D0"
|
||||
app:cardCornerRadius="@dimen/eightdp"
|
||||
app:cardElevation="0dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/useful_links_title">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/social_media_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:layout_marginTop="@dimen/fourdp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/vanced_medias"
|
||||
android:textColor="#ffffff"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/social_media_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/social_media_title">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/discordbtn"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="33dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/tgbtn"
|
||||
app:backgroundTint="@android:color/transparent"
|
||||
app:icon="@drawable/vectordiscord"
|
||||
app:iconGravity="textStart" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/tgbtn"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="33dp"
|
||||
app:layout_constraintStart_toEndOf="@id/discordbtn"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/twitterbtn"
|
||||
app:backgroundTint="@android:color/transparent"
|
||||
app:icon="@drawable/vectortelegram"
|
||||
app:iconGravity="textStart" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/twitterbtn"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="33dp"
|
||||
app:layout_constraintStart_toEndOf="@id/tgbtn"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/redditbtn"
|
||||
app:backgroundTint="@android:color/transparent"
|
||||
app:icon="@drawable/vectortwitter"
|
||||
app:iconGravity="textStart" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/redditbtn"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="33dp"
|
||||
app:layout_constraintStart_toEndOf="@id/twitterbtn"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:backgroundTint="@android:color/transparent"
|
||||
app:icon="@drawable/ic_reddit"
|
||||
app:iconGravity="textStart"
|
||||
app:iconTint="#ffffff" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/twodp"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@id/social_media_buttons"
|
||||
app:layout_constraintStart_toStartOf="@id/social_media_buttons"
|
||||
app:layout_constraintTop_toBottomOf="@id/social_media_buttons">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/discord_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/telegram_text"
|
||||
android:gravity="start"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/discord"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/telegram_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintStart_toEndOf="@id/discord_text"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/twitter_text"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/telegram"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/twitter_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintStart_toEndOf="@id/telegram_text"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/reddit_text"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/twitter"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reddit_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintStart_toEndOf="@id/twitter_text"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/reddit"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/brave_website_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/social_media_card">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/brave_button"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="179dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:layout_marginEnd="@dimen/fourdp"
|
||||
android:text="@string/support_us_"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="#ffffff"
|
||||
app:backgroundTint="?colorPrimary"
|
||||
app:layout_constraintEnd_toStartOf="@id/website_button"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/website_button"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="179dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="9dp"
|
||||
android:text="@string/website_text"
|
||||
android:textAllCaps="false"
|
||||
app:backgroundTint="?colorPrimary"
|
||||
android:textColor="#ffffff"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/brave_button"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:id="@+id/github_projects_card"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="@dimen/eightdp"
|
||||
app:cardBackgroundColor="#111111"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/brave_website_buttons">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="393dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/github_projects_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:layout_marginTop="@dimen/fourdp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/github_projects"
|
||||
android:textColor="#ffffff"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/github_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/fourdp"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/github_projects_title">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/github_managerbtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="35dp"
|
||||
android:layout_gravity="start"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/github_botbtn"
|
||||
app:backgroundTint="@android:color/transparent"
|
||||
app:icon="@drawable/vectorgithub"
|
||||
app:iconGravity="textStart" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/github_botbtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="35dp"
|
||||
android:layout_gravity="end"
|
||||
app:backgroundTint="@android:color/transparent"
|
||||
app:layout_constraintStart_toEndOf="@id/github_managerbtn"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/github_websitebtn"
|
||||
app:icon="@drawable/vectorgithub"
|
||||
app:iconGravity="textStart" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/github_websitebtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="35dp"
|
||||
android:layout_gravity="end"
|
||||
app:layout_constraintStart_toEndOf="@id/github_botbtn"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:backgroundTint="@android:color/transparent"
|
||||
app:icon="@drawable/vectorgithub"
|
||||
app:iconGravity="textStart" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/github_buttons">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/github_managertxt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/github_bottxt"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/github_manager"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/github_bottxt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
app:layout_constraintStart_toEndOf="@id/github_managertxt"
|
||||
app:layout_constraintEnd_toStartOf="@id/github_websitetxt"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/github_bot"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/github_websitetxt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
app:layout_constraintStart_toEndOf="@id/github_bottxt"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="@string/github_website"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
</layout>
|
104
app/src/main/res/layout/include_vanced.xml
Normal file
|
@ -0,0 +1,104 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardCornerRadius="@dimen/eightdp"
|
||||
app:cardBackgroundColor="?colorSurfaceVariant"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="true">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/exo_bold"
|
||||
android:text="@string/vanced"
|
||||
android:textColor="?colorPrimary"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:layout_marginStart="@dimen/thtdp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:layout_editor_absoluteX="47dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/vanced_remote_latest_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/vanced_title">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_latest"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/latest"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_latest_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="IDK" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/vanced_remote_latest_version">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_installed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/installed"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_installed_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/eightdp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
android:text="IDK" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/vanced_installbtn"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
app:backgroundTint="?colorPrimary"
|
||||
android:layout_width="116dp"
|
||||
android:layout_height="40dp"
|
||||
android:text="@string/install"
|
||||
android:textAllCaps="false"
|
||||
android:layout_marginEnd="@dimen/eightdp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
tools:layout_editor_absoluteY="0dp"
|
||||
android:fontFamily="@font/exo_semibold"
|
||||
app:icon="@drawable/outline_cloud_download_24"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
</layout>
|
|
@ -7,7 +7,7 @@
|
|||
android:title="@string/home" />
|
||||
<item
|
||||
android:id="@+id/navigation_settings"
|
||||
android:icon="@drawable/vectorsetting_icon"
|
||||
android:icon="@drawable/ic_settings_black_24dp"
|
||||
android:title="@string/settings" />
|
||||
|
||||
</menu>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<navigation
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/mobile_navigation"
|
||||
|
@ -9,12 +10,14 @@
|
|||
android:id="@+id/navigation_home"
|
||||
android:name="com.vanced.manager.ui.home.HomeFragment"
|
||||
android:label="@string/title_home"
|
||||
tools:layout="@layout/fragment_home" />
|
||||
tools:layout="@layout/fragment_home" >
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/navigation_settings"
|
||||
android:name="com.vanced.manager.SettingsFragment"
|
||||
android:label="@string/settings"
|
||||
tools:layout="@layout/fragment_settings" />
|
||||
tools:layout="@layout/fragment_settings" >
|
||||
</fragment>
|
||||
|
||||
</navigation>
|
||||
|
|
26
app/src/main/res/values-night/themes.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Oled" parent="Theme.MaterialComponents">
|
||||
|
||||
<item name="colorPrimary">#1490D7</item>
|
||||
<item name="colorPrimaryVariant">#804EAFF5</item>
|
||||
<item name="colorSecondary">#3E78AF</item>
|
||||
<item name="colorSecondaryVariant">#803E78AF</item>
|
||||
<item name="colorSurface">#000000</item>
|
||||
<item name="colorSurfaceVariant">#363434</item>
|
||||
<item name="colorSurfaceSurfaceVariant">?colorSurface</item>
|
||||
<item name="colorOnPrimary">#F9F9F9</item>
|
||||
<item name="colorOnPrimaryVariant">#e8e8e8</item>
|
||||
<item name="colorOnSecondary">#F9F9F9</item>
|
||||
<item name="colorOnBackground">?colorOnSurface</item>
|
||||
<item name="colorError">#CC0047</item>
|
||||
<item name="colorOnError">#F9F9F9</item>
|
||||
<item name="colorOnSurface">#444444</item>
|
||||
<item name="colorOnSurfaceVariant">#BF444444</item>
|
||||
<item name="colorDisabled">#808080</item>
|
||||
<item name="colorDisabledVariant">#66808080</item>
|
||||
|
||||
</style>
|
||||
|
||||
</resources>
|
20
app/src/main/res/values/arrays.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string-array name="theme_modes">
|
||||
<item>"System based"</item>
|
||||
<item>"Light theme"</item>
|
||||
<item>"Dark theme"</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="theme_modes_values">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="languages">
|
||||
<item>Coming soon(tm)</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
24
app/src/main/res/values/attrs.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<attr name="cardStyle" format="reference" />
|
||||
<attr name="colorAccentFallback" format="reference" />
|
||||
<attr name="imageColorTint" format="reference" />
|
||||
<attr name="colorControl" format="reference" />
|
||||
<attr name="colorDisabled" format="color" />
|
||||
<attr name="colorDisabledVariant" format="color" />
|
||||
<attr name="colorSurfaceVariant" format="color" />
|
||||
<attr name="colorOnPrimaryVariant" format="color" />
|
||||
<attr name="colorOnSurfaceVariant" format="color" />
|
||||
<attr name="colorSurfaceSurfaceVariant" format="color" />
|
||||
|
||||
<!-- Declare custom theme attributes that allow changing which styles are
|
||||
used for button bars depending on the API level.
|
||||
?android:attr/buttonBarStyle is new as of API 11 so this is
|
||||
necessary to support previous API levels. -->
|
||||
<declare-styleable name="ButtonBarContainerTheme">
|
||||
<attr name="metaButtonBarStyle" format="reference" />
|
||||
<attr name="metaButtonBarButtonStyle" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
|
@ -1,9 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#6200EE</color>
|
||||
<color name="colorPrimaryDark">#3700B3</color>
|
||||
<color name="colorAccent">#1490D7</color>
|
||||
<color name="white">#ffffff</color>
|
||||
<color name="Vanced">#d834eb</color>
|
||||
<color name="Brave">#fa6711</color>
|
||||
<color name="Discord">#7289DA</color>
|
||||
<color name="Twitter">#1DA1F2</color>
|
||||
<color name="Telegram">#0088cc</color>
|
||||
<color name="Reddit">#FF4500</color>
|
||||
<color name="GitHub">#24292e</color>
|
||||
|
||||
<color name="black_overlay">#66000000</color>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -2,4 +2,13 @@
|
|||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
|
||||
<dimen name="twodp">2dp</dimen>
|
||||
<dimen name="fourdp">4dp</dimen>
|
||||
<dimen name="eightdp">8dp</dimen>
|
||||
<dimen name="twelvedp">12dp</dimen>
|
||||
<dimen name="stdp">16dp</dimen>
|
||||
<dimen name="thtdp">32dp</dimen>
|
||||
<dimen name="fedp">48dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -4,12 +4,14 @@
|
|||
<string name="home">Home</string>
|
||||
<string name="vanced">Vanced</string>
|
||||
<string name="install">Install</string>
|
||||
<string name="uninstall">Uninstall</string>
|
||||
<string name="update">Update</string>
|
||||
<string name="latest">Latest:</string>
|
||||
<string name="installed">Installed:</string>
|
||||
<string name="n_a">N/A</string>
|
||||
<string name="microg">MicroG</string>
|
||||
<string name="settings">Settings</string>
|
||||
<string name="github_link">GitHub projects</string>
|
||||
<string name="github_projects">GitHub projects</string>
|
||||
<string name="vanced_medias">Vanced on Social Medias</string>
|
||||
<string name="website">Website</string>
|
||||
<string name="discord">Discord</string>
|
||||
|
@ -23,4 +25,8 @@
|
|||
<string name="github_manager">Manager</string>
|
||||
<string name="github_bot">Bot</string>
|
||||
<string name="github_website">Website</string>
|
||||
<string name="theme">Theme</string>
|
||||
<string name="title_activity_splash_screen">SplashScreenActivity</string>
|
||||
<string name="dummy_button">Dummy Button</string>
|
||||
<string name="dummy_content">DUMMY\nCONTENT</string>
|
||||
</resources>
|
||||
|
|
|
@ -1,214 +1,23 @@
|
|||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<!--
|
||||
Font family: Exo
|
||||
Line height: 32sp
|
||||
(identical to box height)
|
||||
-->
|
||||
|
||||
<style name="vanced">
|
||||
<item name="android:textSize">
|
||||
24sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#2E73FF
|
||||
</item>
|
||||
<style name="FullscreenTheme" parent="AppTheme">
|
||||
<item name="android:actionBarStyle">@style/FullscreenActionBarStyle</item>
|
||||
<item name="android:windowActionBarOverlay">true</item>
|
||||
<item name="android:windowBackground">@null</item>
|
||||
<item name="metaButtonBarStyle">?android:attr/buttonBarStyle</item>
|
||||
<item name="metaButtonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="install">
|
||||
<item name="android:textSize">
|
||||
18sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#1490D7
|
||||
</item>
|
||||
<style name="FullscreenActionBarStyle" parent="Widget.AppCompat.ActionBar">
|
||||
<item name="android:background">@color/black_overlay</item>
|
||||
</style>
|
||||
|
||||
<style name="latest_inst">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#000000
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="n_a">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#000000
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="microg">
|
||||
<item name="android:textSize">
|
||||
24sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#2E73FF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="settings">
|
||||
<item name="android:textSize">
|
||||
18sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#5E2E73FF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="github_link">
|
||||
<item name="android:textSize">
|
||||
18sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="vanced_medias">
|
||||
<item name="android:textSize">
|
||||
18sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="website">
|
||||
<item name="android:textSize">
|
||||
18sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="discord">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="telegram">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="twitter">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="brave_browser">
|
||||
<item name="android:textSize">
|
||||
18sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="support_us">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="useful_links">
|
||||
<item name="android:textSize">
|
||||
18sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#000000
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="reddit">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="website_text">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="github_manager">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="github_bot">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="github_website">
|
||||
<item name="android:textSize">
|
||||
14sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="home">
|
||||
<item name="android:textSize">
|
||||
36sp
|
||||
</item>
|
||||
<item name="android:textColor">
|
||||
#FFFFFF
|
||||
</item>
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
|
|
26
app/src/main/res/values/themes.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Light" parent="Theme.MaterialComponents.Light">
|
||||
|
||||
<item name="colorPrimary">#1490D7</item>
|
||||
<item name="colorPrimaryVariant">#804EAFF5</item>
|
||||
<item name="colorSecondary">#3E78AF</item>
|
||||
<item name="colorSecondaryVariant">#803E78AF</item>
|
||||
<item name="colorSurface">#ffffff</item>
|
||||
<item name="colorSurfaceVariant">#E8E8E8</item>
|
||||
<item name="colorSurfaceSurfaceVariant">?colorSurface</item>
|
||||
<item name="colorOnPrimary">#F9F9F9</item>
|
||||
<item name="colorOnPrimaryVariant">#e8e8e8</item>
|
||||
<item name="colorOnSecondary">#F9F9F9</item>
|
||||
<item name="colorOnBackground">?colorOnSurface</item>
|
||||
<item name="colorError">#CC0047</item>
|
||||
<item name="colorOnError">#F9F9F9</item>
|
||||
<item name="colorOnSurface">#444444</item>
|
||||
<item name="colorOnSurfaceVariant">#BF444444</item>
|
||||
<item name="colorDisabled">#808080</item>
|
||||
<item name="colorDisabledVariant">#66808080</item>
|
||||
|
||||
</style>
|
||||
|
||||
</resources>
|
44
app/src/main/res/xml/preferences.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<Preference
|
||||
android:key="update_check"
|
||||
android:title="Check for updates"/>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Interface">
|
||||
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_brush_black_24dp"
|
||||
android:key="default_theme"
|
||||
android:title="Theme"
|
||||
android:summary="Choose your prefered theme"
|
||||
android:entries="@array/theme_modes"
|
||||
android:entryValues="@array/theme_modes_values"
|
||||
android:defaultValue="0"/>
|
||||
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_palette_black_24dp"
|
||||
android:key="accent_color"/>
|
||||
|
||||
<ListPreference
|
||||
android:key="language"
|
||||
android:icon="@drawable/ic_language_black_24dp"
|
||||
android:title="Language"
|
||||
android:summary="Choose prefered language"
|
||||
android:entries="@array/languages"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Manager">
|
||||
|
||||
<SwitchPreference
|
||||
android:title="Push Notifications"
|
||||
android:key="push_notifications_status"
|
||||
android:summary="Receive push notifications when update is released"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|