Skip to content

Commit

Permalink
Improve ui
Browse files Browse the repository at this point in the history
  • Loading branch information
royaff0 committed Feb 10, 2018
1 parent c013423 commit 8504750
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions mobile/src/main/res/layout/activity_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
app:contentScrim="@color/detailContentBackground"
app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"
app:titleEnabled="true"
app:expandedTitleTextAppearance="@style/TextAppearance.AppCompat.Headline"
app:toolbarId="@+id/toolbar">

<ImageView
Expand Down
7 changes: 4 additions & 3 deletions mobile/src/main/res/layout/app_bar_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
<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"
tools:context="com.sqrtf.megumin.HomeActivity">

<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
android:theme="@style/AppTheme.AppBarOverlay"
app:elevation="0dp">

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:background="@color/backgroundSecondary"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/AppTheme.PopupOverlay" />

Expand Down
4 changes: 2 additions & 2 deletions mobile/src/main/res/layout/content_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
android:layout_marginLeft="28dp"
android:layout_marginTop="24dp"
android:textColor="@color/textColorTitle2"
android:textSize="20sp"
android:textSize="21sp"
app:layout_collapseMode="parallax"
tools:text="Subtitle" />

Expand All @@ -40,7 +40,7 @@
android:layout_gravity="bottom"
android:layout_marginLeft="28dp"
android:textColor="@color/textColorSecondary"
android:textSize="16sp"
android:textSize="17sp"
app:layout_collapseMode="parallax"
tools:text="2018-01-02, 12 episodes, Mon" />

Expand Down
22 changes: 11 additions & 11 deletions mobile/src/main/res/layout/include_bangumi_wide.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_marginBottom="10dp"
android:layout_height="156dp"
android:layout_marginBottom="0dp"
android:clickable="true"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"
app:cardBackgroundColor="@color/contentBackground"
app:cardBackgroundColor="@android:color/transparent"
app:cardCornerRadius="0dp"
app:cardElevation="2dp">
app:cardElevation="0dp">

<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
Expand All @@ -23,9 +23,9 @@
android:id="@+id/imageView"
android:layout_width="91dp"
android:layout_height="130dp"
android:layout_marginBottom="8dp"
android:layout_marginStart="10dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="12dp"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -36,7 +36,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:layout_marginStart="8dp"
android:layout_marginStart="12dp"
android:layout_marginTop="16dp"
android:maxLines="2"
android:text="bkbuhnnlnl"
Expand All @@ -53,7 +53,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:layout_marginStart="8dp"
android:layout_marginStart="12dp"
android:layout_marginTop="2dp"
android:maxLines="2"
android:text="subtitle"
Expand All @@ -70,7 +70,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:layout_marginStart="8dp"
android:layout_marginStart="12dp"
android:layout_marginTop="8dp"
android:textColor="@color/textColorPrimary"
android:textSize="14sp"
Expand All @@ -83,7 +83,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:layout_marginStart="8dp"
android:layout_marginStart="12dp"
android:layout_marginTop="8dp"
android:textColor="@color/meguminRed"
android:textSize="14sp"
Expand Down

0 comments on commit 8504750

Please sign in to comment.