Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e2aa10f7
authored
8 months ago
by
han xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学习名称判断
parent
b31ef2af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
7 deletions
baseSDK/src/main/res/layout/layout_learn_top_tab.xml
learnCenter/src/main/java/com/dayu/learncenter/ui/fragment/HomeLearnFragment.java
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderAdapter.java
baseSDK/src/main/res/layout/layout_learn_top_tab.xml
View file @
e2aa10f7
...
...
@@ -10,7 +10,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"40dp"
android:gravity=
"center|bottom"
android:text=
"
AI
"
android:text=
""
android:textColor=
"@color/common_red"
android:textSize=
"28sp"
android:textStyle=
"bold"
/>
...
...
@@ -20,7 +20,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"
智能助手
"
android:text=
""
android:textColor=
"#585858"
android:textSize=
"13.3sp"
/>
...
...
This diff is collapsed.
Click to expand it.
learnCenter/src/main/java/com/dayu/learncenter/ui/fragment/HomeLearnFragment.java
View file @
e2aa10f7
...
...
@@ -113,7 +113,13 @@ public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHom
String
url
=
data
.
getPaperListUrl
()
+
"?accountId="
+
mUserInfo
.
getAccountId
()
+
"&token="
+
mUserInfo
.
getToken
();
webFragment
.
setUrl
(
url
);
setTabNum
();
if
(
data
.
getEnterKnowledge
()
==
1
)
{
setTabNum
(
1
);
}
else
{
setTabNum
(
2
);
}
}));
}
...
...
@@ -182,11 +188,11 @@ public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHom
}
});
setTabNum
();
setTabNum
(
0
);
mBind
.
tabLearn
.
getTabAt
(
0
).
select
();
}
public
void
setTabNum
()
{
public
void
setTabNum
(
Integer
type
)
{
// EventBus.getDefault().post(new LearnTabNumEvent(1));
int
[]
tabNum
;
if
(
tabBean
!=
null
)
{
...
...
@@ -205,7 +211,24 @@ public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHom
isFirstAddTab
=
false
;
}
else
{
for
(
int
i
=
0
;
i
<
mBind
.
tabLearn
.
getTabCount
();
i
++)
{
if
(
i
==
mBind
.
tabLearn
.
getTabCount
()
-
1
)
return
;
if
(
i
==
mBind
.
tabLearn
.
getTabCount
()
-
1
){
TextView
tv
=
mBind
.
tabLearn
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabtext
);
TextView
tvIcon
=
mBind
.
tabLearn
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabicon
);
if
(
type
==
1
){
tv
.
setText
(
"知识库"
);
tv
.
setTextSize
(
16
);
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
black
));
tvIcon
.
setText
(
""
);
}
else
if
(
type
==
2
)
{
tv
.
setText
(
"AI"
);
// tv.setTextSize(16);
// tv.setTextColor(getResources().getColor(R.color.black));
tvIcon
.
setText
(
"智能助手"
);
}
return
;
}
TextView
tv
=
mBind
.
tabLearn
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabtext
);
TextView
tvIcon
=
mBind
.
tabLearn
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabicon
);
tvIcon
.
setText
(
tabDesc
[
i
]);
...
...
This diff is collapsed.
Click to expand it.
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderAdapter.java
View file @
e2aa10f7
...
...
@@ -811,7 +811,7 @@ public class OrderAdapter extends CoreAdapter<Order, FragmentOrderdoingItemBindi
ToastUtils
.
showShortToast
(
"开始服务操作成功"
);
ProgressUtil
.
stopLoad
();
mPresenter
.
setPosition
(
position
);
mPresenter
.
refreshClear
();
//
mPresenter.refreshClear();
EventBus
.
getDefault
().
post
(
new
RefreshServe
(
1
));
}
else
{
ProgressUtil
.
stopLoad
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment