Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

android

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone help me with this project?

enter image description here enter image description here

Fetch the popular movie list from the given api and display it in a CollectionView.

I want to be able to see the details of a movie so that I will know more about the movie.

It should show the cover photo of the movie.
It should show the poster of the movie.
It should show the title of the movie.
It should show the summary of the movie.
It should show the rating of the movie.
It should show the release date of the movie.
It should show the cast of the movie.
API List: Popular Movie List : http://api.themoviedb.org/3/discover/movie?sort_by=popularity.desc&page=1&api_key=<<api_key>>; Movie Details : https://api.themoviedb.org/3/movie/{movie_id}?api_key=<<api_key>>; Get Cast: https://api.themoviedb.org/3/movie/{movie_id}/credits?api_key=<<api_key>>;

Api_Key: 3fa9058382669f72dcb18fb405b7a831

Sample Design: https://www.figma.com/file/bZ5U7jj0B1JK6Xc4ijYUoX/Untitled?node-id=0%3A1
 
Saloon Keeper
Posts: 7063
164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

What do you have so far? Where are you stuck making progress? If you haven't started, what ideas have you had?
 
jayed zakir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried

activity main

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   tools:context=".MainActivity">

   <androidx.recyclerview.widget.RecyclerView
       android:id="@+id/my_list"
       android:layout_width="match_parent"
       android:layout_height="match_parent" />

</LinearLayout>

list item

<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   android:backgroundTint="#555555"
   app:cardCornerRadius="8dp"
   android:layout_margin="5dp"
   app:cardElevation="5dp">

   <RelativeLayout
       android:layout_width="wrap_content"
       android:layout_height="wrap_content">

       <ImageView
           android:id="@+id/poster"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:adjustViewBounds="true"
           android:src="@mipmap/ind"/>

       <TextView
           android:id="@+id/title"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:layout_alignBottom="@+id/poster"
           android:background="#60000000"
           android:padding="8dp"
           android:text="test"
           android:textColor="#FFFFFF"
           android:textSize="14dp"
           android:maxLines="2"
           android:ellipsize="end"/>

       <TextView
           android:id="@+id/rating"
           android:layout_width="30dp"
           android:layout_height="30dp"
           android:background="@drawable/reating_back"
           android:text="9.9"
           android:textColor="#FFF"
           android:gravity="center"
           android:textStyle="bold"
           android:layout_alignParentRight="true"
           android:layout_marginTop="16dp"
           android:layout_marginRight="16dp"/>

   </RelativeLayout>

</androidx.cardview.widget.CardView>
 
Tim Moores
Saloon Keeper
Posts: 7063
164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happened when you used that? (Without seeing the code, and having a description of what happened, this doesn't really tell us anything.)

Remember that when an app crashes, there will be an exception stack trace in the logcat - checking that should be your first stop during debugging. If there is one, post it here.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic