java - 如何 Google Pay 在您的奖励页面的网格视图中显示不同类型的卡
问题描述
我想知道 Google Pay 如何在您的奖励页面的网格视图中显示不同类型的卡片。我正在尝试开发像 Google Pay 这样的卡
解决方案
有许多库可用于开发刮刮卡功能,例如 Google Pay
implementation 'com.goibibo.libs:scratchcardview:0.1.4'
XML 如下所示
<com.goibibo.libs.views.ScratchTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center|end"
android:text="@string/flat_200"
android:textSize="15sp"
android:textStyle="bold" >
另外,请查看此博客文章
我希望这可以帮助你,
推荐阅读
- asp.net - IIS System.IO.IOException:登录失败:未知用户名或密码错误
- python - 可以为具有三个类别的模型绘制训练和验证准确度/损失吗?
- javascript - 如何跟踪 useFetch() 自定义挂钩中定义的状态变量
- docker - Docker,你能缓存 apt-get 软件包安装吗?
- css - 单选按钮表单的 CSS 样式
- c - 不同类型的var args返回分段错误
- mysql - 只返回一个名字的值,没有重复的名字(MYSQL)
- angular-translate - ngx-translate 翻译 Angular 应用程序而不刷新页面以从 BE 获取所有数据
- javascript - VS 代码流程卡住初始化
- php - 如何从 quickstart.php 在 PHP 中使用 google admin sdk api 创建用户帐户?