Skip to content

Commit

Permalink
增加更多夜间模式颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
郭文明 committed Aug 29, 2016
1 parent f42b043 commit 3e91a13
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,14 @@ public void initListView(ArrayList<User> userArrayList) {
mAddAccountBut = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.accout_layout_item_footerview, null);
mAdapter = new AccoutAdapter(mContext, userArrayList);
listview.addFooterView(mAddAccountBut);
listview.setDivider(new ColorDrawable(Color.parseColor("#e5e5e5")));
listview.setDividerHeight(DensityUtil.dp2px(mContext, 1));
//listview.setDivider(new ColorDrawable(Color.parseColor("#e5e5e5")));
//listview.setDividerHeight(DensityUtil.dp2px(mContext, 1));
listview.setAdapter(mAdapter);
}

@Override
public void finishItself() {
finish();
;
}

@Override
Expand Down
3 changes: 3 additions & 0 deletions weiSwift/src/main/res/layout/accout_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/windowBackground"
android:fitsSystemWindows="true"
android:orientation="vertical">

Expand All @@ -13,6 +14,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="17dp"
android:divider="@color/account_item_drive"
android:dividerHeight="1dp"
android:visibility="gone"
tools:listitem="@layout/accout_layout_item" />

Expand Down
4 changes: 1 addition & 3 deletions weiSwift/src/main/res/layout/accout_layout_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="71dp"
android:layout_marginBottom="1dp"
android:background="@drawable/message_item_auto"

android:orientation="horizontal">

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down Expand Up @@ -38,7 +36,7 @@
android:layout_centerInParent="true"
android:layout_gravity="center"
android:singleLine="true"
android:textColor="#343434"
android:textColor="@color/account_item_name"
android:textSize="17sp" />

</LinearLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
android:layout_gravity="center"
android:singleLine="true"
android:text="添加帐号"
android:textColor="#343434"
android:textColor="@color/account_item_name"
android:textSize="17sp" />

</LinearLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="闭关写代码"
android:singleLine="true"
android:textColor="@color/follow_item_name"
android:textSize="16sp" />
android:textSize="15sp" />

<TextView
android:id="@+id/follower_firstcontent"
Expand All @@ -67,7 +68,7 @@
android:layout_height="wrap_content"
android:text="来自"
android:textColor="@color/follow_item_constant_comefrom"
android:textSize="14sp" />
android:textSize="12sp" />

<TextView
android:id="@+id/profile_comefrom"
Expand All @@ -76,7 +77,7 @@
android:layout_marginLeft="2dp"
android:text="微博推荐"
android:textColor="@color/follow_item_comefrom"
android:textSize="14sp" />
android:textSize="12sp" />
</LinearLayout>

</LinearLayout>
Expand Down Expand Up @@ -108,7 +109,7 @@
android:layout_centerInParent="true"
android:gravity="center"
android:text="加关注"
android:textColor="@color/follow_item_button_text"
android:textColor="@color/follow_item_button_follow_none"
android:textSize="10sp" />

</RelativeLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
android:singleLine="true"
android:text="闭关写代码"
android:textColor="@color/friend_item_name"
android:textSize="16sp" />
android:textSize="15sp" />

<TextView
android:id="@+id/friend_content"
Expand Down
14 changes: 14 additions & 0 deletions weiSwift/src/main/res/values-night/color.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,21 @@
<color name="night_friend_item_button_follow_alreay">#8b8b8b</color><!--已关注 -->
<color name="night_friend_item_button_follow_none">#f79f43</color><!--加关注 -->

<!--我的粉丝 -->
<color name="follow_item_name">#8a8a8a</color>
<color name="follow_item_description">#444849</color>
<color name="follow_item_button_text">#e98219</color>

<color name="follow_item_constant_comefrom">#919191</color>
<color name="follow_item_comefrom">#4d80b2</color>

<color name="night_follow_item_button_follow_each_other">#5788BF</color> <!--互相关注 -->
<color name="night_follow_item_button_follow_alreay">#8b8b8b</color><!--已关注 -->
<color name="night_follow_item_button_follow_none">#f79f43</color><!--加关注 -->

<!-- account -->
<color name="account_item_drive">#1a1a1a</color>
<color name="account_item_name">#868686</color>

<color name="white">#FFFFFF</color><!--白色 -->
<color name="orange">#FFA500</color><!--橙色 -->
Expand Down
8 changes: 8 additions & 0 deletions weiSwift/src/main/res/values/color.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@
<color name="follow_item_constant_comefrom">#919191</color>
<color name="follow_item_comefrom">#4d80b2</color>

<color name="follow_item_button_follow_each_other">#5788BF</color> <!--互相关注 -->
<color name="follow_item_button_follow_alreay">#898989</color><!--已关注 -->
<color name="follow_item_button_follow_none">#e98219</color><!--加关注 -->


<!-- account -->
<color name="account_item_drive">#e5e5e5</color>
<color name="account_item_name">#e5e5e5</color>


<color name="white">#FFFFFF</color><!--白色 -->
Expand Down

0 comments on commit 3e91a13

Please sign in to comment.