Android Collapsing Toolbar Layout | Palette API | Android Studio
Вставка
- Опубліковано 30 гру 2019
- Android Collapsing Toolbar | Palette API | Android Studio
In this tutorial we will create a collapsing toolbar using collapsing toolbar layout. After that, we will implement the palette API so that toolbar can change it's color automatically according to the image we used inside collapsing toolbar layout.
For more exciting android tutorials, please subscribe to my UA-cam channel and hit the bell icon for notifications.
Instagram:
/ chigs_kachhadiya
Man, this is so up to date and I am so grateful, I am attending some courses, but they are like 2-3 years old, I had a lot problems with softvare, just to set up for work, but this is so fresh.. TNX..
Nice one👍
Los vídeos que subes son muy útiles, gracias.
Thanks for the video it was so detailed. Keep it up sir and more videos to come.
Best Channel Ever!!!!
How can I set custom text to the toolbar in place if My Awesome App?
It awesome tutorial!
Thank you so much 💓
Thanks for the video...........
Thanks bro
I hope make app story for kids with picture and text like this simple app
Thanks again
How to make multiple views collapse into the toolbar ? I want multiple views like textview and imageview be there in expanded view and collapsed view. How can i achieve this ?
supper !!
i want to add coordinatorLayout in my project but i dont know what dependencies to use can plzz help and tell me how to add it?
Also try to add the gist or github, so that we can tinker with your codes.
I am stuck with method setSupportActionBar which crash my app. Could you guys do me a favor ?
please help, the text is black how i can change it to white? :/
Hello, mine gets stuck in the middle, it can't move completely, what can I do?
how change the app name for a custom text in the toolbar?
how to add icon in start of title
How can I implement that Back button that you provided on Toolbar? Please provide me with a code
Is it possible to place image over status bar?
yes use add this line in your java file below onCreate method
getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
how to set onclick for back button in toolbar??
hi i need this source file can you provide me???? i need this project zip
can you write code for kotlin language. ???
Please make videos in kotlin
Sure
@@chiragkachhadiya in kotlin please Sir
App crashing
is it in setContentScrimColor?
7:30 starting emulation and app crashes:
2021-02-24 22:50:03.786 4415-4415/com.example.scroling E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.scroling, PID: 4415
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.scroling/com.example.scroling.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
at androidx.appcompat.app.AppCompatDelegateImpl.setSupportActionBar(AppCompatDelegateImpl.java:572)
at androidx.appcompat.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:159)
at com.example.scroling.MainActivity.onCreate(MainActivity.java:18)
at android.app.Activity.performCreate(Activity.java:6662)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)