Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
lify
RvApp
Commits
b079251e
Commit
b079251e
authored
Oct 12, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍拍ui优化
parent
484cd9d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
40 deletions
+47
-40
rv_item_discovery_ask.xml
...e_discovery/src/main/res/layout/rv_item_discovery_ask.xml
+15
-14
rv_item_discovery_recommend.xml
...overy/src/main/res/layout/rv_item_discovery_recommend.xml
+32
-26
No files found.
module_discovery/src/main/res/layout/rv_item_discovery_ask.xml
View file @
b079251e
...
...
@@ -10,18 +10,18 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:
paddingTop=
"@dimen/size_8
"
android:
orientation=
"vertical
"
android:paddingLeft=
"@dimen/size_15"
android:padding
Right=
"@dimen/size_15
"
android:
orientation=
"vertical
"
>
android:padding
Top=
"@dimen/size_8
"
android:
paddingRight=
"@dimen/size_15
"
>
<TextView
android:id=
"@+id/tv_ask_content"
android:layout_width=
"wrap_content"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:lines=
"2"
android:ellipsize=
"end"
android:lines=
"2"
android:text=
""
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -30,9 +30,9 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:
paddingBottom=
"@dimen/size_8
"
android:
orientation=
"horizontal
"
android:paddingTop=
"@dimen/size_5"
android:
orientation=
"horizontal
"
>
android:
paddingBottom=
"@dimen/size_8
"
>
<com.base.utils.ui.image.round.RoundImageView
android:id=
"@+id/iv_ask_icon"
...
...
@@ -43,13 +43,14 @@
<TextView
android:id=
"@+id/tv_ask_name"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_5"
android:
text=
"房车旅行家Rose
"
android:
layout_weight=
"1
"
android:ellipsize=
"end"
android:maxLines=
"1"
android:maxEms=
"6"
android:maxLines=
"1"
android:singleLine=
"true"
android:text=
""
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_10"
/>
...
...
@@ -58,9 +59,9 @@
android:id=
"@+id/ll_item_like"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingLeft=
"@dimen/size_15"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_15"
>
<ImageView
android:id=
"@+id/iv_like"
...
...
@@ -72,8 +73,8 @@
android:id=
"@+id/tv_like_number"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"1509"
android:layout_marginLeft=
"@dimen/size_5"
android:text=
""
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -82,8 +83,8 @@
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/size_15"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
...
...
@@ -95,8 +96,8 @@
android:id=
"@+id/tv_comment_number"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"1509"
android:layout_marginLeft=
"@dimen/size_5"
android:text=
""
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
module_discovery/src/main/res/layout/rv_item_discovery_recommend.xml
View file @
b079251e
...
...
@@ -11,23 +11,23 @@
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<ImageView
android:id=
"@+id/iv_icon_pat"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_icon_pat"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_isvideo"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:src=
"@drawable/icon_fragment_video_hint"
/>
<ImageView
android:id=
"@+id/iv_isvideo"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:src=
"@drawable/icon_fragment_video_hint"
/>
</RelativeLayout>
</RelativeLayout>
<TextView
...
...
@@ -35,24 +35,27 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:ellipsize=
"end"
android:maxLines=
"2"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
android:maxLines=
"2"
android:ellipsize=
"end"
android:text=
"行摄川西邂逅生命中未知的精彩"
android:text=
""
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
<
Relative
Layout
<
Linear
Layout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginBottom=
"@dimen/size_10"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_5"
>
<LinearLayout
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
...
...
@@ -67,7 +70,9 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"房车旅行家Rose"
android:ellipsize=
"end"
android:singleLine=
"true"
android:text=
""
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
...
...
@@ -75,13 +80,14 @@
android:id=
"@+id/ll_item_islike"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginLeft=
"@dimen/size_20"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_15"
android:paddingTop=
"@dimen/size_5"
android:paddingBottom=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_15"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:paddingBottom=
"@dimen/size_5"
>
<ImageView
android:id=
"@+id/iv_like"
...
...
@@ -95,10 +101,10 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"
10589
"
android:text=
""
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
</
Relative
Layout>
</
Linear
Layout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
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