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
a3fa7278
Commit
a3fa7278
authored
Jul 31, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改海报圆角问题
parent
e9a2b800
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
ReativeBillActivity.java
...share/src/main/java/com/rv/share/ReativeBillActivity.java
+8
-8
activity_reative_bill.xml
plugin_share/src/main/res/layout/activity_reative_bill.xml
+8
-7
No files found.
plugin_share/src/main/java/com/rv/share/ReativeBillActivity.java
View file @
a3fa7278
...
...
@@ -53,8 +53,8 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
Button
btnShare
;
@BindView
(
R2
.
id
.
ll_bill_content
)
CardView
llBillContent
;
@BindView
(
R2
.
id
.
ll_content
)
LinearLayout
llContent
;
//
@BindView(R2.id.ll_content)
//
LinearLayout llContent;
public
static
Intent
getIntent
(
Context
context
,
String
url
)
{
Intent
intent
=
new
Intent
(
context
,
ReativeBillActivity
.
class
);
...
...
@@ -112,17 +112,17 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
private
void
preShare
(
int
type
,
int
requestCode
)
{
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
M
)
{
if
(
type
==
0
)
{
mPresenter
.
saveBill
(
llContent
);
mPresenter
.
saveBill
(
ll
Bill
Content
);
}
else
{
mPresenter
.
share
(
llContent
);
mPresenter
.
share
(
ll
Bill
Content
);
}
}
else
{
if
(
ContextCompat
.
checkSelfPermission
(
this
,
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
)
==
PackageManager
.
PERMISSION_GRANTED
)
{
if
(
type
==
0
)
{
mPresenter
.
saveBill
(
llContent
);
mPresenter
.
saveBill
(
ll
Bill
Content
);
}
else
{
mPresenter
.
share
(
llContent
);
mPresenter
.
share
(
ll
Bill
Content
);
}
}
else
{
//申请权限
ActivityCompat
.
requestPermissions
(
this
,
...
...
@@ -137,14 +137,14 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
switch
(
requestCode
)
{
case
1001
:
if
(
grantResults
[
0
]
==
PackageManager
.
PERMISSION_GRANTED
)
{
mPresenter
.
saveBill
(
llContent
);
mPresenter
.
saveBill
(
ll
Bill
Content
);
}
else
{
Toast
.
makeText
(
getApplicationContext
(),
"授权失败,无法分享海报"
,
Toast
.
LENGTH_SHORT
).
show
();
}
break
;
case
1002
:
if
(
grantResults
[
0
]
==
PackageManager
.
PERMISSION_GRANTED
)
{
mPresenter
.
share
(
llContent
);
mPresenter
.
share
(
ll
Bill
Content
);
}
else
{
Toast
.
makeText
(
getApplicationContext
(),
"授权失败,无法分享海报"
,
Toast
.
LENGTH_SHORT
).
show
();
}
...
...
plugin_share/src/main/res/layout/activity_reative_bill.xml
View file @
a3fa7278
...
...
@@ -30,6 +30,7 @@
android:background=
"#55eeeeee"
>
<ScrollView
android:scrollbars=
"none"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"13dp"
...
...
@@ -37,11 +38,12 @@
android:layout_marginRight=
"13dp"
android:layout_marginBottom=
"@dimen/size_70"
>
<LinearLayout
android:id=
"@+id/ll_content"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
>
<!--<LinearLayout-->
<!--android:background="#55eeeeee"-->
<!--android:id="@+id/ll_content"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:gravity="center">-->
<android.support.v7.widget.CardView
android:id=
"@+id/ll_bill_content"
...
...
@@ -58,7 +60,6 @@
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:scaleType=
"fitXY"
android:src=
"@drawable/bg_bill"
/>
<LinearLayout
...
...
@@ -142,7 +143,7 @@
</LinearLayout>
</android.support.v7.widget.CardView>
<
/LinearLayout
>
<
!--</LinearLayout>--
>
</ScrollView>
<LinearLayout
...
...
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