by Harsh Goyal
IMPORTANT - To run short youtube application you should have to go google developer to enable this API. After that make API Key to run this and replace the string in
strings.xml
Replaceable string - ENTER API KEY
Below are some of the videos that you can relate how the app is working ->
Splash Activity & Main Activity - Splash activity is used to show the name of the application that take 2 seconds. After that Main Activity opens that uses shimmer effect
that you can see in loading, app only works when internet connection is available and shows the preference list items that provided with the help of grid view. There is seperate
activity_main
file for the landscape layout.
2021_11_14_17_21_03_001.mp4
Custom Activity - We can also say that it is the DetailActivity that takes two fragments which is Detail Fragment and Videos Fragment. Detail Fragment shows the data from the youtube content creator and Video Fragment shows the latest video uploaded by the user on Youtube.
2021_11_14_18_37_13_918x2040_001.mp4
Search Activity - This activity focus on search the query that user enter. It also don't work if internet connection is not available. If the user change the mobile view (landscape) it automatically search the query without user interaction with the application.
2021_11_14_17_19_45_001_864x1920.mp4
Settings Activity - This activity uses shared preferences if the application is closed it saved the user preference and there should be some value provide to the channel list and channel video list if it not it takes the previous value that was saved by the user.