Skip to content

Commit 2f14918

Browse files
AriesHooAriesHoo
authored andcommitted
1、升级BaseRecyclerViewAdapterHelper到3.x--升级变动较大主要是BaseRecyclerViewAdapterHelper包名及部分api调整参考demo
2、升级SmartRefreshLayout到2.x-升级变动较大主要是包名及api变动及拆分了不同的刷新头和脚 3、日常升级其它三方库版本不涉及包名及api变更 4、修改网络例子模型 5、修改演示例子获取url逻辑
1 parent 88f27da commit 2f14918

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

app/src/main/java/com/aries/library/fast/demo/entity/ReadArticleItemEntity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public class ReadArticleItemEntity {
1919
public String timeline;
2020
public int order;
2121
public boolean hasInstantView;
22+
public String url;
23+
public String mobileUrl;
2224
/**
2325
* instantView : true
2426
*/
@@ -71,6 +73,12 @@ public String getUrl() {
7173

7274

7375
public String getUrl() {
76+
if (mobileUrl != null) {
77+
return mobileUrl;
78+
}
79+
if (url != null) {
80+
return url;
81+
}
7482
return newsArray != null && newsArray.size() > 0
7583
? newsArray.get(0).getUrl()
7684
: "";

app/src/main/java/com/aries/library/fast/demo/module/main/sample/FastViewActivity.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import android.graphics.Color;
44
import android.os.Bundle;
5+
import android.view.Gravity;
56
import android.view.View;
7+
import android.widget.TextView;
68

79
import androidx.annotation.Nullable;
810
import androidx.appcompat.app.AppCompatActivity;
@@ -36,7 +38,12 @@ public View getContentView() {
3638

3739
@Override
3840
public void setTitleBar(TitleBarView titleBar) {
39-
titleBar.setTitleMainTextMarquee(true);
41+
TextView textView = new TextView(titleBar.getContext());
42+
textView.setText("你好");
43+
textView.setTextColor(Color.BLUE);
44+
// titleBar.setTitleMainTextMarquee(true);
45+
// titleBar.getLinearLayout(Gravity.RIGHT);
46+
titleBar.addRightAction(titleBar.new ViewAction(textView));
4047
}
4148

4249
@Override

0 commit comments

Comments
 (0)