New Twitter is an android app that allows a user to view his Twitter timeline. The app utilizes Twitter REST API.
Time spent: 2 hours spent in total
The following required functionality is completed:
- User can sign in to Twitter using OAuth login
- User can view tweets from their home timeline
- User is displayed the username, name, and body for each tweet
- User is displayed the relative timestamp for each tweet "8m", "7h"
- User can refresh tweets timeline by pulling down to refresh
The following optional features are implemented:
- User can view more tweets as they scroll with infinite pagination
- Improve the user interface and theme the app to feel "twitter branded"
- Links in tweets are clickable and will launch the web browser
- User can tap a tweet to display a "detailed" view of that tweet
- User can see embedded image media within the tweet detail view
- User can watch embedded video within the tweet
- User can open the twitter app offline and see last loaded tweets
- On the Twitter timeline, leverage the CoordinatorLayout to apply scrolling behavior that hides / shows the toolbar.
Here's a walkthrough of implemented user stories:
GIF created with LiceCap.
Describe any challenges encountered while building the app.
- Android Async HTTP - Simple asynchronous HTTP requests with JSON parsing
- Glide - Image loading and caching library for Android
Copyright [2021] [Ahmed Elshetany]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.