Skip to content

Commit

Permalink
improve the nightmode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tneciv committed Mar 5, 2016
1 parent abd6bcf commit 0d743d7
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 28 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### 历史版本:

* [3.38](https://raw.githubusercontent.com/Tneciv/ZhihuDaily/dev/apk/com.tneciv.zhihudaily-3.38-20160305-release.apk)
* [3.36](https://raw.githubusercontent.com/Tneciv/ZhihuDaily/dev/apk/com.tneciv.zhihudaily-3.36-20160229-release.apk)
* [3.35](https://raw.githubusercontent.com/Tneciv/ZhihuDaily/dev/apk/com.tneciv.zhihudaily-3.35-20160225-release.apk)
* [3.33](https://raw.githubusercontent.com/Tneciv/ZhihuDaily/dev/apk/com.tneciv.zhihudaily-3.33-20160220-release.apk)
Expand All @@ -15,11 +16,11 @@
#### 部分特性

- Material Design
- 首页最新消息
- 启动速度优化
- 不含多余权限
- 多种视图模式
- MVP架构
- 夜间模式
- 无图模式

#### 为什么是「壁上观」

Expand All @@ -36,9 +37,7 @@

#### 为什么要有「壁上观」?

起初「壁上观」只是一个练手项目,只有很简单的网络请求和结果解析加载功能,发布到Google play后意外得到了几个好评,深感愧疚,便有了重构了的念头。

项目重构为MVP架构,第三方库也基本全部更换,为了更深入理解 Material Design , 重新学习 Google guide , 坑挖的太大,仍在努力填坑中。
官方知乎日报客户端迟迟不见更新为 Material Design ,界面不够美观,内容分类杂乱,一己之力,希望有另一种实现。

### 应用预览

Expand Down
Binary file not shown.
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 "com.tneciv.zhihudaily"
minSdkVersion 16
targetSdkVersion 23
versionCode 20160303
versionName '3.37'
versionCode 20160305
versionName '3.38'
}
buildTypes {
release {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/appintro_first.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
android:gravity="center"
android:paddingLeft="64dp"
android:paddingRight="64dp"
android:text="是一个知乎日报阅读app"
android:text="是一个知乎日报阅读App"
android:textColor="#ffffff"
android:textSize="16sp" />

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/appintro_third.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
android:layout_weight="3"
android:gravity="center"
android:paddingLeft="64dp"
android:autoLink="web"
android:paddingRight="64dp"
android:text="「壁上观」\n\n @Tneciv"
android:text="「壁上观」 Tneciv © \n \n https://github.com/Tneciv/ZhihuDaily "
android:textColor="#ffffff"
android:textSize="16sp" />

Expand Down
15 changes: 11 additions & 4 deletions app/src/main/res/layout/content_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
android:id="@+id/nested"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="28dp"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbarStyle="insideOverlay"
android:scrollbars="vertical"
Expand All @@ -14,9 +13,17 @@
tools:context="com.tneciv.zhihudaily.detail.view.DetailActivity"
tools:showIn="@layout/activity_detail">

<WebView
android:id="@+id/webView"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingTop="28dp">

<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>


</android.support.v4.widget.NestedScrollView>
8 changes: 4 additions & 4 deletions app/src/main/res/menu/activity_main_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

<item android:title="@string/app_name">
<menu>
<item
android:id="@+id/nav_gitHub"
android:icon="@drawable/ic_action_github"
android:title="@string/title_activity_opensource" />
<item
android:id="@+id/nav_send"
android:icon="@drawable/ic_fingerprint"
android:title="@string/about" />
<item
android:id="@+id/nav_gitHub"
android:icon="@drawable/ic_action_github"
android:title="GitHub" />
</menu>
</item>

Expand Down
Binary file modified app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions app/src/main/res/values-night-v21/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<!--<item name="android:windowDrawsSystemBarBackgrounds">true</item>-->
<!--<item name="android:statusBarColor">@android:color/transparent</item>-->
</style>

</resources>
3 changes: 0 additions & 3 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<color name="cardBackground">#1E1E1E</color>
<color name="transBackOfTheme">#80FFFFFF</color>

<!--<color name="colorPrimaryNight">#212121</color>-->
<!--<color name="colorPrimaryDarkNight">#191919</color>-->
<!--<color name="colorAccentNight">#c51162</color>-->
<color name="dayNightBackground">#60FFFFFF</color>
<color name="colorDivider">#60ffffff</color>
</resources>
6 changes: 0 additions & 6 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
<resources>
<color name="primary">#673AB7</color>
<color name="primary_dark">#512DA8</color>
<!--<color name="primary_light">#D1C4E9</color>-->
<color name="accent">#FF4081</color>
<color name="cardBackground">#FFFFFF</color>
<color name="transBackOfTheme">#46000000</color>
<color name="primary_text">#212121</color>
<color name="secondary_text">#727272</color>
<!--<color name="icons">#FFFFFF</color>-->
<color name="divider">#B6B6B6</color>
<!--<color name="dayNightBackground">#FFFFFF</color>-->
<color name="colorPrimaryNight">#283593</color>
<color name="colorPrimaryDarkNight">#1a237e</color>
<color name="colorAccentNight">#c51162</color>

<color name="colorDivider">#60000000</color>

Expand Down

0 comments on commit 0d743d7

Please sign in to comment.