Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
王海
TangKuPos
Commits
fd1fca83
Commit
fd1fca83
authored
Jan 17, 2018
by
zhang_z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码;
parent
3585e8f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
47 deletions
+59
-47
app/build.gradle
app/build.gradle
+1
-1
app/src/main/res/layout/item_ms.xml
app/src/main/res/layout/item_ms.xml
+58
-46
No files found.
app/build.gradle
View file @
fd1fca83
...
...
@@ -12,7 +12,7 @@ android {
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled
true
ndk
{
abiFilters
(
"armeabi"
,
"armeabi-v7a"
)
abiFilters
(
"armeabi"
,
"armeabi-v7a"
,
"x86"
)
}
}
//解决问题的代码
...
...
app/src/main/res/layout/item_ms.xml
View file @
fd1fca83
...
...
@@ -4,64 +4,76 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:background=
"@mipmap/bg_marketing"
android:foreground=
"?android:attr/selectableItemBackground"
android:orientation=
"vertical"
>
android:layout_height=
"wrap_content"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
android:layout_height=
"150dp"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:background=
"@mipmap/bg_marketing"
android:foreground=
"?android:attr/selectableItemBackground"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin_big"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_sub_title_size"
/>
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/iv_type"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin_big"
android:contentDescription=
"@null"
android:src=
"@mipmap/icon_buy01"
/>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_weight=
"1"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_sub_title_size"
/>
</LinearLayout>
<ImageView
android:id=
"@+id/iv_type"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:contentDescription=
"@null"
android:src=
"@mipmap/icon_buy01"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
</LinearLayout>
<TextView
android:id=
"@+id/tv_info"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_
marginStart=
"@dimen/all_margin
"
android:
textColor=
"@color/black_baozheng
"
android:
textSize=
"@dimen/all_text_size"
/
>
android:layout_height=
"
0dp
"
android:layout_
weight=
"1
"
android:
gravity=
"center_vertical
"
android:
orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_date"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_spacing"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_caption_size"
/>
<TextView
android:id=
"@+id/tv_info"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
<TextView
android:id=
"@+id/tv_date"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_spacing"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_caption_size"
/>
</LinearLayout>
</LinearLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"10dp"
/>
</LinearLayout>
</layout>
...
...
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