Material Home Dashboard Design #2 : Add OnClickListener Event to a Cardview

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • hey guys,
    in this video i will show you how to add OnClickListener Event to the cardview, if you didn't watch the previous part yet check it here : • Material Home Page Des...
    -------------------------------------------------------------------------
    links :
    Follow Me On Google Plus : goo.gl/3nJik6
    Follow Me On instagram : goo.gl/tghvar
    Follow Me On Github : goo.gl/QVn8np
    Visit My blog : goo.gl/1c5zut
    --------------------------------------------------------------------------
    Music Credits:

КОМЕНТАРІ • 184

  • @davestr2046
    @davestr2046 6 років тому +2

    Your work is quite simply some of the very best tutorials on Android I have seen on UA-cam and even the internet as a whole. Quite stunning. I am learning so much from you. Thanks a lot.

    • @AwsRh
      @AwsRh  6 років тому

      thanks Kyrix, thats mean a lot for me my friend glad you like my video

  • @BikashDebnath
    @BikashDebnath 6 років тому +4

    It's a great tutorial. First time, it happened that I followed the code from a online video and it worked exactly as is.

  • @tristanlistanco7308
    @tristanlistanco7308 6 років тому

    Best Cardview tutorial ever!!!! Thanks!!! I've made my app now without failures!!! for almost 3 months of searching........

  • @masteringcode9492
    @masteringcode9492 6 років тому +7

    Hi I really like to see you doing
    a recyclerview list with a good design if you can.
    Thanks In Advance.
    and also the dashboard design and the login design helped me a lot so thank you for that i really Appreciate it.

    • @AwsRh
      @AwsRh  6 років тому +3

      soon :)

  • @shailendramandal2293
    @shailendramandal2293 6 років тому

    Hello bro. Your video is fantastic. Can you please tell me how to do this cardview automatically adjustable in every mobile device. IN big screen mobile device it shows full screen or in small screen its show 1 and half of cardview.

  • @narayansharma5638
    @narayansharma5638 5 років тому +2

    hii bro i liked your video very much....
    can you make video on navigation drawer with fragments and making first menu button as home and when that app starts then home fragment should start
    hoping you will

  • @mrstark9867
    @mrstark9867 6 років тому

    This is the best channel mate. Thank you for helping people like me in creating beautiful android UI.

  • @MsNetoo20
    @MsNetoo20 6 років тому

    Hello friend, very good videos, my question is, if instead of bringing an activity out a Fragment as it would be? ... I hope you can help me, your videos are excellent.

  • @sediqkhan8353
    @sediqkhan8353 5 років тому

    Is there a simple way of making if clickable? like bankCard.setOnClickListener....and in this function we bring up the new Activity?

  • @tjzkp2835
    @tjzkp2835 6 років тому +1

    Thank you so much broo. I dint expected you will provide a tutorial when i asked.. Thank you so much for this

    • @AwsRh
      @AwsRh  6 років тому

      your welcome my friend

    • @tjzkp2835
      @tjzkp2835 6 років тому

      Please tell me who can i add a image in that activity page and when a user click it he will be redirected to a webpage.. please help me sir..

  • @bsomeee
    @bsomeee 6 років тому +1

    I don't know what to tell you man! But keep in mind that you are the best ever. Wishing you a great new year.❤

    • @AwsRh
      @AwsRh  6 років тому +1

      thank dude for the kind words
      thats mean a lot

  • @leaguedude4999
    @leaguedude4999 6 років тому

    In which video editor do you edit your videos..??

  • @ankitrathore1263
    @ankitrathore1263 6 років тому

    Thanks for the Video
    I'm really enjoying your videos
    but i'm struggle with a very small problem
    sir can you told me please how to change the tittle text and color of other activity except main.xml activity toolbar
    on more thing sir i'm using noactionbar style with customize toolbar

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

    My apps has stopped. Seems like it cant connect to the new activity. Why?

  • @JasonSolomonJ
    @JasonSolomonJ 6 років тому

    Thank for the Amazing Videos. Your Approach is Good and Easy to UnderStand.

  • @mayank1628
    @mayank1628 5 років тому

    Sir/maam your video made my day...I was trying this from a long time!🔥👌👍

  • @natashasharma7891
    @natashasharma7891 6 років тому

    i m getting an error in main activity where we have define our cardviews-" mcard = (CardView) findViewById(R.id.m_card);" error is this-"Unexpected cast to CardView: layout tag was LinearLayout" and if i suppress this then my app crashes. please help out

  • @AbdullahJirjees
    @AbdullahJirjees 5 років тому

    Hi thanks a lot for this wonderful video, I have issue with the "Execute taskAction", keep giving me error when I want to compile and run.

  • @SpyKid_VII
    @SpyKid_VII 6 років тому +1

    Thumbs up mate...will it work on low API..

  • @google.googlef
    @google.googlef 4 роки тому

    If I rate the side bar, then I will use the key code in Java in the implement view. If you use the expression then the new screen does not open।sir please solve this

  • @jitendracomputerscience
    @jitendracomputerscience 6 років тому

    i have design cardview on a fragment, now i want to implement onclicklistener to cardview to open another fragment. please help me..

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

    When I run the app it crashes and doesn't even start even though I did the same thing as your tutorial, please help! the error is : Emulator: emulator: INFO: QtLogger.cpp:68: Critical: Uncaught TypeError: Cannot read property 'update' of undefined

  • @mafermakes2594
    @mafermakes2594 5 років тому

    I have a problem when I create the new activities , it show me an error I don’t know why 😔😔 and I don’t find why.

  • @Gurvindersingh-hw9rj
    @Gurvindersingh-hw9rj 6 років тому +1

    You teached us with much simple method

  • @ahmedal-ahmed7606
    @ahmedal-ahmed7606 6 років тому +1

    I love your videos !! , keep going on , especially animations & material design
    thanks man.

    • @AwsRh
      @AwsRh  6 років тому

      thank you so much for your support

  • @thamisibeko7613
    @thamisibeko7613 6 років тому

    I followed the collapsible toolbar tutorial and put the cardviews in a nested scrollview, now my icons are not clickable

  • @mateobarello683
    @mateobarello683 5 років тому

    Hi!! User scrollview?

  • @vinigt
    @vinigt 6 років тому

    For me some resolutions are hidding the add button, any workaround?

  • @shashankgupta2597
    @shashankgupta2597 6 років тому

    Thanks a lot man your video save my day,these videos are extremely helpful.Thanks again man.

  • @NJQYoutube
    @NJQYoutube 5 років тому

    Wow, thanks bro, I am from Indonesiahh. Just that

  • @WesleyNoijen
    @WesleyNoijen 6 років тому

    This video is really helpful! keep making videos like this!

  • @softermalik4253
    @softermalik4253 6 років тому

    Awesome Videos, Thanks for your channel

  • @EddyCaffrey
    @EddyCaffrey 6 років тому +2

    I was waiting for this tutorial. thank you

    • @AwsRh
      @AwsRh  6 років тому +1

      your welcome my Friend :)

  • @unfairuniverse4778
    @unfairuniverse4778 6 років тому

    Nice job man! Awesome and clean tutorial

  • @tim4669
    @tim4669 6 років тому +1

    Hi, really good tutorial, just one problem, always when i pressed the cardview, it just stops my app, can you help?

    • @tim4669
      @tim4669 6 років тому +1

      i followed all your code, and there is no error, but i get that

    • @tim4669
      @tim4669 6 років тому +1

      nevermind i found the solution! Thx! yOUR video and tuts are amazing

    • @pro-informatique6724
      @pro-informatique6724 6 років тому

      just replace the

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

    it helped a lot
    thank you sir...

  • @JuanHernandez-yc9bm
    @JuanHernandez-yc9bm 6 років тому +1

    Thank you 😃
    I love your videos!

  • @shailendramandal2293
    @shailendramandal2293 6 років тому +1

    and Onething more can can we make this gridview+ cardview+recyclerview with firebase.

    • @AwsRh
      @AwsRh  6 років тому +1

      i have a video about recyclerview with cardview and gridlayout check it : ua-cam.com/video/SD2t75T5RdY/v-deo.html
      but unfortunately i dont have any knowledge about firebase :/
      maybe in the future il make some tutorials

  • @pratheekshetty.m5784
    @pratheekshetty.m5784 5 років тому +2

    Sir please say that it has a error that when we click the card the app automatically closes . Sir please solve this..

  • @sutharshanratneswaran4497
    @sutharshanratneswaran4497 5 років тому +2

    Thank you bro. Can you upload list view & recycle view custom design style. I.e rounded corner like the different style.

    • @AwsRh
      @AwsRh  5 років тому +1

      i will try to make one thanks for the suggestion

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

      @@AwsRh mas boleh tanya2 tentang wassap

  • @qipzzzz
    @qipzzzz 6 років тому +1

    Very helpful and informative

  • @rojeli3204
    @rojeli3204 5 років тому +2

    Sorry guys... when i type
    Intent i;
    Switch ()....
    startActivity(i);break; mine says (variable i might not have been initialized).. anybody can help?!

    • @edgarjesusgonzalezacevedo4270
      @edgarjesusgonzalezacevedo4270 5 років тому

      mas facil cambiar de activity con estas lineas:
      casualcard = (CardView) findViewById(R.id.casual_card);
      casualcard.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
      startActivity(new Intent(Main2Activity.this, Main3ActivitySUMA.class));
      }
      });

    • @edgarjesusgonzalezacevedo4270
      @edgarjesusgonzalezacevedo4270 5 років тому

      Ese codigo es por cada CardView

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

    hey sir need your help
    there is error in cardview dependency

  • @hashikdonthineni2863
    @hashikdonthineni2863 6 років тому +1

    Hey, how did you make the demo of the application like that( 0.00 Starting of the video)

    • @AwsRh
      @AwsRh  6 років тому +2

      simple background image with phone (nexus or pixel phone i guess) and camtasia studio for the montage

  • @harshpratapsingh6567
    @harshpratapsingh6567 6 років тому +1

    Please make a video about how to integrate app with add😊 please make it soon I am about to publish my app.. is their any other platforms to talk to you😊

    • @AwsRh
      @AwsRh  6 років тому

      could you clarify more ? :)

    • @harshpratapsingh6567
      @harshpratapsingh6567 6 років тому

      I want that you make a video about putting ads in app😊 in video cover how to put ads from admob and how to publish it.. now got it bro??

  • @abdualjanabi
    @abdualjanabi 6 років тому

    I really enjoying when I see your tube :)

  • @suprithar517
    @suprithar517 6 років тому

    Could you post a video, in which when you click on the activity it displays the data from database?

  • @bryantarco7760
    @bryantarco7760 6 років тому +2

    Genial video!!! podrias hacer un video de cómo editar el calendario de Android Studio, por favor

  • @ultimat.
    @ultimat. 3 роки тому

    Le dashboard fonctionne bien , mais je n'arrive pas à le faire fonctionner avec un drawer navigation

  • @madanraj7949
    @madanraj7949 5 років тому

    Can some one help me in this functionality ( on click on card view) .... I can click on card but it's not intent to other activities.....

  • @yassineouslimane89
    @yassineouslimane89 6 років тому +1

    Thank u for this tuto
    i have question about how to add URL ?

  • @jamesjosephserrano1757
    @jamesjosephserrano1757 5 років тому

    why mine wont go to new activity ?, I followed your code

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

    Thanks you sir. I was looking for tutorial like this. :)

  • @norwanij7310
    @norwanij7310 5 років тому

    thank you. this video does help me a lot

  • @nithinpinapaka
    @nithinpinapaka 6 років тому +1

    Thank you i did all but I want that scene scrollable because I have added 8 card views can you help me out

    • @AwsRh
      @AwsRh  6 років тому

      add your cardviews inside a nestedscrollview

    • @nithinpinapaka
      @nithinpinapaka 6 років тому

      Aws Rh thanks bro

    • @akshayekumar2079
      @akshayekumar2079 6 років тому

      I too want the same. If you know how please let me know.

  • @ShemNero
    @ShemNero 6 років тому +1

    Hi, can this code be implemented to a fragment?

    • @AwsRh
      @AwsRh  6 років тому +1

      i think yes but im not sure

  • @mathiasgutierrez1675
    @mathiasgutierrez1675 6 років тому +1

    Obrigado por compartilhar seus conhecimentos

  • @karankhatwani1605
    @karankhatwani1605 6 років тому

    how to link other activity to dashboard, i am getting an error!

  • @omprakashverma4050
    @omprakashverma4050 6 років тому +1

    I done it when I watched previous dashboard tutorial... But l set onClick on each LinearLayout instead of each cardview.

    • @AwsRh
      @AwsRh  6 років тому

      Nice Job (y)

  • @shakeelanjum32
    @shakeelanjum32 5 років тому

    Thanks for an awesome Menu dude...everything works so fine :Y

  • @dontet.7915
    @dontet.7915 5 років тому

    Great Video

  • @Quiz4You-j2l
    @Quiz4You-j2l 4 роки тому

    The apps crash (force close) when the card clicked, any suggestion?

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

      same here idk what to do ;/ stuck in between

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

    Link card is can't opened its came main activity

  • @abhijeetdhivar3415
    @abhijeetdhivar3415 6 років тому

    How to scroll down that dashboard screen?

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

    THANKS ALOT

  • @AkiraHanako
    @AkiraHanako 6 років тому

    Hello, why do I keep crashing when going to another intent? please help.

    • @AwsRh
      @AwsRh  6 років тому

      show me you logcat

  • @samirdesigner3324
    @samirdesigner3324 6 років тому +1

    Thanks my bro
    If make list view with pic when click on the items go to next page show details text like book stores have index show list view when click on go to second page show description story if make is good
    Thanks again

    • @AwsRh
      @AwsRh  6 років тому +1

      okey i will try :D

  • @RanranRAsgar
    @RanranRAsgar 5 років тому

    thanks bro... nice share

  • @Gurvindersingh-hw9rj
    @Gurvindersingh-hw9rj 6 років тому +1

    I finaly subscribed and liked

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

    Thank for Tutorial, thank you broo.!!!

  • @akshayekumar2079
    @akshayekumar2079 6 років тому

    How to make this card view scrollable? Please help as I want to add more activities. I have tried a lot but have not been able to do so.

    • @AwsRh
      @AwsRh  6 років тому +1

      add your cardviews inside a nestedscrollview

    • @akshayekumar2079
      @akshayekumar2079 6 років тому

      Aws Rh It is not working either. Scroll view can have only one direct child is the error I am getting. Would be really grateful if you please show me the source code or make a separate video

    • @AwsRh
      @AwsRh  6 років тому +1

      hello Akshaye kumar
      you cant add the cards directly to the nested scroll view as the error said you can only add one layout
      put all your cards inside one linearlayout or any groupview layout such as relativelayout or framelayout ...
      then add that layout to your nestedscrollview it should work fine :)

    • @akshayekumar2079
      @akshayekumar2079 6 років тому

      Aws Rh Thanks, will try :)

  • @chamnab1000
    @chamnab1000 6 років тому

    Which emulator you are using ?

    • @AwsRh
      @AwsRh  6 років тому

      5.4 FWVGA

  • @joshxperia441
    @joshxperia441 6 років тому +1

    Thanks for the video can you please make a video on who to create a video on how to store both images and text in the app with out using a server ,thanx in advance

    • @AwsRh
      @AwsRh  6 років тому +1

      i will try that :)

  • @MrDatosCuriosos
    @MrDatosCuriosos 6 років тому

    LOVE THIS CHANNEL

  • @maxr596
    @maxr596 5 років тому

    You are the best!

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

    Buen video man y tremendo contenido.Saludos sigue asi.

  • @Sport-word
    @Sport-word 6 років тому

    the best teacher
    please can i have the source code for the on click button ?
    please i have been following all your tutorial
    you are the best

  • @umairkhaliq183
    @umairkhaliq183 5 років тому

    Well Done bro Very Very helpful video Thank You So much bro

  • @technicalhacker6758
    @technicalhacker6758 6 років тому

    Application automatic exit this page not load

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

    Amazing tutorial thks very much

  • @Sport-word
    @Sport-word 6 років тому

    i have visited your blog but still cant find it there there

    • @AwsRh
      @AwsRh  6 років тому

      please contact me via my blog form

  • @thinktwicegamedev1853
    @thinktwicegamedev1853 6 років тому +1

    like it great learnt alot

    • @AwsRh
      @AwsRh  6 років тому

      thank you so much

  • @recu55ive41
    @recu55ive41 6 років тому

    How can I link it with he scrolling app bar layout?

    • @AwsRh
      @AwsRh  6 років тому

      you can simply copy this layout code and paste to the nestedscrollview

    • @recu55ive41
      @recu55ive41 6 років тому

      Aws Rh how do I link it to a nested scroll view?

  • @Gurvindersingh-hw9rj
    @Gurvindersingh-hw9rj 6 років тому +1

    Much nice tutorial

  • @omprakashverma4050
    @omprakashverma4050 6 років тому +1

    Sir could you please help me, I stuck in my current project, where I have to pass a value from activity class to adapter class. I tried a lot but can't pass it successfully, please help me out. Thanks

    • @AwsRh
      @AwsRh  6 років тому

      did you try to pass the value througt the constructor ?

    • @AwsRh
      @AwsRh  6 років тому

      and what kind of adapter you working in ?

    • @omprakashverma4050
      @omprakashverma4050 6 років тому +1

      Aws Rh
      BaseAdapter

    • @omprakashverma4050
      @omprakashverma4050 6 років тому +1

      Aws Rh
      Yes I tried through constructor, through intent putExtra.

    • @omprakashverma4050
      @omprakashverma4050 6 років тому

      From shared preference I retrieve this value in activity class, and want to pass it on my adapter class

  • @haveahack4490
    @haveahack4490 6 років тому +1

    Thanks for the Video.
    the code you wrote was little different from mine but this is easy than mine.
    i watched your videos before those were very Helpful specially Home Design one.
    (a Request) can you please upload a Video + source code regarding "Receive Text and Image From Firebase & Display them Into Recycler View" Please help me in my Book app project.
    i want to make app that can update through Firebase for Example a book app in which i want to put 1 image (Book image) 1 textView (Book Name) and a Download link Please Help me in this project

    • @AwsRh
      @AwsRh  6 років тому

      m learning about firebase right now, il make video from your request once i finish.sry for that and thank you for your support

    • @haveahack4490
      @haveahack4490 6 років тому

      Thanks for the Reply. i hope u will make my requested video in the future or not? if so, that would very helpful for me thanks again for the reply

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

    thanks a lot but i can't find the code source

  • @Gurvindersingh-hw9rj
    @Gurvindersingh-hw9rj 6 років тому +1

    Keep it up bro.

  • @Sport-word
    @Sport-word 6 років тому

    please where can i get the source code for the onclick listener

    • @AwsRh
      @AwsRh  6 років тому

      please contact me via my blog form

  • @Gurvindersingh-hw9rj
    @Gurvindersingh-hw9rj 6 років тому +1

    Wonderfull👍👍👍👍

  • @asadvhora6468
    @asadvhora6468 6 років тому +1

    great work

    • @AwsRh
      @AwsRh  6 років тому +1

      thx my friend :)

  • @iyimobileappstm1069
    @iyimobileappstm1069 6 років тому +1

    best................

  • @cyberfox3028
    @cyberfox3028 6 років тому

    thanks very much,,

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

    that "bank_card" id.. i kept trying to find where it is. i should have watched further first

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

    Your are the best

  • @BaganBatuTV
    @BaganBatuTV 6 років тому

    Thank you, Aws.

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

    If you share the code.. It will be really helpful

  • @shazwanirashid
    @shazwanirashid 5 років тому

    Why my apps unfortunately stopped?

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

      same here..did u found any solution?
      when i click on any card it says the same error

  • @moviehit3673
    @moviehit3673 6 років тому

    dear Sir apps is stopped please halp

  • @srujangv3624
    @srujangv3624 6 років тому

    Cannot resolve symbol R And
    Intent in home.
    Please help

    • @AwsRh
      @AwsRh  6 років тому +1

      are you using fragment or activity ?
      make sure to import the requred package
      import com.yourpackge.R;