Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
edfb598e
Commit
edfb598e
authored
May 07, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
fcb72e11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
PublishQuestionAndTrendFragment.java
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/fragment/PublishQuestionAndTrendFragment.java
+4
-1
dynamic_fragment_publish_trend.xml
m-dynamic/src/main/res/layout/dynamic_fragment_publish_trend.xml
+16
-8
No files found.
m-dynamic/src/main/java/com/yidianling/dynamic/publishTrend/fragment/PublishQuestionAndTrendFragment.java
View file @
edfb598e
...
@@ -119,7 +119,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
...
@@ -119,7 +119,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
private
EditText
publish_trend_title_editext
,
publish_trend_content_editext
;
private
EditText
publish_trend_title_editext
,
publish_trend_content_editext
;
private
RecyclerView
publish_trend_img_rcv
;
private
RecyclerView
publish_trend_img_rcv
;
private
ImageView
publish_trend_bottom_img_iv
;
private
ImageView
publish_trend_bottom_img_iv
;
private
View
lineTitle
;
private
LinearLayout
publish_anonymity_rel
;
private
LinearLayout
publish_anonymity_rel
;
private
LinearLayout
ll_to_expert
;
private
LinearLayout
ll_to_expert
;
private
ImageView
publish_anonymity_iv
;
private
ImageView
publish_anonymity_iv
;
...
@@ -394,6 +394,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
...
@@ -394,6 +394,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
publish_trend_content_num_tv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_content_num_tv
);
publish_trend_content_num_tv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_content_num_tv
);
publish_trend_bottom_topic_tv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_bottom_topic_tv
);
publish_trend_bottom_topic_tv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_bottom_topic_tv
);
publish_trend_title_editext
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_title_editext
);
publish_trend_title_editext
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_title_editext
);
lineTitle
=
getRootView
().
findViewById
(
R
.
id
.
lineTitle
);
publish_trend_content_editext
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_content_editext
);
publish_trend_content_editext
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_content_editext
);
publish_trend_img_rcv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_img_rcv
);
publish_trend_img_rcv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_img_rcv
);
publish_trend_bottom_img_iv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_bottom_img_iv
);
publish_trend_bottom_img_iv
=
getRootView
().
findViewById
(
R
.
id
.
publish_trend_bottom_img_iv
);
...
@@ -435,6 +436,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
...
@@ -435,6 +436,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
if
(
TextUtils
.
equals
(
type
,
TYPE_TREND
))
{
//动态
if
(
TextUtils
.
equals
(
type
,
TYPE_TREND
))
{
//动态
publish_trend_title_editext
.
setVisibility
(
View
.
GONE
);
publish_trend_title_editext
.
setVisibility
(
View
.
GONE
);
lineTitle
.
setVisibility
(
View
.
GONE
);
ll_to_expert
.
setVisibility
(
View
.
GONE
);
ll_to_expert
.
setVisibility
(
View
.
GONE
);
publish_trend_content_editext
.
setFilters
(
new
InputFilter
[]{
new
InputFilter
.
LengthFilter
(
500
)});
publish_trend_content_editext
.
setFilters
(
new
InputFilter
[]{
new
InputFilter
.
LengthFilter
(
500
)});
publish_trend_content_num_tv
.
setText
(
"0/500"
);
publish_trend_content_num_tv
.
setText
(
"0/500"
);
...
@@ -442,6 +444,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
...
@@ -442,6 +444,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
}
else
{
//提问
}
else
{
//提问
publish_trend_title_editext
.
setVisibility
(
View
.
VISIBLE
);
publish_trend_title_editext
.
setVisibility
(
View
.
VISIBLE
);
lineTitle
.
setVisibility
(
View
.
VISIBLE
);
ll_to_expert
.
setVisibility
(
View
.
VISIBLE
);
ll_to_expert
.
setVisibility
(
View
.
VISIBLE
);
publish_trend_content_editext
.
setFilters
(
new
InputFilter
[]{
new
InputFilter
.
LengthFilter
(
1000
)});
publish_trend_content_editext
.
setFilters
(
new
InputFilter
[]{
new
InputFilter
.
LengthFilter
(
1000
)});
publish_trend_content_num_tv
.
setText
(
"0/1000"
);
publish_trend_content_num_tv
.
setText
(
"0/1000"
);
...
...
m-dynamic/src/main/res/layout/dynamic_fragment_publish_trend.xml
View file @
edfb598e
...
@@ -9,13 +9,16 @@
...
@@ -9,13 +9,16 @@
android:id=
"@+id/trends_publish_question"
android:id=
"@+id/trends_publish_question"
android:focusableInTouchMode=
"true"
android:focusableInTouchMode=
"true"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:paddingBottom=
"50dp"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
android:background=
"@color/dynamic_white"
>
android:background=
"@color/dynamic_white"
>
<EditText
<EditText
android:id=
"@+id/publish_trend_title_editext"
android:id=
"@+id/publish_trend_title_editext"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -26,6 +29,7 @@
...
@@ -26,6 +29,7 @@
android:minHeight=
"50dp"
android:minHeight=
"50dp"
android:maxLength=
"35"
android:maxLength=
"35"
android:paddingLeft=
"15dp"
android:paddingLeft=
"15dp"
android:layout_alignParentTop=
"true"
android:paddingTop=
"13dp"
android:paddingTop=
"13dp"
android:paddingRight=
"15dp"
android:paddingRight=
"15dp"
android:paddingBottom=
"13dp"
android:paddingBottom=
"13dp"
...
@@ -33,16 +37,19 @@
...
@@ -33,16 +37,19 @@
android:textColorHint=
"#bfbfbf"
android:textColorHint=
"#bfbfbf"
android:textSize=
"24sp"
android:textSize=
"24sp"
tools:text=
"标题:说说你的标题:说说你的标题:说说你的困惑标题:说说你的困标题:说说你的困惑标题:说说你的困惑困惑标题:说说你的困惑"
/>
tools:text=
"标题:说说你的标题:说说你的标题:说说你的困惑标题:说说你的困标题:说说你的困惑标题:说说你的困惑困惑标题:说说你的困惑"
/>
<androidx.core.widget.NestedScrollView
<View
android:id=
"@+id/lineTitle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"1dp"
android:paddingBottom=
"50dp"
android:layout_marginLeft=
"15dp"
>
android:layout_below=
"@+id/publish_trend_title_editext"
android:layout_marginTop=
"6dp"
android:background=
"#eae9e9"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:layout_below=
"@id/publish_trend_title_editext
"
android:layout_below=
"@id/lineTitle
"
>
>
<EditText
<EditText
...
@@ -106,7 +113,7 @@
...
@@ -106,7 +113,7 @@
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:layout_below=
"@+id/publish_trend_content_num_tv"
android:layout_below=
"@+id/publish_trend_content_num_tv"
android:layout_marginTop=
"15dp"
android:layout_marginTop=
"15dp"
android:background=
"@color/platform_new_divide_color
"
/>
android:background=
"#eae9e9
"
/>
<androidx.cardview.widget.CardView
<androidx.cardview.widget.CardView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -164,8 +171,9 @@
...
@@ -164,8 +171,9 @@
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
</androidx.core.widget.NestedScrollView>
</RelativeLayout>
</RelativeLayout>
</androidx.core.widget.NestedScrollView>
<include
<include
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
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