Image loading in Home1Fragment, Home2Fragment and HomeActivity. Created and shared build with testers. Integrated navigation component for web series. Research for problem related to save state of WebSeriesFragment of collapsing toolbar. Solved it. Integrated room database dependency with ksp and started working on on creating database for click events. Created models, dao, database (singleton). Issue related to app-inspection.
170 lines
6.2 KiB
XML
170 lines
6.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/gradient_web_series"
|
|
tools:context=".modules.blogs.view.BlogsActivity">
|
|
|
|
<include android:id="@+id/toolbar"
|
|
layout="@layout/layout_toolbar"/>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:background="@color/color_primary"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
>
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:contentDescription="@string/image"
|
|
android:src="@drawable/primary_bg"
|
|
android:scaleType="fitXY"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/g2"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
/>
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/g2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintGuide_percent="0.55"/>
|
|
|
|
<com.facebook.shimmer.ShimmerFrameLayout
|
|
android:id="@+id/shimmer"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:shimmer_auto_start="true"
|
|
app:shimmer_duration="1500"
|
|
app:shimmer_highlight_alpha="0.5">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginHorizontal="10dp"
|
|
android:layout_marginTop="10dp"
|
|
android:baselineAligned="false"
|
|
android:weightSum="2">
|
|
|
|
<include layout="@layout/blog_view_holder_grid"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"/>
|
|
|
|
<include layout="@layout/blog_view_holder_grid"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_weight="1"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginHorizontal="10dp"
|
|
android:layout_marginTop="10dp"
|
|
android:baselineAligned="false"
|
|
android:weightSum="2">
|
|
|
|
<include layout="@layout/blog_view_holder_grid"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"/>
|
|
|
|
<include layout="@layout/blog_view_holder_grid"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_weight="1"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.facebook.shimmer.ShimmerFrameLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_blogs"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
tools:listitem="@layout/blog_view_holder_grid"
|
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
app:spanCount="2"
|
|
tools:itemCount="6"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/no_data"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="center_horizontal"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<ImageView
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:contentDescription="@string/image"
|
|
android:src="@drawable/img_support"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/something_went_wrong"
|
|
android:fontFamily="@font/exo_2_bold"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/_14ssp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/retry_btn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/retry_underline"
|
|
android:fontFamily="@font/exo_2_bold"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/_12ssp"
|
|
|
|
android:padding="5dp"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |