Skip to content

Commit

Permalink
Update profile header view
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentaro Takiguchi committed May 29, 2015
1 parent fc13b84 commit 0c8aae0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_profile);
ButterKnife.inject(this);

User user = Model.fromJson(getIntent().getStringExtra(EXTRA_USER), User.class);

setupActionBar();
Expand Down
Binary file modified app/src/main/res/drawable/profile_background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions app/src/main/res/layout/activity_user_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@android:color/transparent" />
</FrameLayout>

<android.support.design.widget.TabLayout
android:id="@+id/pager_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<android.support.design.widget.TabLayout
android:id="@+id/pager_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom" />
</FrameLayout>
</android.support.design.widget.AppBarLayout>

<android.support.v4.view.ViewPager
Expand Down
11 changes: 8 additions & 3 deletions app/src/main/res/layout/view_user_profile_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@

<ImageView
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_height="180dp"
android:scaleType="centerCrop"
android:src="@drawable/profile_background" />

<View
android:layout_width="match_parent"
android:layout_height="180dp"
android:background="@color/semi_transparent" />

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -17,8 +22,8 @@

<com.makeramen.roundedimageview.RoundedImageView xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/user_image"
android:layout_width="66dp"
android:layout_height="66dp"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginStart="@dimen/spacing_large"
android:scaleType="centerCrop"
android:src="@drawable/user"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<color name="gray">#a3a090</color>
<color name="border">#dbdbce</color>
<color name="transparent">#00000000</color>
<color name="semi_transparent">#33000000</color>

<color name="base">@color/lightgray</color>
<color name="accent">@color/orange</color>
Expand Down

0 comments on commit 0c8aae0

Please sign in to comment.