Skip to content
Permalink
Browse files

Init commit.

  • Loading branch information...
naz013 committed Apr 5, 2019
0 parents commit 5337b9c8d12cac3ee7a0e06f2dba9f6df79b8cdc
Showing with 993 additions and 0 deletions.
  1. +13 −0 .gitignore
  2. +147 −0 .idea/codeStyles/Project.xml
  3. +5 −0 .idea/codeStyles/codeStyleConfig.xml
  4. +19 −0 .idea/gradle.xml
  5. +14 −0 .idea/misc.xml
  6. +12 −0 .idea/runConfigurations.xml
  7. +6 −0 .idea/vcs.xml
  8. +1 −0 app/.gitignore
  9. +28 −0 app/build.gradle
  10. +21 −0 app/proguard-rules.pro
  11. +24 −0 app/src/androidTest/java/com/github/naz013/example/ExampleInstrumentedTest.kt
  12. +21 −0 app/src/main/AndroidManifest.xml
  13. +25 −0 app/src/main/java/com/github/naz013/example/MainActivity.kt
  14. +34 −0 app/src/main/res/drawable-v24/ic_launcher_foreground.xml
  15. +4 −0 app/src/main/res/drawable/ic_home.xml
  16. +4 −0 app/src/main/res/drawable/ic_inbox.xml
  17. +74 −0 app/src/main/res/drawable/ic_launcher_background.xml
  18. +5 −0 app/src/main/res/drawable/ic_user_avatar.xml
  19. +19 −0 app/src/main/res/layout/activity_main.xml
  20. +5 −0 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
  21. +5 −0 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  22. BIN app/src/main/res/mipmap-hdpi/ic_launcher.png
  23. BIN app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  24. BIN app/src/main/res/mipmap-mdpi/ic_launcher.png
  25. BIN app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  26. BIN app/src/main/res/mipmap-xhdpi/ic_launcher.png
  27. BIN app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  28. BIN app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  29. BIN app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  30. BIN app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  31. BIN app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  32. +6 −0 app/src/main/res/values/colors.xml
  33. +3 −0 app/src/main/res/values/strings.xml
  34. +11 −0 app/src/main/res/values/styles.xml
  35. +17 −0 app/src/test/java/com/github/naz013/example/ExampleUnitTest.kt
  36. +28 −0 build.gradle
  37. +21 −0 gradle.properties
  38. BIN gradle/wrapper/gradle-wrapper.jar
  39. +6 −0 gradle/wrapper/gradle-wrapper.properties
  40. +172 −0 gradlew
  41. +84 −0 gradlew.bat
  42. +1 −0 settings.gradle
  43. +1 −0 smoothbottombar/.gitignore
  44. +30 −0 smoothbottombar/build.gradle
  45. +21 −0 smoothbottombar/proguard-rules.pro
  46. +26 −0 smoothbottombar/src/androidTest/java/com/github/naz013/smoothbottombar/ExampleInstrumentedTest.java
  47. +2 −0 smoothbottombar/src/main/AndroidManifest.xml
  48. +43 −0 smoothbottombar/src/main/java/com/github/naz013/smoothbottombar/SmoothBottomBar.kt
  49. +5 −0 smoothbottombar/src/main/java/com/github/naz013/smoothbottombar/Tab.kt
  50. +10 −0 smoothbottombar/src/main/res/values/attrs.xml
  51. +3 −0 smoothbottombar/src/main/res/values/strings.xml
  52. +17 −0 smoothbottombar/src/test/java/com/github/naz013/smoothbottombar/ExampleUnitTest.java
@@ -0,0 +1,13 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
@@ -0,0 +1,147 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<AndroidXmlCodeStyleSettings>
<option name="USE_CUSTOM_SETTINGS" value="true" />
</AndroidXmlCodeStyleSettings>
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<Objective-C-extensions>
<file>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="FunctionPredecl" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Function" />
</file>
<class>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Property" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Synthesize" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InitMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="StaticMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InstanceMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="DeallocMethod" />
</class>
<extensions>
<pair source="cpp" header="h" fileNamingConvention="NONE" />
<pair source="c" header="h" fileNamingConvention="NONE" />
</extensions>
</Objective-C-extensions>
<XML>
<option name="XML_KEEP_LINE_BREAKS" value="false" />
<option name="XML_ALIGN_ATTRIBUTES" value="false" />
<option name="XML_SPACE_INSIDE_EMPTY_TAG" value="true" />
</XML>
<codeStyleSettings language="XML">
<option name="FORCE_REARRANGE_MODE" value="1" />
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:android</NAME>
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:id</NAME>
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:name</NAME>
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>name</NAME>
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>style</NAME>
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
<order>ANDROID_ATTRIBUTE_ORDER</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme>
</component>
@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/smoothbottombar" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
</configurations>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
@@ -0,0 +1 @@
/build
@@ -0,0 +1,28 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.github.naz013.example"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.1'
implementation project(':smoothbottombar')
}
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
@@ -0,0 +1,24 @@
package com.github.naz013.example

import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getTargetContext()
assertEquals("com.github.naz013.example", appContext.packageName)
}
}
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.naz013.example">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>

</manifest>
@@ -0,0 +1,25 @@
package com.github.naz013.example

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.github.naz013.smoothbottombar.SmoothBottomBar
import com.github.naz013.smoothbottombar.Tab

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

val bottomBar = findViewById<SmoothBottomBar>(R.id.bottomBar)
bottomBar.setTabs(createTabs())
}

private fun createTabs(): List<Tab> {
return listOf(
Tab(icon = R.drawable.ic_home, title = "Home"),
Tab(icon = R.drawable.ic_inbox, title = "Inbox"),
Tab(icon = R.drawable.ic_user_avatar, title = "Profile")
)
}
}
@@ -0,0 +1,34 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportHeight="108"
android:viewportWidth="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeColor="#00000000"
android:strokeWidth="1">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0"/>
<item
android:color="#00000000"
android:offset="1.0"/>
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeColor="#00000000"
android:strokeWidth="1"/>
</vector>
@@ -0,0 +1,4 @@
<vector android:height="24dp" android:viewportHeight="46.177"
android:viewportWidth="46.177" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#1E201D" android:pathData="M23.856,1.451l10.984,10.222l10.984,10.222c0.444,0.429 0.476,1.127 0.063,1.587c-0.222,0.238 -0.524,0.349 -0.825,0.349v0.016h-5.555V43.91c0,0.619 -0.508,1.127 -1.127,1.127h-8.746c-0.619,0 -1.111,-0.508 -1.111,-1.127V28.482H17.666V43.91c0,0.619 -0.508,1.127 -1.127,1.127H7.793c-0.619,0 -1.111,-0.508 -1.111,-1.127V23.847H1.111C0.492,23.847 0,23.34 0,22.721c0,-0.349 0.159,-0.667 0.413,-0.873l10.936,-10.174L22.332,1.435C22.761,1.039 23.427,1.039 23.856,1.451L23.856,1.451zM33.316,13.308L23.094,3.785l-10.222,9.524l-8.904,8.286h3.825c0.619,0 1.127,0.508 1.127,1.127v20.063h6.508V27.371c0,-0.619 0.492,-1.127 1.111,-1.127h13.095c0.619,0 1.127,0.508 1.127,1.127v15.412h6.508V22.721c0,-0.619 0.492,-1.127 1.111,-1.127h3.841L33.316,13.308z"/>
</vector>

0 comments on commit 5337b9c

Please sign in to comment.
You can’t perform that action at this time.