diff --git a/app/build.gradle b/app/build.gradle index d63906b..dd7269a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "hearsilent.amazingavatar" minSdkVersion 16 targetSdkVersion 25 - versionCode 102 - versionName "1.0.2" + versionCode 103 + versionName "1.0.3" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/hearsilent/amazingavatar/MainActivity.java b/app/src/main/java/hearsilent/amazingavatar/MainActivity.java index cd9c7a5..bf2cfa0 100644 --- a/app/src/main/java/hearsilent/amazingavatar/MainActivity.java +++ b/app/src/main/java/hearsilent/amazingavatar/MainActivity.java @@ -171,7 +171,7 @@ private void resetPoints() { mAvatarPoint[0] -= (avatarSize - mAvatarImageView.getWidth()) / 2; mSpace.getLocationOnScreen(mSpacePoint); mToolbarTextView.getLocationOnScreen(mToolbarTextPoint); - mToolbarTextPoint[0] += Utils.convertDpToPixelSize(24, this); + mToolbarTextPoint[0] += Utils.convertDpToPixelSize(16, this); mTitleTextView.post(new Runnable() { @Override diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 738f19d..08d0647 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -34,6 +34,7 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:gravity="center_vertical" + android:orientation="horizontal" app:layout_collapseMode="parallax" app:layout_collapseParallaxMultiplier="1"> @@ -41,7 +42,8 @@ android:id="@+id/space" android:layout_width="32dp" android:layout_height="32dp" - android:layout_marginLeft="32dp"/> + android:layout_marginLeft="32dp" + android:layout_marginRight="16dp"/> - - + + @@ -86,5 +91,6 @@ android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_behavior="@string/appbar_scrolling_view_behavior"/> + app:layout_behavior="@string/appbar_scrolling_view_behavior" + tools:listitem="@layout/item_demo"/> \ No newline at end of file