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
aa59c105
authored
6 years ago
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单详情备注查看更多
parent
062517e8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
baseSDK/src/main/java/com/dayu/base/ui/adapter/CoreAdapter.java
orderCenter/src/main/java/com/dayu/order/ui/fragment/MultiOrderDetailFragment.java
orderCenter/src/main/res/layout/fragment_multi_detail.xml
baseSDK/src/main/java/com/dayu/base/ui/adapter/CoreAdapter.java
View file @
aa59c105
...
@@ -89,6 +89,11 @@ public class CoreAdapter<M, B> extends RecyclerView.Adapter<BaseViewHolder> {
...
@@ -89,6 +89,11 @@ public class CoreAdapter<M, B> extends RecyclerView.Adapter<BaseViewHolder> {
}
}
}
}
public
void
setViewType
(
@LayoutRes
int
type
)
{
this
.
viewType
=
type
;
}
public
void
setTypeSelector
(
TypeSelector
mTypeSelector
)
{
public
void
setTypeSelector
(
TypeSelector
mTypeSelector
)
{
this
.
mTypeSelector
=
mTypeSelector
;
this
.
mTypeSelector
=
mTypeSelector
;
this
.
viewType
=
Constants
.
FLAG_MULTI_VH
;
this
.
viewType
=
Constants
.
FLAG_MULTI_VH
;
...
...
This diff is collapsed.
Click to expand it.
orderCenter/src/main/java/com/dayu/order/ui/fragment/MultiOrderDetailFragment.java
View file @
aa59c105
...
@@ -90,6 +90,13 @@ public class MultiOrderDetailFragment extends DataBindingFragment<FragmentMultiD
...
@@ -90,6 +90,13 @@ public class MultiOrderDetailFragment extends DataBindingFragment<FragmentMultiD
}
}
}
}
});
});
mBind
.
orderRemark
.
post
(()
->
{
if
(
UIUtils
.
isOverFlowed
(
mBind
.
orderRemark
))
{
mBind
.
tvLookMore
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
mBind
.
tvLookMore
.
setVisibility
(
View
.
GONE
);
}
});
mBind
.
tvOrderState
.
setText
(
getStaus
(
detail
.
getStatus
()));
mBind
.
tvOrderState
.
setText
(
getStaus
(
detail
.
getStatus
()));
mBind
.
tvLookMore
.
setOnClickListener
(
o
->
lookMore
());
mBind
.
tvLookMore
.
setOnClickListener
(
o
->
lookMore
());
...
...
This diff is collapsed.
Click to expand it.
orderCenter/src/main/res/layout/fragment_multi_detail.xml
View file @
aa59c105
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
android:id=
"@+id/tv_fujian"
android:id=
"@+id/tv_fujian"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/
tv_remark
"
android:layout_below=
"@+id/
rl_info_detail
"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:layout_marginTop=
"15dp"
android:layout_marginTop=
"15dp"
android:text=
"@string/order_attachment"
android:text=
"@string/order_attachment"
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
android:id=
"@+id/ll_fujian"
android:id=
"@+id/ll_fujian"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/
tv_remark
"
android:layout_below=
"@+id/
rl_info_detail
"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:layout_marginLeft=
"19dp"
android:layout_marginLeft=
"19dp"
android:layout_marginTop=
"@dimen/dp_15"
android:layout_marginTop=
"@dimen/dp_15"
...
...
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