我ScrollView在我的Android布局中使用但它显示
IllegalStateException "Scrollview can host only one direct child"
我怎样才能避免这种异常?
崩溃信息:
07-19 15:58:22.308 21372 21372 D AndroidRuntime: Shutting down VM
07-19 15:58:22.313 21372 21372 E AndroidRuntime: FATAL EXCEPTION: main
07-19 15:58:22.313 21372 21372 E AndroidRuntime: Process: com.languoguang.helloworld, PID: 21372
07-19 15:58:22.313 21372 21372 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.languoguang.helloworld/com.languoguang.helloworld.plugin_homeadd.activity.AddDeviceWifiSettingActivity}: android.view.InflateException: Binary XML file line #254: ScrollView can host only one direct child
07-19 15:58:22.313 21372 21372 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3190)
07-19 15:58:22.313 21372 21372 E AndroidRuntime: …Run Code Online (Sandbox Code Playgroud) 我无法跑步 adb shell screenrecord /sdcard/my.mp4
我正在尝试运行此命令的设备规格:
每当我运行screenrecord命令时,它都会显示找不到命令。
D:\adb>adb shell screenrecord
/systerm/bin/sh:screenrecord not found
Run Code Online (Sandbox Code Playgroud)
我也有内置的屏幕记录应用程序,这是我的问题的原因吗?除了屏幕截图,还有其他捕获屏幕的方法吗?或者我可以使用内置屏幕录制应用程序吗?任何建议或想法都是可取的。
谢谢,
如何检查函数模板实例化的数量?
template <typename T>
void foo(T f) {}
struct Bar {
void operator()(bool x) {}
};
void f1(bool x) {}
void f2(bool x) {}
int main() {
foo(f1);
foo(Bar());
foo(f2);
foo([](bool x){});
foo([](bool x){});
}
Run Code Online (Sandbox Code Playgroud)