├── .gitignore ├── .idea ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── gradle.xml ├── misc.xml ├── runConfigurations.xml └── vcs.xml ├── LICENSE ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── me │ │ └── inassar │ │ └── slidingcontent │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── me │ │ │ └── inassar │ │ │ └── slidingcontent │ │ │ ├── extensions.kt │ │ │ ├── model │ │ │ └── NavItemModel.kt │ │ │ ├── state │ │ │ └── ScreenState.kt │ │ │ └── view │ │ │ ├── activity │ │ │ ├── MainActivity.kt │ │ │ ├── MainActivityInteractor.kt │ │ │ ├── MainActivityState.kt │ │ │ └── MainActivityViewModel.kt │ │ │ └── adapter │ │ │ └── NavAdapter.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── animated_gradient_background.xml │ │ ├── gradient_1.xml │ │ ├── gradient_2.xml │ │ ├── gradient_3.xml │ │ ├── ic_brightness_1_black_24dp.xml │ │ ├── ic_camera_alt_black_24dp.xml │ │ ├── ic_chat_bubble_black_24dp.xml │ │ ├── ic_email_black_24dp.xml │ │ ├── ic_launcher_background.xml │ │ ├── ic_man.xml │ │ ├── ic_people_black_24dp.xml │ │ ├── ic_settings_black_24dp.xml │ │ ├── ic_videocam_black_24dp.xml │ │ ├── ic_whatshot_black_24dp.xml │ │ ├── ic_work_black_24dp.xml │ │ └── nav_item_bg.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── app_bar_main.xml │ │ ├── content_main.xml │ │ ├── nav_drawer_header.xml │ │ ├── nav_drawer_layout.xml │ │ └── nav_item_row_layout.xml │ │ ├── menu │ │ └── menu_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── me │ └── inassar │ └── slidingcontent │ └── ExampleUnitTest.kt ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── screenshoot ├── 0-preview.jpg ├── 1-design.jpg └── 2-design.png └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 9 | 10 | 11 | 21 | 22 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 39 | 40 | 143 | 144 | 146 | 147 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Ahmed Nassar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SlidingMenuNavigation 2 | 3 | ## Introduction 4 | 5 | This is a [PROJECT IVORY](https://github.com/ranger163/ProjectIvory) repository for a picked up free design from [uplabs.com](https://www.uplabs.com/posts/side-menu-mobile-navigation) website written 6 | in kotlin using MVVM design pattern that containes one screen "Home" screen.I've implemented the screen and it's 7 | functions "NOT ONLY DESIGN OR XML FILES"and made it ready to be customized on your project if you wish to use it just clone 8 | this project and start customizing. 9 | 10 | ## Requirements 11 | 12 | This module requires the following modules/libraries: 13 | 14 | * [Kotlin](https://kotlinlang.org) 15 | * [Androidx](https://developer.android.com/jetpack/androidx) 16 | * [Android ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel) 17 | * [Android LiveData](https://developer.android.com/topic/libraries/architecture/livedata) 18 | * [Navigation Drawer](https://developer.android.com/training/implementing-navigation/nav-drawer) 19 | * [MVVM Design pattern](https://antonioleiva.com/mvvm-vs-mvp) 20 | 21 | ## Installation 22 | 23 | Install as usual, 24 | * Clone this repo. 25 | * Update your android studio to verion 3.3.1 . 26 | * Happy coding. 27 | * Support me by staring this repo and following me for more projects. 28 | 29 | ## APK 30 | 31 | You can try the apk on your device from [here](https://drive.google.com/open?id=1qJyZGiLsbsP9i6l1Bf5O_VAcERn6aMP6) 32 | 33 | ## Screen Shoots 34 | 35 | | Preview | 36 | | ------------- | 37 | | ![Configuration Screenshot](/screenshoot/0-preview.jpg) | 38 | 39 | | Deisgn | 40 | | ------------- | 41 | | ![Configuration Screenshot](/screenshoot/1-design.jpg) | 42 | 43 | ## Hire Me 44 | I'm ready for a full-time or a freelancing job, just drop me an email [here](https://www.inassar.me) and let's do our chating. 45 | 46 | ## License 47 | Made with :heart: by [Ahmed Nassar](https://github.com/ranger163), licensed under the [MIT License](LICENSE) 48 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | apply plugin: 'kotlin-android' 4 | 5 | apply plugin: 'kotlin-android-extensions' 6 | 7 | android { 8 | compileSdkVersion 28 9 | defaultConfig { 10 | applicationId "me.inassar.slidingcontent" 11 | minSdkVersion 18 12 | targetSdkVersion 28 13 | versionCode 1 14 | versionName "1.0" 15 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 16 | vectorDrawables.useSupportLibrary = true 17 | } 18 | buildTypes { 19 | release { 20 | minifyEnabled false 21 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 22 | } 23 | } 24 | } 25 | 26 | dependencies { 27 | testImplementation 'junit:junit:4.12' 28 | implementation fileTree(dir: 'libs', include: ['*.jar']) 29 | androidTestImplementation 'androidx.test:runner:1.1.2-alpha01' 30 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.2-alpha01' 31 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 32 | implementation 'androidx.appcompat:appcompat:1.1.0-alpha02' 33 | implementation 'androidx.core:core-ktx:1.1.0-alpha04' 34 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 35 | implementation 'com.google.android.material:material:1.1.0-alpha03' 36 | implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.0.0' 37 | implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha02' 38 | } 39 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/me/inassar/slidingcontent/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent 2 | 3 | import androidx.test.InstrumentationRegistry 4 | import androidx.test.runner.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getTargetContext() 22 | assertEquals("me.inassar.slidingcontent", appContext.packageName) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/extensions.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent 2 | 3 | import android.content.Context 4 | import android.graphics.drawable.AnimationDrawable 5 | import android.view.View 6 | import android.widget.Toast 7 | 8 | fun View.enableAnimatedBackground() { 9 | val animationDrawable = background as AnimationDrawable 10 | animationDrawable.apply { 11 | setEnterFadeDuration(2000) 12 | setExitFadeDuration(4000) 13 | start() 14 | } 15 | } 16 | 17 | fun Context.toast(message: String) { 18 | Toast.makeText(this, message, Toast.LENGTH_SHORT).show() 19 | } -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/model/NavItemModel.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent.model 2 | 3 | data class NavItemModel(val icon: Int) -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/state/ScreenState.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent.state 2 | 3 | sealed class ScreenState { 4 | class Render(val renderState: T) : ScreenState() 5 | } -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/view/activity/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent.view.activity 2 | 3 | import android.graphics.Color 4 | import android.os.Bundle 5 | import android.view.Menu 6 | import android.view.MenuItem 7 | import android.view.View 8 | import androidx.appcompat.app.ActionBarDrawerToggle 9 | import androidx.appcompat.app.AppCompatActivity 10 | import androidx.core.view.GravityCompat 11 | import androidx.lifecycle.ViewModelProviders 12 | import androidx.recyclerview.widget.GridLayoutManager 13 | import com.google.android.material.snackbar.Snackbar 14 | import kotlinx.android.synthetic.main.activity_main.* 15 | import kotlinx.android.synthetic.main.app_bar_main.* 16 | import kotlinx.android.synthetic.main.nav_drawer_layout.* 17 | import me.inassar.slidingcontent.R 18 | import me.inassar.slidingcontent.enableAnimatedBackground 19 | import me.inassar.slidingcontent.state.ScreenState 20 | import me.inassar.slidingcontent.toast 21 | import me.inassar.slidingcontent.view.adapter.NavAdapter 22 | 23 | class MainActivity : AppCompatActivity() { 24 | 25 | private lateinit var toggle: ActionBarDrawerToggle 26 | private lateinit var viewModel: MainActivityViewModel 27 | 28 | override fun onCreate(savedInstanceState: Bundle?) { 29 | super.onCreate(savedInstanceState) 30 | setContentView(R.layout.activity_main) 31 | setSupportActionBar(toolbar) 32 | 33 | viewModel = ViewModelProviders.of( 34 | this, 35 | MainActivityViewModel.MainActivityViewModelFactory(MainActivityInteractor()) 36 | )[MainActivityViewModel::class.java] 37 | viewModel.navItemsState.observe(::getLifecycle, ::updateDrawerItems) 38 | 39 | setDrawer() 40 | interactions() 41 | } 42 | 43 | override fun onCreateOptionsMenu(menu: Menu): Boolean { 44 | // Inflate the menu; this adds items to the action bar if it is present. 45 | menuInflater.inflate(R.menu.menu_main, menu) 46 | return true 47 | } 48 | 49 | override fun onOptionsItemSelected(item: MenuItem): Boolean { 50 | // Handle action bar item clicks here. The action bar will 51 | // automatically handle clicks on the Home/Up button, so long 52 | // as you specify a parent activity in AndroidManifest.xml. 53 | return when (item.itemId) { 54 | R.id.action_settings -> true 55 | else -> super.onOptionsItemSelected(item) 56 | } 57 | } 58 | 59 | override fun onBackPressed() { 60 | if (drawerLayout.isDrawerOpen(GravityCompat.START)) { 61 | drawerLayout.closeDrawer(GravityCompat.START) 62 | } else { 63 | super.onBackPressed() 64 | } 65 | } 66 | 67 | private fun interactions() { 68 | fab.setOnClickListener { view -> 69 | Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) 70 | .setAction("Action", null).show() 71 | } 72 | } 73 | 74 | private fun setDrawer() { 75 | toggle = object : ActionBarDrawerToggle( 76 | this, drawerLayout, toolbar, 77 | R.string.nav_drawer_open, R.string.nav_drawer_close 78 | ) { 79 | 80 | val scaleFactor = 6f 81 | 82 | override fun onDrawerSlide(drawerView: View, slideOffset: Float) { 83 | super.onDrawerSlide(drawerView, slideOffset) 84 | val slideX = drawerView.width.times(slideOffset) 85 | content.apply { 86 | translationX = slideX 87 | scaleX = 1.minus(slideOffset.div(scaleFactor)) 88 | scaleY = 1.minus(slideOffset.div(scaleFactor)) 89 | } 90 | } 91 | }.apply { syncState() } 92 | 93 | drawerLayout.apply { 94 | setScrimColor(Color.TRANSPARENT) 95 | drawerElevation = 0f 96 | addDrawerListener(toggle) 97 | enableAnimatedBackground() 98 | } 99 | } 100 | 101 | private fun updateDrawerItems(screenState: ScreenState?) { 102 | when (screenState) { 103 | is ScreenState.Render -> setDrawerItems(screenState.renderState) 104 | } 105 | } 106 | 107 | private fun setDrawerItems(renderState: MainActivityState) { 108 | when (renderState) { 109 | is MainActivityState.ShowNavItems -> { 110 | navRecycler.apply { 111 | layoutManager = GridLayoutManager(this@MainActivity, 2) 112 | adapter = NavAdapter(renderState.navItems, viewModel::onNavItemClicked) 113 | } 114 | } 115 | is MainActivityState.HandleNavItemClick -> { 116 | toast("ItemClicked") 117 | drawerLayout.closeDrawer(GravityCompat.START) 118 | } 119 | } 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/view/activity/MainActivityInteractor.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent.view.activity 2 | 3 | import me.inassar.slidingcontent.R 4 | import me.inassar.slidingcontent.model.NavItemModel 5 | 6 | class MainActivityInteractor { 7 | 8 | fun getNavItems(callback: (ArrayList) -> Unit) { 9 | callback(createNavItemList()) 10 | } 11 | 12 | private fun createNavItemList(): ArrayList { 13 | 14 | val navItems:ArrayList? = ArrayList() 15 | navItems?.add(NavItemModel(R.drawable.ic_whatshot_black_24dp)) 16 | navItems?.add(NavItemModel(R.drawable.ic_work_black_24dp)) 17 | navItems?.add(NavItemModel(R.drawable.ic_videocam_black_24dp)) 18 | navItems?.add(NavItemModel(R.drawable.ic_settings_black_24dp)) 19 | navItems?.add(NavItemModel(R.drawable.ic_camera_alt_black_24dp)) 20 | navItems?.add(NavItemModel(R.drawable.ic_email_black_24dp)) 21 | navItems?.add(NavItemModel(R.drawable.ic_people_black_24dp)) 22 | navItems?.add(NavItemModel(R.drawable.ic_chat_bubble_black_24dp)) 23 | 24 | return navItems!! 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/view/activity/MainActivityState.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent.view.activity 2 | 3 | import me.inassar.slidingcontent.model.NavItemModel 4 | 5 | sealed class MainActivityState { 6 | class ShowNavItems(val navItems: ArrayList) : MainActivityState() 7 | class HandleNavItemClick(val navItem: NavItemModel) : MainActivityState() 8 | } -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/view/activity/MainActivityViewModel.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent.view.activity 2 | 3 | import androidx.lifecycle.LiveData 4 | import androidx.lifecycle.MutableLiveData 5 | import androidx.lifecycle.ViewModel 6 | import androidx.lifecycle.ViewModelProvider 7 | import me.inassar.slidingcontent.model.NavItemModel 8 | import me.inassar.slidingcontent.state.ScreenState 9 | 10 | class MainActivityViewModel(private val mainActivityInteractor: MainActivityInteractor) : ViewModel() { 11 | 12 | private lateinit var _navItemsState: MutableLiveData> 13 | val navItemsState: LiveData> 14 | get() { 15 | if (!::_navItemsState.isInitialized) { 16 | _navItemsState = MutableLiveData() 17 | mainActivityInteractor.getNavItems(::onNavItemsLoaded) 18 | } 19 | return _navItemsState 20 | } 21 | 22 | private fun onNavItemsLoaded(navItems: ArrayList) { 23 | _navItemsState.value = ScreenState.Render(MainActivityState.ShowNavItems(navItems)) 24 | } 25 | 26 | fun onNavItemClicked(navItem: NavItemModel) { 27 | _navItemsState.value = ScreenState.Render(MainActivityState.HandleNavItemClick(navItem)) 28 | } 29 | 30 | class MainActivityViewModelFactory(private val mainActivityInteractor: MainActivityInteractor) : 31 | ViewModelProvider.NewInstanceFactory() { 32 | override fun create(modelClass: Class): T { 33 | return MainActivityViewModel(mainActivityInteractor) as T 34 | } 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /app/src/main/java/me/inassar/slidingcontent/view/adapter/NavAdapter.kt: -------------------------------------------------------------------------------- 1 | package me.inassar.slidingcontent.view.adapter 2 | 3 | import android.view.LayoutInflater 4 | import android.view.View 5 | import android.view.ViewGroup 6 | import androidx.recyclerview.widget.RecyclerView 7 | import kotlinx.android.synthetic.main.nav_item_row_layout.view.* 8 | import me.inassar.slidingcontent.R 9 | import me.inassar.slidingcontent.model.NavItemModel 10 | 11 | class NavAdapter( 12 | private val itemData: ArrayList, 13 | private val itemClick: (NavItemModel) -> Unit 14 | ) : 15 | RecyclerView.Adapter() { 16 | 17 | override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { 18 | return ViewHolder( 19 | LayoutInflater.from(parent.context) 20 | .inflate(R.layout.nav_item_row_layout, parent, false) 21 | ) 22 | } 23 | 24 | override fun getItemCount(): Int { 25 | return if (itemData.isNotEmpty()) 26 | itemData.size 27 | else 0 28 | } 29 | 30 | override fun onBindViewHolder(holder: ViewHolder, position: Int) { 31 | holder.bind(itemData[position], itemClick) 32 | } 33 | 34 | inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { 35 | fun bind(item: NavItemModel, itemClick: (NavItemModel) -> Unit) { 36 | // UI Setting Code 37 | itemView.navItemImg.setImageResource(item.icon) 38 | itemView.setOnClickListener { itemClick(item) } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/animated_gradient_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/gradient_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/gradient_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/gradient_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_brightness_1_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_camera_alt_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_chat_bubble_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_email_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 62 | 64 | 66 | 68 | 70 | 72 | 74 | 75 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_man.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 13 | 16 | 19 | 22 | 25 | 28 | 31 | 34 | 37 | 40 | 43 | 46 | 47 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_people_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_settings_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_videocam_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_whatshot_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_work_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/nav_item_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/layout/app_bar_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 20 | 21 | 22 | 23 | 24 | 25 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/nav_drawer_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 17 | 18 | 33 | 34 | 47 | 48 | 58 | 59 | 69 | 70 | -------------------------------------------------------------------------------- /app/src/main/res/layout/nav_drawer_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/nav_item_row_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ranger163/SlidingMenuNavigation/a56158951771af11079c7b39321c9727b18ea8c8/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | #FFFFFF 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SlidingContent 3 | Settings 4 | "@ranger163" 5 | Option 1 6 | Option 2 7 | Option 3 8 | Open navigation drawer 9 | Close navigation drawer 10 | 80% 11 | Ahmed Nassar 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 |