Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dyazincahya-blog/tab-ui-android-kotlin-example
Tab UI Android with kotlin (Example)
https://github.com/dyazincahya-blog/tab-ui-android-kotlin-example
android example example-code example-project kotlin kotlin-android kotlin-language native snippet tab tablayout tabs
Last synced: about 1 month ago
JSON representation
Tab UI Android with kotlin (Example)
- Host: GitHub
- URL: https://github.com/dyazincahya-blog/tab-ui-android-kotlin-example
- Owner: dyazincahya-blog
- License: mit
- Created: 2020-02-27T03:28:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-27T03:59:22.000Z (almost 5 years ago)
- Last Synced: 2024-11-22T21:46:15.580Z (about 1 month ago)
- Topics: android, example, example-code, example-project, kotlin, kotlin-android, kotlin-language, native, snippet, tab, tablayout, tabs
- Language: Kotlin
- Homepage: https://www.kang-cahya.com/2020/02/cara-mudah-membuat-tab-ui-material-design-android-dengan-kotlin.html
- Size: 171 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tab UI Android with kotlin (Example)
This is a example code to make Tab UI android with kotlin### Dependency
Add this dependecy to ```build.grade (Module:app)```
``` gradel
implementation 'com.google.android.material:material:1.0.0'
```
### Res Values
Setting base application theme on ```res/values/style.xml```, set attribute parent style to ```NoActionBar``` like this :
``` xml```
### Tab View
- Tab 1 ( [OneFragment.kt](https://github.com/k4ng/tab-ui-android-kotlin-example/blob/master/app/src/main/java/com/kang/cahya/androidtabui/OneFragment.kt), [fragment_one.xml](https://github.com/k4ng/tab-ui-android-kotlin-example/blob/master/app/src/main/res/layout/fragment_one.xml) )
- Tab 2 ( [TwoFragment.kt](https://github.com/k4ng/tab-ui-android-kotlin-example/blob/master/app/src/main/java/com/kang/cahya/androidtabui/TwoFragment.kt), [fragment_one.xml](https://github.com/k4ng/tab-ui-android-kotlin-example/blob/master/app/src/main/res/layout/fragment_two.xml) )
- Tab 3 ( [ThreeFragment.kt](https://github.com/k4ng/tab-ui-android-kotlin-example/blob/master/app/src/main/java/com/kang/cahya/androidtabui/ThreeFragment.kt), [fragment_one.xml](https://github.com/k4ng/tab-ui-android-kotlin-example/blob/master/app/src/main/res/layout/fragment_three.xml) )### Screenshot
<img src="https://github.com/k4ng/tab-ui-android-kotlin-example/blob/master/screenshot/1.png" alt="drawing" width="300"/>### Author
[kang-cahya.com](https://www.kang-cahya.com/)