Skip to content

Commit

Permalink
Update version to 1.0.3
Browse files Browse the repository at this point in the history
 - Improve large name showing
 - Improve scrolling anim
  • Loading branch information
hearsilent committed Mar 19, 2017
1 parent 6e2016d commit 323c4d3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 18 additions & 12 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@
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">

<android.support.v4.widget.Space
android:id="@+id/space"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginLeft="32dp"/>
android:layout_marginLeft="32dp"
android:layout_marginRight="16dp"/>

<TextView
android:id="@+id/toolbar_title"
Expand All @@ -57,27 +59,30 @@
app:layout_collapseMode="parallax"
app:layout_collapseParallaxMultiplier="1">

<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imageView_avatar"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="?attr/actionBarSize"
android:background="@drawable/avatar_background"
android:contentDescription="@null"
android:padding="1dp"/>

<TextView
android:id="@+id/textView_title"
android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="56dp"
android:layout_marginRight="56dp"
android:layout_marginTop="130dp"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:text="HearSilent"
android:textColor="#FFF"
android:textSize="24sp"/>

<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imageView_avatar"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="?attr/actionBarSize"
android:background="@drawable/avatar_background"
android:contentDescription="@null"
android:padding="1dp"/>
</FrameLayout>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
Expand All @@ -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"/>
</android.support.design.widget.CoordinatorLayout>

0 comments on commit 323c4d3

Please sign in to comment.