Skip to content

Commit be34835

Browse files
committed
1、修改FastLoadMoreView及FastMultiStatusView 的Builder模式将默认配置参数放置其中不在FastConfig初始化
2、优化Demo过度绘制情况及截图
1 parent 93592b3 commit be34835

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

apk/sample.apk

-64 Bytes
Binary file not shown.

app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
<!-- 应用内浏览器 -->
4545
<activity
4646
android:name=".module.WebViewActivity"
47-
android:screenOrientation="landscape"
4847
android:configChanges="locale|layoutDirection|mcc|mnc|orientation|screenSize"
4948
android:hardwareAccelerated="true"/>
5049
<!-- 滑动返回Activity-微信效果 -->

app/src/main/java/com/aries/library/fast/demo/App.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void onCreate() {
7676
// 设置全局TitleBarView-其它属性请查看getInstance默认设置
7777
.setTitleConfig(titleConfig
7878
//设置TitleBarView 所有TextView颜色
79-
.setTitleTextColor(mContext.getResources().getColor(R.color.colorTitleText))
79+
.setTitleTextColor(getResources().getColor(R.color.colorTitleText))
8080
//设置TitleBarView背景资源
8181
.setTitleBackgroundResource(R.color.colorTitleBackground)
8282
//设置是否状态栏浅色模式(深色状态栏文字及图标)
@@ -91,12 +91,12 @@ public void onCreate() {
9191
//设置退回桌面是否有一次提示setBackToTaskEnable(true)才有意义
9292
.setBackToTaskDelayEnable(isBackTask)
9393
.setQuitDelay(2000)
94-
.setQuitMessage(isBackTask ? mContext.getText(R.string.fast_back_home) : mContext.getText(R.string.fast_quit_app))
94+
.setQuitMessage(isBackTask ? getText(R.string.fast_back_home) : getText(R.string.fast_quit_app))
9595
.setSnackBarBackgroundColor(Color.argb(220, 0, 0, 0))
9696
.setSnackBarEnable(false)
9797
.setSnackBarMessageColor(Color.WHITE))
9898
//设置Glide背景色
99-
.setPlaceholderColor(mContext.getResources().getColor(R.color.colorPlaceholder))
99+
.setPlaceholderColor(getResources().getColor(R.color.colorPlaceholder))
100100
//设置Glide圆角背景弧度
101101
.setPlaceholderRoundRadius(mContext.getResources().getDimension(R.dimen.dp_placeholder_radius))
102102
//设置Activity是否支持滑动返回-添加透明主题参考Demo样式;

app/src/main/res/layout/fragment_mine.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<com.allen.library.SuperTextView
6262
android:id="@+id/stv_libraryMine"
6363
style="@style/SupperTextStyleItem"
64-
app:sDividerLineType="none"
64+
app:sDividerLineType="top"
6565
app:sLeftIconRes="@drawable/ic_github"
6666
app:sLeftTextString="@string/library_address"/>
6767

0 commit comments

Comments
 (0)