This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Redesigned AppDetails page * Updated support libraries
- Loading branch information
Showing
6 changed files
with
137 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:fillColor="#FFFFFF" | ||
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1,141 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout 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"> | ||
|
||
<LinearLayout | ||
<android.support.design.widget.CoordinatorLayout | ||
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"> | ||
|
||
<android.support.design.widget.AppBarLayout | ||
android:id="@+id/appbar" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
|
||
<android.support.v7.widget.Toolbar | ||
android:id="@+id/details_toolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/colorPrimary" | ||
android:theme="@style/AppTheme.Dark" | ||
app:title="@string/screen_details"/> | ||
|
||
<android.support.v4.widget.NestedScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
</android.support.v4.widget.NestedScrollView> | ||
android:fitsSystemWindows="true"> | ||
|
||
<LinearLayout | ||
<android.support.design.widget.CollapsingToolbarLayout | ||
android:id="@+id/collapsingToolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="16dp" | ||
android:orientation="vertical"> | ||
android:fitsSystemWindows="true" | ||
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap" | ||
app:expandedTitleMarginStart="8dp" | ||
app:expandedTitleMarginEnd="8dp" | ||
app:expandedTitleMarginBottom="124dp" | ||
app:expandedTitleGravity="center_horizontal|bottom" | ||
app:expandedTitleTextAppearance="@style/TextAppearance.AppCompat.Title"> | ||
|
||
<android.support.v7.widget.Toolbar | ||
android:id="@+id/details_toolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="?attr/actionBarSize" | ||
android:background="@color/colorPrimary" | ||
android:theme="@style/AppTheme.Dark" | ||
app:layout_collapseMode="pin"/> | ||
|
||
<LinearLayout | ||
android:id="@+id/details_header" | ||
android:layout_height="match_parent" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal" | ||
android:padding="16dp"> | ||
android:orientation="vertical" | ||
app:layout_collapseMode="parallax" | ||
app:layout_collapseParallaxMultiplier="0.7"> | ||
|
||
<FrameLayout | ||
android:id="@+id/icon_frame" | ||
android:layout_width="40dp" | ||
android:layout_height="40dp" | ||
android:layout_gravity="top" | ||
android:layout_marginEnd="16dp" | ||
android:layout_marginRight="16dp" | ||
android:visibility="gone"> | ||
|
||
android:layout_width="160dp" | ||
android:layout_height="160dp" | ||
android:layout_gravity="center" | ||
android:visibility="gone" | ||
android:gravity="center" | ||
android:paddingBottom="40dp"> | ||
<ImageView | ||
android:id="@+id/icon_image" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_gravity="center" | ||
android:contentDescription="App icon" | ||
android:gravity="center_horizontal" | ||
android:visibility="invisible"/> | ||
|
||
<ProgressBar | ||
android:id="@+id/icon_placeholder" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_gravity="center" | ||
android:gravity="center_horizontal" | ||
android:visibility="visible"/> | ||
</FrameLayout> | ||
|
||
<LinearLayout | ||
<TextView | ||
android:id="@+id/title_secondary" | ||
style="@style/TextAppearance.AppCompat.Caption" | ||
android:theme="@style/AppTheme.Dark" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
android:gravity="center" | ||
tools:text="Lorem ipsum"/> | ||
|
||
<TextView | ||
android:id="@+id/title_primary" | ||
style="@style/TextAppearance.AppCompat.Title" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
tools:text="Lorem ipsum"/> | ||
|
||
<TextView | ||
android:id="@+id/title_secondary" | ||
style="@style/TextAppearance.AppCompat.Caption" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
tools:text="Lorem ipsum"/> | ||
</LinearLayout> | ||
<com.wefika.flowlayout.FlowLayout | ||
android:id="@+id/tag_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="top|start" | ||
android:gravity="center_horizontal" | ||
android:orientation="horizontal" | ||
android:paddingEnd="16dp" | ||
android:paddingLeft="16dp" | ||
android:paddingRight="16dp" | ||
android:paddingStart="16dp" | ||
android:paddingTop="8dp"/> | ||
</LinearLayout> | ||
|
||
<android.support.v4.view.ViewPager | ||
android:id="@+id/screenshot_pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="200dp"/> | ||
</android.support.design.widget.CollapsingToolbarLayout> | ||
</android.support.design.widget.AppBarLayout> | ||
|
||
<TextView | ||
android:id="@+id/description" | ||
style="@style/TextAppearance.AppCompat.Body1" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="16dp" | ||
tools:text="Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."/> | ||
<android.support.v4.widget.NestedScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:behavior_overlapTop="30dp" | ||
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | ||
|
||
<android.support.v7.widget.CardView | ||
android:id="@+id/description_card" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
app:cardElevation="8dp" | ||
app:contentPadding="16dp"> | ||
|
||
<com.wefika.flowlayout.FlowLayout | ||
android:id="@+id/tag_container" | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="top|start" | ||
android:orientation="horizontal" | ||
android:paddingEnd="16dp" | ||
android:paddingLeft="16dp" | ||
android:paddingRight="16dp" | ||
android:paddingStart="16dp"/> | ||
</LinearLayout> | ||
</LinearLayout> | ||
android:orientation="vertical"> | ||
|
||
<android.support.v4.view.ViewPager | ||
android:id="@+id/screenshot_pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="200dp"/> | ||
|
||
<TextView | ||
android:id="@+id/description" | ||
style="@style/TextAppearance.AppCompat.Body1" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="16dp" | ||
tools:text="Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."/> | ||
|
||
</LinearLayout> | ||
</android.support.v7.widget.CardView> | ||
|
||
</android.support.v4.widget.NestedScrollView> | ||
|
||
<android.support.design.widget.FloatingActionButton | ||
android:id="@+id/download_fab" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="bottom|end" | ||
android:layout_margin="16dp" | ||
android:src="@drawable/ic_file_download_white_24dp" | ||
app:layout_anchor="@id/description_card" | ||
app:layout_anchorGravity="bottom|end" | ||
app:fabSize="normal"/> | ||
|
||
</FrameLayout> | ||
</android.support.design.widget.CoordinatorLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters