2、建立布局文件构建整个场景(fragment_sunset.xml):._flutter通知栏 按钮">
当前位置:   article > 正文

Android之属性动画,flutter通知栏提醒_flutter通知栏 按钮

flutter通知栏 按钮

1、新建一个模拟太阳的drawable资源(sun.xml):

<?xml version="1.0" encoding="utf-8"?>

<shape xmlns:android=“http://schemas.android.com/apk/res/android”

android:shape=“oval”>

2、建立布局文件构建整个场景(fragment_sunset.xml):

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”

android:orientation=“vertical”

android:layout_width=“match_parent”

android:layout_height=“match_parent”>

<FrameLayout

android:id="@+id/sky"

android:layout_width=“match_parent”

android:layout_height=“0dp”

android:layout_weight=“0.61”

android:background="@color/blue_sky">

<ImageView

android:id="@+id/sun"

android:layout_width=“100dp”

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/493998
推荐阅读
相关标签