目前,MD3 使用的不透明度/alpha 为指定波纹颜色的 50%,用于组件上的按下状态。有什么办法可以改变它的不透明度吗?
这是我目前用来测试 MD3 中材质按钮的连锁反应的方法:
<style name="Widget.App.Button" parent="Widget.Material3.Button">
<item name="rippleColor">@color/black_000</item>
<item name="android:textColor">@color/button_filled_foreground_color</item>
<item name="backgroundTint">@color/white_1000</item>
</style>
Run Code Online (Sandbox Code Playgroud)
按钮:
<Button
style="@style/Widget.App.Button"
android:id="@+id/create_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/create_account"
app:layout_constraintBottom_toTopOf="@id/log_in_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
Run Code Online (Sandbox Code Playgroud)
在此示例中,背景颜色为白色,波纹效果为灰色。如何将波纹不透明度更改为 100%,以使波纹效果变为黑色?我用的是1.5.0-beta01材质版本。
我在将Tizen应用程序部署到我的三星智能电视上时出现问题.有一段时间它工作得非常好,但自从将tizen studio更新到2.0并将tv-extension更新到4.0后它就再也无法正常工作了.我总是收到"无法获取设备信息"错误.
[2017.11.22 00:54:29] [错误] ProfileInfo.java(426) - 无法从'10 .0.0.40:26101'获取设备信息(型号:UJ5500,平台:Tizen,版本:未知,个人资料:unknown `-)java.lang.Exception:无法在org.tizen.common.util.LaunchUtil.checkProfile上的org.tizen.common.core.application.ProfileInfo.getProfileInfo(ProfileInfo.java:413)获取设备的配置文件版本(LaunchUtil.java:158)org.etil.debugyer.LaunchConfiguration.launch(LaunchConfiguration.java:840)上的org.tizen.web.zimlaunch.deployer.ZimLaunchDelegate.preLaunchCheck(ZimLaunchDelegate.java:141) Org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)位于org.eclipse.debug.internal的org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039). ui.DebugUIPlugin $ 8.run(DebugUIPlugin.java:1256)org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
所需的Tizen版本设置为2.3,我的模型是UJ5500(2015).
在三星的开发网站上,他们说这种错误只发生在2015款车型上而且可以忽略不计,但我无法进行部署.我还考虑过将tizen studio降级到1.3,将tv扩展到3.0,就像我以前一样,遗憾的是我无法安装包管理器的web-app dev.对于那些可能认为这是由证书引起的人,我已经使用我的三星设备的UDID创建了一个公共和合作伙伴.顺便说一下,它也没有在仿真器上工作(相同的错误).
television samsung-smart-tv tizen tizen-web-app tizen-studio