Skip to content

Instantly share code, notes, and snippets.

@sagar-viradiya
Last active August 17, 2021 17:55
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save sagar-viradiya/64b6a8331b3f4d436ae499b9700ac1f4 to your computer and use it in GitHub Desktop.
Save sagar-viradiya/64b6a8331b3f4d436ae499b9700ac1f4 to your computer and use it in GitHub Desktop.
DevFest India 2020 Day 1 - Main Acitvity UI
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/backgroundColor"
tools:context=".MainActivity">
<androidx.core.widget.ContentLoadingProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
style="?android:attr/progressBarStyle" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible"
tools:listitem="@layout/movie_item_layout" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/errorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:visibility="gone"
tools:visibility="visible"
android:fontFamily="@font/roboto"
android:text="@string/error_msg"/>
</FrameLayout>
@ArkaprabhaChakraborty
Copy link

I am also facing the same exact issue.
Not able to get the image using static links even though internet permission is added.

Well I fixed it ...... It was a simple error in logic from my end .... I typed wrap_content where it should be match_parent

@GauravChoudhary8411
Copy link

Could you provide the gist of the whole app?

@RB-93
Copy link

RB-93 commented Oct 26, 2020

Hi,
It's available on DevFest India resources link page under Mobile track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment