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
f404e6fc
Commit
f404e6fc
authored
Aug 08, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改活动弹框的大小为满屏
parent
333b6b9d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
17 deletions
+21
-17
PromotionDialog.java
...hare/src/main/java/com/rv/share/view/PromotionDialog.java
+10
-1
dialog_promotion.xml
plugin_share/src/main/res/layout/dialog_promotion.xml
+8
-13
dimens.xml
plugin_share/src/main/res/values-hdpi/dimens.xml
+1
-1
dimens.xml
plugin_share/src/main/res/values-xhdpi/dimens.xml
+1
-1
dimens.xml
plugin_share/src/main/res/values-xxhdpi/dimens.xml
+1
-1
No files found.
plugin_share/src/main/java/com/rv/share/view/PromotionDialog.java
View file @
f404e6fc
...
@@ -4,8 +4,10 @@ import android.app.Dialog;
...
@@ -4,8 +4,10 @@ import android.app.Dialog;
import
android.content.Context
;
import
android.content.Context
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.Gravity
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.WindowManager
;
import
android.view.WindowManager
;
import
android.widget.Button
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
...
@@ -13,12 +15,13 @@ import android.widget.TextView;
...
@@ -13,12 +15,13 @@ import android.widget.TextView;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.Glide
;
import
com.ruiwenliu.wrapper.bean.ActBean
;
import
com.ruiwenliu.wrapper.bean.ActBean
;
import
com.ruiwenliu.wrapper.dialog.BaseDialog
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideOptions
;
import
com.ruiwenliu.wrapper.util.glide.GlideOptions
;
import
com.rv.share.R
;
import
com.rv.share.R
;
import
com.rv.share.utils.TransformationUtils
;
import
com.rv.share.utils.TransformationUtils
;
public
class
PromotionDialog
extends
Dialog
{
public
class
PromotionDialog
extends
Base
Dialog
{
public
PromotionDialog
(
@NonNull
Context
context
)
{
public
PromotionDialog
(
@NonNull
Context
context
)
{
super
(
context
);
super
(
context
);
...
@@ -26,6 +29,12 @@ public class PromotionDialog extends Dialog {
...
@@ -26,6 +29,12 @@ public class PromotionDialog extends Dialog {
public
PromotionDialog
(
Context
context
,
int
themeResId
)
{
public
PromotionDialog
(
Context
context
,
int
themeResId
)
{
super
(
context
,
themeResId
);
super
(
context
,
themeResId
);
setDialogParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
,
Gravity
.
CENTER
);
}
@Override
public
int
getViewLayout
()
{
return
R
.
layout
.
dialog_promotion
;
}
}
public
static
class
Builder
{
public
static
class
Builder
{
...
...
plugin_share/src/main/res/layout/dialog_promotion.xml
View file @
f404e6fc
...
@@ -5,20 +5,15 @@
...
@@ -5,20 +5,15 @@
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:minHeight=
"@dimen/dialog_min_height"
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/img_bg"
android:id=
"@+id/img_bg"
android:layout_width=
"@dimen/dialog_act_width
"
android:layout_width=
"match_parent
"
android:layout_height=
"@dimen/dialog_act_heigh
t"
android:layout_height=
"wrap_conten
t"
android:minHeight=
"@dimen/dialog_min_height
"
android:layout_marginLeft=
"@dimen/size_30
"
android:scaleType=
"fitXY"
/>
android:layout_marginRight=
"@dimen/size_30"
android:minWidth=
"@dimen/dialog_act_width"
</FrameLayout
>
android:minHeight=
"@dimen/dialog_act_height"
/
>
<ImageView
<ImageView
android:id=
"@+id/img_close"
android:id=
"@+id/img_close"
...
...
plugin_share/src/main/res/values-hdpi/dimens.xml
View file @
f404e6fc
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<dimen
name=
"dialog_width"
>
150dp
</dimen>
<dimen
name=
"dialog_width"
>
150dp
</dimen>
<dimen
name=
"dialog_min_height"
>
150dp
</dimen>
<dimen
name=
"dialog_min_height"
>
150dp
</dimen>
<dimen
name=
"dialog_act_width"
>
150dp
</dimen>
<dimen
name=
"dialog_act_width"
>
150dp
</dimen>
<dimen
name=
"dialog_act_height"
>
20
0dp
</dimen>
<dimen
name=
"dialog_act_height"
>
15
0dp
</dimen>
<dimen
name=
"height_share_ruler_top"
>
108.34dp
</dimen>
<dimen
name=
"height_share_ruler_top"
>
108.34dp
</dimen>
</resources>
</resources>
plugin_share/src/main/res/values-xhdpi/dimens.xml
View file @
f404e6fc
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<dimen
name=
"dialog_width"
>
200dp
</dimen>
<dimen
name=
"dialog_width"
>
200dp
</dimen>
<dimen
name=
"dialog_min_height"
>
200dp
</dimen>
<dimen
name=
"dialog_min_height"
>
200dp
</dimen>
<dimen
name=
"dialog_act_width"
>
200dp
</dimen>
<dimen
name=
"dialog_act_width"
>
200dp
</dimen>
<dimen
name=
"dialog_act_height"
>
2
66.67
dp
</dimen>
<dimen
name=
"dialog_act_height"
>
2
00
dp
</dimen>
<dimen
name=
"height_share_ruler_top"
>
240.45dp
</dimen>
<dimen
name=
"height_share_ruler_top"
>
240.45dp
</dimen>
</resources>
</resources>
plugin_share/src/main/res/values-xxhdpi/dimens.xml
View file @
f404e6fc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<dimen
name=
"dialog_min_height"
>
300dp
</dimen>
<dimen
name=
"dialog_min_height"
>
300dp
</dimen>
<dimen
name=
"dialog_act_width"
>
300dp
</dimen>
<dimen
name=
"dialog_act_width"
>
300dp
</dimen>
<dimen
name=
"dialog_act_height"
>
4
00dp
</dimen>
<dimen
name=
"dialog_act_height"
>
3
00dp
</dimen>
<dimen
name=
"height_share_ruler_top"
>
216.67dp
</dimen>
<dimen
name=
"height_share_ruler_top"
>
216.67dp
</dimen>
...
...
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