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

КОМЕНТАРІ • 30

  • @nikolasimic8783
    @nikolasimic8783 3 роки тому +4

    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..

  • @ravi1341975
    @ravi1341975 3 роки тому +1

    Nice one👍

  • @julianmc8034
    @julianmc8034 4 роки тому

    Los vídeos que subes son muy útiles, gracias.

  • @dharelrosell169
    @dharelrosell169 4 роки тому +1

    Thanks for the video it was so detailed. Keep it up sir and more videos to come.

  • @vineetpatel5698
    @vineetpatel5698 4 роки тому

    Best Channel Ever!!!!

  • @otabekabduraufov3171
    @otabekabduraufov3171 4 роки тому +3

    How can I set custom text to the toolbar in place if My Awesome App?

  • @user-ne7xu1wq7q
    @user-ne7xu1wq7q 3 роки тому

    It awesome tutorial!
    Thank you so much 💓

  • @rajakumarsaravanan3957
    @rajakumarsaravanan3957 3 роки тому +1

    Thanks for the video...........

  • @samirdesigner3324
    @samirdesigner3324 4 роки тому +1

    Thanks bro
    I hope make app story for kids with picture and text like this simple app
    Thanks again

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 3 роки тому +1

    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 ?

  • @kavindudissanayake474
    @kavindudissanayake474 4 роки тому +1

    supper !!

  • @SaffronKage
    @SaffronKage 4 роки тому

    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?

  • @anbuselvanrocky
    @anbuselvanrocky 4 роки тому

    Also try to add the gist or github, so that we can tinker with your codes.

  • @hongminhle5429
    @hongminhle5429 3 роки тому

    I am stuck with method setSupportActionBar which crash my app. Could you guys do me a favor ?

  • @neolink3780
    @neolink3780 4 роки тому

    please help, the text is black how i can change it to white? :/

  • @jamesrodriguesrodrigues8736
    @jamesrodriguesrodrigues8736 3 роки тому

    Hello, mine gets stuck in the middle, it can't move completely, what can I do?

  • @singed_flesh
    @singed_flesh 3 роки тому

    how change the app name for a custom text in the toolbar?

  • @codingcosmos7010
    @codingcosmos7010 Рік тому

    how to add icon in start of title

  • @tridev9695
    @tridev9695 2 роки тому

    How can I implement that Back button that you provided on Toolbar? Please provide me with a code

  • @i12capea
    @i12capea 3 роки тому +1

    Is it possible to place image over status bar?

    • @hyvtech2831
      @hyvtech2831 3 роки тому

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

  • @markandrew7671
    @markandrew7671 3 роки тому

    how to set onclick for back button in toolbar??

  • @vandangadhiya7913
    @vandangadhiya7913 3 роки тому

    hi i need this source file can you provide me???? i need this project zip

  • @erwindevtech9533
    @erwindevtech9533 4 роки тому

    can you write code for kotlin language. ???

  • @MrRahulmalik
    @MrRahulmalik 4 роки тому +1

    Please make videos in kotlin

  • @redpersimmon6940
    @redpersimmon6940 4 роки тому +1

    App crashing

  • @slechtetimmerman
    @slechtetimmerman 3 роки тому

    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)