Skip to content

Commit 6de8508

Browse files
initial commit
0 parents  commit 6de8508

File tree

91 files changed

+2805
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2805
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
.cxx
15+
local.properties

.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

+139
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
id 'kotlin-android-extensions'
5+
id 'kotlin-kapt'
6+
}
7+
8+
android {
9+
compileSdkVersion 30
10+
buildToolsVersion "30.0.2"
11+
12+
defaultConfig {
13+
applicationId "com.smarttoolfactory.toolbarsamples"
14+
minSdkVersion 21
15+
targetSdkVersion 30
16+
versionCode 1
17+
versionName "1.0"
18+
19+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20+
}
21+
22+
buildTypes {
23+
release {
24+
minifyEnabled false
25+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
26+
}
27+
}
28+
compileOptions {
29+
sourceCompatibility JavaVersion.VERSION_1_8
30+
targetCompatibility JavaVersion.VERSION_1_8
31+
}
32+
kotlinOptions {
33+
jvmTarget = '1.8'
34+
}
35+
36+
buildFeatures {
37+
dataBinding = true
38+
}
39+
40+
}
41+
42+
dependencies {
43+
44+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
45+
implementation 'androidx.core:core-ktx:1.3.2'
46+
47+
implementation 'androidx.appcompat:appcompat:1.2.0'
48+
implementation 'com.google.android.material:material:1.2.1'
49+
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
50+
implementation 'androidx.viewpager2:viewpager2:1.0.0'
51+
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha06'
52+
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
53+
implementation "androidx.fragment:fragment-ktx:1.2.5"
54+
55+
// LifeCycle
56+
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0"
57+
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01'
58+
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
59+
60+
61+
testImplementation 'junit:junit:4.+'
62+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
63+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
64+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.smarttoolfactory.toolbarsamples
2+
3+
import android.support.test.InstrumentationRegistry
4+
import android.support.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.getInstrumentation().targetContext
22+
assertEquals("com.smarttoolfactory.toolbarsamples", appContext.packageName)
23+
}
24+
}

app/src/main/AndroidManifest.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.smarttoolfactory.toolbarsamples">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@mipmap/ic_launcher"
8+
android:label="@string/app_name"
9+
android:roundIcon="@mipmap/ic_launcher_round"
10+
android:supportsRtl="true"
11+
android:theme="@style/Theme.App">
12+
<activity android:name=".MainActivity">
13+
<intent-filter>
14+
<action android:name="android.intent.action.MAIN" />
15+
16+
<category android:name="android.intent.category.LAUNCHER" />
17+
</intent-filter>
18+
</activity>
19+
<activity android:name=".activity.Activity1NestedScrollView" />
20+
<activity android:name=".activity.Activity1NestedScrollView2" />
21+
<activity android:name=".activity.Activity2CollapsingTabInnerLayout" />
22+
<activity android:name=".activity.Activity4TabsScrollFlag" />
23+
<activity android:name=".activity.Activity5CollapseTabsToolbar" />
24+
<activity android:name=".activity.Activity6ParallaxTransparentImageTabs" />
25+
</application>
26+
27+
</manifest>

0 commit comments

Comments
 (0)