java.lang.Object | |
↳ | com.google.android.gms.wallet.fragment.WalletFragmentStyle |
Defines attributes to customize the look and feel of WalletFragment
, to be used in
setFragmentStyle(WalletFragmentStyle)
. You may also
specify these attributes using custom XML tags in a style resource and either add
wallet:fragmentStyle="@style/MyWalletFragmentCustomStyle"
to your
<fragment>
tag or pass the id of the style resource in
setFragmentStyle(int)
.
See WalletFragmentDefaultStyle
for
an example of the wallet fragment style.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the appearance of the buy button.
| |||||||||||
Specifies a height for the buy button.
| |||||||||||
Specifies a height for the buy button.
| |||||||||||
Sets text for the buy button.
| |||||||||||
Specifies a width for the buy button.
| |||||||||||
Specifies a width for the buy button.
| |||||||||||
Sets the color for the masked wallet details view background.
| |||||||||||
Sets the drawable resource id for the masked wallet details view background.
| |||||||||||
Sets the color for the masked wallet details "Change" button background.
| |||||||||||
Sets the drawable resource id for the masked wallet details "Change" button background.
| |||||||||||
Sets the text appearance for the masked wallet details "Change" button text.
| |||||||||||
Sets text appearance for the headers describing masked wallet details.
| |||||||||||
Sets the type of the wallet image logo in masked wallet details view.
| |||||||||||
Sets the color for the masked wallet details logo text.
| |||||||||||
Sets text appearance for the masked wallet details.
| |||||||||||
Sets resource id of the style which will be used to customize wallet fragment UI.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]() |
Sets the appearance of the buy button.
See BuyButtonAppearance
for the list of possible values.
Defaults to CLASSIC
.
This will override the buy button appearance defined in any style passed in
setStyleResourceId(int)
.
buyButtonAppearance | appearance of the buy button |
---|
Specifies a height for the buy button. The height includes a padding of 8dp (4dp on each
side). The padding is used for a border around the button in pressed and focused states.
The range of height supported is 40dp~72dp.
This will override the buy button height defined in any style passed in
setStyleResourceId(int)
.
height | height in pixels, or MATCH_PARENT ,
WRAP_CONTENT
|
---|
Specifies a height for the buy button. The height includes a padding of 8dp (4dp on each
side). The padding is used for a border around the button in pressed and focused states.
The range of height supported is 40dp~72dp.
This will override the buy button height defined in any style passed in
setStyleResourceId(int)
.
unit | unit of the height value. See constants starting with UNIT_ in Dimension
for a list of supported units |
---|---|
height | value of the height |
Sets text for the buy button.
This will override the buy button text defined in any style passed in
setStyleResourceId(int)
.
See BuyButtonText
for the list of possible values.
Defaults to BUY_WITH_GOOGLE
.
buyButtonText | text on the buy button |
---|
Specifies a width for the buy button. The width includes a padding of 8dp (4dp on each
side). The padding is used for a border around the button in pressed and focused states.
A minimum width is enforced, and is computed from the height of the button and the width
of the button text.
This will override the buy button width defined in any style passed in
setStyleResourceId(int)
.
width | width in pixels, or MATCH_PARENT ,
WRAP_CONTENT
|
---|
Specifies a width for the buy button. The width includes a padding of 8dp (4dp on each
side). The padding is used for a border around the button in pressed and focused states.
A minimum width is enforced, and is computed from the height of the button and the width
of the button text.
This will override the buy button width defined in any style passed in
setStyleResourceId(int)
.
unit | unit of the width value. See constants starting with UNIT_ in Dimension
for a list of supported units |
---|---|
width | value of the width |
Sets the color for the masked wallet details view background.
This will override the color defined in any style passed in
setStyleResourceId(int)
and background drawable which was previously set.
color | the color as defined in android.graphics.Color |
---|
Sets the drawable resource id for the masked wallet details view background.
This will override the drawable defined in any style passed in
setStyleResourceId(int)
and background color which was previously set.
resourceId | the id of the drawable resource. |
---|
Sets the color for the masked wallet details "Change" button background.
This will override the background defined in any style passed in
setStyleResourceId(int)
and drawable resource id which was previously set for
button background.
color | the color as defined in android.graphics.Color |
---|
Sets the drawable resource id for the masked wallet details "Change" button background.
This will override the background defined in any style passed in
setStyleResourceId(int)
and color previously set for the button background.
resourceId | the id of the drawable resource. |
---|
Sets the text appearance for the masked wallet details "Change" button text.
This will override the text appearance defined in any style passed in
setStyleResourceId(int)
.
resourceId | the id of a TextAppearance style |
---|
Sets text appearance for the headers describing masked wallet details.
This will override the text appearance defined in any style passed in
setStyleResourceId(int)
.
resourceId | the id of a TextAppearance style |
---|
Sets the type of the wallet image logo in masked wallet details view.
See WalletLogoImageType
for the list of possible values.
Defaults to CLASSIC
.
This will override the image type defined in any style passed in
setStyleResourceId(int)
.
imageType | the type of the logo image. |
---|
Sets the color for the masked wallet details logo text.
This will override the text color defined in any style passed in
setStyleResourceId(int)
.
color | the color as defined in android.graphics.Color |
---|
Sets text appearance for the masked wallet details.
This will override the text appearance defined in any style passed in
setStyleResourceId(int)
.
resourceId | the id of a TextAppearance style |
---|
Sets resource id of the style which will be used to customize wallet fragment UI.
If not set explicitly the default style
WalletFragmentDefaultStyle
will be used.
In most cases you will need to customize the style of the wallet fragment so that
the UI of the fragment better matches the UI of the application.
id | id of a style defined in xml |
---|