Permalink
Browse files

Added layout for user profile

  • Loading branch information...
frogermcs committed Jan 22, 2015
1 parent 20212ff commit 7dc54888b37ae29651b9f242ca15c62ed6ccdb28
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?><!--drawable/btn_following.xml-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="false">
+ <layer-list>
+ <item>
+ <shape android:shape="rectangle">
+ <solid android:color="#ffffff" />
+ </shape>
+ </item>
+
+ <item android:bottom="1dp" android:left="1dp" android:right="1dp" android:top="1dp">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/btn_send_normal" />
+ </shape>
+ </item>
+ </layer-list>
+ </item>
+ <item android:state_pressed="true">
+ <shape android:bottom="0dp" android:left="2dp" android:right="0dp" android:shape="rectangle" android:top="2dp">
+ <solid android:color="@color/btn_send_pressed" />
+ </shape>
+ </item>
+
+</selector>
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<io.github.froger.instamaterial.view.SquaredFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/flRoot"
+ android:layout_width="100dp"
+ android:layout_height="100dp"
+ android:background="#ffffff"
+ android:orientation="vertical">
+
+ <ImageView
+ android:id="@+id/ivPhoto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp" />
+</io.github.froger.instamaterial.view.SquaredFrameLayout>
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/vUserProfileRoot"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/colorPrimary"
+ android:orientation="vertical"
+ android:clipChildren="false"
+ android:clipToPadding="false"
+ android:padding="24dp">
+
+ <LinearLayout
+ android:clipChildren="false"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <ImageView
+ android:id="@+id/ivUserProfilePhoto"
+ android:layout_width="@dimen/user_profile_avatar_size"
+ android:layout_height="@dimen/user_profile_avatar_size"
+ android:layout_marginRight="16dp" />
+
+ <LinearLayout
+ android:id="@+id/vUserDetails"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="John Smith"
+ android:textColor="#ffffff"
+ android:textSize="24sp" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="\@jsmith"
+ android:textSize="12sp"
+ android:textColor="#bbbbbb" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="12sp"
+ android:text="Mobile development passionate."
+ android:textColor="#ffffff" />
+
+ <Button
+ android:id="@+id/btnFollow"
+ android:layout_width="match_parent"
+ android:background="@drawable/btn_following"
+ android:textColor="#ffffff"
+ android:layout_height="24dp"
+ android:layout_marginTop="8dp"
+ android:layout_marginRight="24dp"
+ android:textSize="12sp"
+ android:text="following" />
+
+ </LinearLayout>
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/vUserStats"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="16dp"
+ android:layout_marginRight="16dp"
+ android:layout_marginTop="16dp">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="1167"
+ android:textColor="#ffffff"
+ android:textSize="20sp" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="posts"
+ android:textColor="#ffffff"
+ android:textSize="12sp" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="396"
+ android:textColor="#ffffff"
+ android:textSize="20sp" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="followers"
+ android:textColor="#ffffff"
+ android:textSize="12sp" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="485"
+ android:textColor="#ffffff"
+ android:textSize="20sp" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="following"
+ android:textColor="#ffffff"
+ android:textSize="12sp" />
+ </LinearLayout>
+ </LinearLayout>
+
+</LinearLayout>
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:id="@+id/vButtons"
+ android:layout_width="match_parent"
+ android:layout_height="48dp"
+ android:background="?attr/colorAccent">
+
+ <ImageButton
+ android:id="@+id/btnGrid"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:src="@drawable/ic_grid_on_white"
+ android:background="@android:color/transparent" />
+
+ <ImageButton
+ android:id="@+id/btnList"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:src="@drawable/ic_list_white"
+ android:background="@android:color/transparent" />
+
+ <ImageButton
+ android:id="@+id/btnMap"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:src="@drawable/ic_place_white"
+ android:background="@android:color/transparent" />
+
+ <ImageButton
+ android:id="@+id/btnTagged"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:src="@drawable/ic_label_white"
+ android:background="@android:color/transparent" />
+ </LinearLayout>
+
+ <View
+ android:id="@+id/vUnderline"
+ android:layout_width="100dp"
+ android:layout_height="6dp"
+ android:layout_gravity="bottom"
+ android:background="#5be5ad" />
+</FrameLayout>
@@ -5,4 +5,5 @@
<dimen name="btn_fab_margins">16dp</dimen>
<dimen name="default_elevation">8dp</dimen>
<dimen name="comment_avatar_size">56dp</dimen>
+ <dimen name="user_profile_avatar_size">88dp</dimen>
</resources>

0 comments on commit 7dc5488

Please sign in to comment.