Skip to content

Commit

Permalink
Merge pull request #50 from cyclexuxu/rank
Browse files Browse the repository at this point in the history
change background color
  • Loading branch information
cyclexuxu authored Dec 5, 2020
2 parents 10e9beb + e9c4746 commit 005d777
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
15 changes: 9 additions & 6 deletions app/src/main/res/layout/fragment_rank.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#EFBBCF"
android:backgroundTint="#EFBBCF"
xmlns:app="http://schemas.android.com/apk/res-auto">

<LinearLayout
Expand All @@ -15,7 +17,7 @@
android:id="@+id/etToday"
android:textAlignment="center"
android:textSize="20sp"
android:textColor="#FF9800"
android:fontFamily="@font/baloo"
android:textStyle="bold"
/>

Expand All @@ -34,7 +36,7 @@
android:layout_height="wrap_content"
android:padding="10dp"
android:textAlignment="center"
android:textColor="#FF9800"
android:fontFamily="@font/baloo"
android:textSize="20sp"
android:textStyle="bold" />

Expand All @@ -52,7 +54,7 @@
android:layout_weight="0.4"
android:padding="10dp"
android:textAlignment="center"
android:textColor="#FF9800"
android:fontFamily="@font/baloo"
android:textSize="20sp"
android:textStyle="bold" />

Expand All @@ -63,15 +65,16 @@
android:layout_weight="0.4"
android:padding="10dp"
android:textAlignment="center"
android:textColor="#FF9800"
android:fontFamily="@font/baloo"
android:textSize="20sp"
android:textStyle="bold" />

<ImageButton
android:id="@+id/btnLikeIcon"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="#FFFFFF"
android:background="#EFBBCF"
android:backgroundTint="#EFBBCF"
android:soundEffectsEnabled="false"
android:src="@drawable/ic_action_like" />

Expand All @@ -81,8 +84,8 @@
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:padding="10dp"
android:fontFamily="@font/baloo"
android:textAlignment="center"
android:textColor="#FF9800"
android:textSize="20sp"
android:textStyle="bold" />

Expand Down
9 changes: 8 additions & 1 deletion app/src/main/res/layout/item_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
android:id="@+id/tvRank"
android:layout_width="40dp"
android:layout_height="40dp"
android:fontFamily="@font/baloo"
android:textAlignment="center" />

<ImageView
android:id="@+id/ivIcon"
android:layout_width="30dp"
android:layout_height="30dp"
android:background="#EFBBCF"
android:backgroundTint="#EFBBCF"
android:src="@drawable/paw"
/>

Expand All @@ -24,13 +27,15 @@
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_weight="0.4"
android:fontFamily="@font/baloo"
android:textAlignment="center"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvSteps"
android:layout_width="40dp"
android:layout_height="40dp"
android:fontFamily="@font/baloo"
android:layout_weight="0.4"
android:textAlignment="center"
/>
Expand All @@ -39,15 +44,17 @@
android:id="@+id/btnLikeIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#40FFFFFF"
android:clickable="true"
android:background="#EFBBCF"
android:backgroundTint="#EFBBCF"
android:soundEffectsEnabled="true"
android:src="@drawable/ic_action_dislike" />

<TextView
android:id="@+id/tvLikes"
android:layout_width="40dp"
android:layout_height="40dp"
android:fontFamily="@font/baloo"
android:textAlignment="center"
android:layout_weight="0.2"
/>
Expand Down

0 comments on commit 005d777

Please sign in to comment.