diff --git a/app/src/main/res/drawable/all_stories_gradient.xml b/app/src/main/res/drawable/all_stories_gradient.xml new file mode 100644 index 0000000..abbf661 --- /dev/null +++ b/app/src/main/res/drawable/all_stories_gradient.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/featured_stories_gradient.xml b/app/src/main/res/drawable/featured_stories_gradient.xml new file mode 100644 index 0000000..397690b --- /dev/null +++ b/app/src/main/res/drawable/featured_stories_gradient.xml @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_stories.xml b/app/src/main/res/layout/fragment_stories.xml index fc2838b..37a4eeb 100644 --- a/app/src/main/res/layout/fragment_stories.xml +++ b/app/src/main/res/layout/fragment_stories.xml @@ -17,16 +17,18 @@ android:id="@+id/tv_featured_stories" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="7dp" + android:paddingLeft="10dp" android:text="Featured" android:textColor="@color/colorPrimaryDark" - android:paddingLeft="10dp" android:textStyle="bold" - android:paddingTop="10dp" - android:visibility="visible"/> + android:visibility="visible" /> + + android:layout_height="wrap_content" + android:layout_marginBottom="5dp" /> - - + + + android:layout_marginBottom="3dp" + android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + + + + - - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + android:layout_marginBottom="10dp" + android:layout_weight="1" + android:ellipsize="end" + android:maxLines="2" + android:text="@string/all_story_title" + android:textColor="@color/colorPrimaryDark" + android:textSize="18sp" + android:textStyle="bold" + android:visibility="visible" /> + + android:padding="2dp" + android:text="@string/all_story_read_time" + android:textSize="15sp" /> - - - - - + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/list_item_featured_stories.xml b/app/src/main/res/layout/list_item_featured_stories.xml index 57a1a9e..eb5259c 100644 --- a/app/src/main/res/layout/list_item_featured_stories.xml +++ b/app/src/main/res/layout/list_item_featured_stories.xml @@ -1,76 +1,90 @@ - + android:layout_height="wrap_content" + android:layout_margin="10dp" + app:cardCornerRadius="5dp" + app:cardElevation="10dp"> - - + android:layout_height="wrap_content" + android:background="@drawable/featured_stories_gradient"> - + + + android:layout_alignParentEnd="true" + android:layout_alignParentTop="true" + android:layout_gravity="end" + android:contentDescription="@string/story_heart_image_desc" + android:padding="7dp" + android:src="@drawable/ic_heart_outline" + android:tint="@android:color/white" /> + + + + + - - - + android:visibility="visible" /> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index f0f4d9d..9bd39eb 100755 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -7,6 +7,21 @@ #616161 #000000 #FFFFFF + #9ce7e7e7 + #90000000 + #2e000000 + + + #0297cf + #00678e + #002c3d + + + + #000000 + #e3191919 + #0f191919 + #CCFFFFFF #0687B7 #126381 @@ -14,6 +29,7 @@ #E6AF2E #737373 + #2175BC #F3F3F3 #797979 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 85a86ae..8202889 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,13 +35,28 @@ Forgot password? Reset here. + + + Akshit Jain + 19 april 2018 + My Story Name + This story tells us about my experience as a google scholar + 3 min + "25 Android libraries you definitely want to try out in early 2017" "The journey of wanderer turned an Android Developer" "Hi! My name is Vineeth Reddy, I’m a passionate Android developer and I enjoy creating apps that create an impact in the world. Contact me at vineethreddy@gmail.com" XML , ANDROID , FIREBASE , UI , ADOBE - + + + 3 min + Akshit Jain + Heart Icon + Profile Pic + + Hello blank fragment https://github.com/knightcube @@ -124,7 +139,7 @@ "elevation.\n\n" "Avoiding elevation interference.\n\n" - + "Components with responsive elevations may encounter other components as they move between " "their resting elevations and dynamic elevation offsets. Because material cannot pass " "through other material, components avoid interfering with one another any number of ways, "