Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
307 views
in Technique[技术] by (71.8m points)

Using Kotlin library in java android studion

I want to use the chipped bottom navigation by https://github.com/ismaeldivita/chip-navigation-bar, But it is done in Kotlin. I want to us it in java. How can i use it? What code should I implement.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Please check Calling Kotlin from Java official article. Actually each Kotlin construction can be unwrapped to Java (except inline function features and couple other).

Actually the coding is the same: add dependency into the project (both Kotlin and Java uses jar files), call methods, etc.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...