Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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/)