Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

The New Android Build a Weather App is Released!

I just wanted to let everyone know about the release of the latest version of the Build a Weather App in Android. It's an update on the previous version of the course in terms of tools and current application design practices.

Topics Covered

  • Exploring an API
  • Networking considerations for mobile devices
  • Concurrency and Error Handling
  • Processing JSON data with JSONObject
  • Designing an App with ConstraintLayout
  • Using the Android Data Binding Library

Please let me know your thoughts as I always love to hear feedback.

Thanks and Happy Coding,
Ken W. Alger
@kenwalger

Nikos Tzouvelekis
Nikos Tzouvelekis
8,155 Points

Hi, mr Ken What's the difference between new and old ? I have already complete the old weather App. So I want to know if this one have something with different way ?

thanks

Ken Alger
Ken Alger
Treehouse Teacher

Nikos;

The course has been updated to use a more current version of Android Studio and implements ConstraintLayout and the Android Data Binding Library instead of ButterKnife.

Those are the big updates.

Ken

2 Answers

Nikos Tzouvelekis
Nikos Tzouvelekis
8,155 Points

oh ok :) I did it on my own with Android Data Binding Library instead of ButterKnife because I has some issues with clicks ,also I has do it with Constraint Layout because I like much more and I have a suggestion, because I don't like so much this with refresh button, I used the Refresh Layout.

<android.support.v4.widget.SwipeRefreshLayout
<android.support.constraint.ConstraintLayout

</android.support.constraint.ConstraintLayout>
</android.support.v4.widget.SwipeRefreshLayout>
  swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
            @Override
            public void onRefresh() {

            }
        });

also include geocode and search bar etc...

thanks very much for your time :)

Khurram Shahzad
Khurram Shahzad
3,695 Points

Can you please add onItemClick in the adapter? Basically, I want to know the best way of doing it using data binding library. Any help will be appreciated.