小编Mas*_*sum的帖子

API'variable.getExternalNativeBuildTasks()'已过时

我已经更新了我的android工作室.之后我的Crashlytics产生了问题.是什么问题崩溃?或者我该如何解决这个问题?

这是错误的

API 'variant.getExternalNativeBuildTasks()' is obsolete and has been 
replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration- 
avoidance.
To determine what is calling variant.getExternalNativeBuildTasks(), use - 
Pandroid.debug.obsoleteApi=true on the command line to display a stack 
trace.
Affected Modules: app
Run Code Online (Sandbox Code Playgroud)

android crashlytics android-studio google-fabric

6
推荐指数
2
解决办法
4229
查看次数

Webview 中的全屏视频在 Flutter 中不起作用

我正在使用https://github.com/pichillilorenzo/flutter_inappbrowser在我的应用程序中显示 web 视图。网站上的视频正在播放但即使按下全屏按钮也无法全屏显示。

有没有办法在网页视图中全屏显示视频?

android dart flutter

5
推荐指数
1
解决办法
2318
查看次数

从底部到半屏查看

我想要一个来自底部的 View 和 Animation 来填充半个屏幕。在那个视图中,我会有很多 ImageButton。我可以从底部到半屏对动画进行编程,但之后我的视图将填满整个屏幕。

我想要的是:

在此处输入图片说明

我拥有的:

在此处输入图片说明

xml代码:

<android.support.v4.widget.DrawerLayout
        android:id="@+id/screen_dashboard" style="@style/drawer"
        tools:openDrawer="start">
(...)
<TableLayout
            android:id="@+id/hidden_panel"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@android:color/white"
            android:visibility="gone" >

            <TableRow
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
                <ImageButton
                    android:id="@+id/button1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/app_name"
                    android:onClick="slideUpDown" />
                <ImageButton
                    android:id="@+id/button2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/app_name"
                    android:onClick="slideUpDown" />
            </TableRow>
        </TableLayout>
    </android.support.v4.widget.DrawerLayout>
Run Code Online (Sandbox Code Playgroud)

Java代码:

public void slideUpDown(final View view) {

        if (!isPanelShown()) {
            // Show the panel
            Animation bottomUp = AnimationUtils.loadAnimation(this, R.animator.bottom_up);
            hiddenPanel.startAnimation(bottomUp);

            hiddenPanel.setVisibility(View.VISIBLE);
        }
        else {
            // Hide the Panel
            Animation bottomDown = AnimationUtils.loadAnimation(this, R.animator.bottom_down);

            hiddenPanel.startAnimation(bottomDown);
            hiddenPanel.setVisibility(View.GONE);
        }
    }

    private boolean …
Run Code Online (Sandbox Code Playgroud)

android

3
推荐指数
1
解决办法
2567
查看次数