Android studio 如何上移和下移活动
我是android新手。我想通过上下移动来显示活动。(我们可以在许多音乐播放器中看到)。但我不知道怎么做。请给我一些解决方案、例子或建议 建议:您可以在以下链接中找到所有疯狂动画,包括2D和3D动画。我没有足够的时间找到确切的一个,但我相信他们存在于以下收集 建议:您可以在Android SDK中使用动画API轻松实现。或者你可以在这里找到一些相关的答案 祝你好运。最后,我决定使用。下面是代码示例:Android studio 如何上移和下移活动,android-studio,android-activity,Android Studio,Android Activity,我是android新手。我想通过上下移动来显示活动。(我们可以在许多音乐播放器中看到)。但我不知道怎么做。请给我一些解决方案、例子或建议 建议:您可以在以下链接中找到所有疯狂动画,包括2D和3D动画。我没有足够的时间找到确切的一个,但我相信他们存在于以下收集 建议:您可以在Android SDK中使用动画API轻松实现。或者你可以在这里找到一些相关的答案 祝你好运。最后,我决定使用。下面是代码示例: <?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/bottom_sheet"
android:layout_width="match_parent"
android:layout_height="340dp"
android:background="@android:color/darker_gray"
android:orientation="vertical"
app:behavior_hideable="true"
app:behavior_peekHeight="80dp"
app:layout_behavior="android.support.design.widget.BottomSheetBehavior">
<TextView
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="@color/colorAccent"
android:gravity="center"
android:text="@string/bottom_sheet_peek"
android:textColor="@android:color/white" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/bottom_sheet_content"
android:textColor="@android:color/white" />
</LinearLayout>