我正在为Visual Studio 2017寻找一个好的Angular 4模板.或者什么是最好的模板和继续使用的方法?这将是一个Angular 4 SPA网页.
我想尝试长按一下EditText,但是当我做长按时,我会收到以下错误.我希望能够长按一次以获取"复制/粘贴/全选"上下文弹出窗口,以便用户可以将文本粘贴到框中.
Fatal Exception: android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@799bfc6 is not valid; is your activity running?
Run Code Online (Sandbox Code Playgroud)
EditText位于PopupWindow的ScrollView中.因此,当错误发生时,我当前在PopupWindow打开的Activity上处于活动状态,并且我在PopupWindow中包含的EditText中进行长按.
Gradle设置
compileSdkVersion 25
buildToolsVersion '25.0.0'
defaultConfig {
applicationId 'com.accoservice.cico'
minSdkVersion 17
targetSdkVersion 25
versionCode 37
versionName '4.2.6'
multiDexEnabled true
}
Run Code Online (Sandbox Code Playgroud)
包含EditText的布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/outer_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#73000000">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="100dp"
android:layout_marginBottom="5dp"
android:background="#ffffff"
android:orientation="vertical">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="15dp"
android:singleLine="true"
android:text="@string/note_msg"
android:textColor="#62CCFE"
android:textSize="18sp" />
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:layout_marginBottom="5dp"
android:layout_marginTop="10dp"
android:background="#62CCFE" />
<ScrollView
android:id="@+id/sv_resolution_note"
android:layout_width="match_parent" …Run Code Online (Sandbox Code Playgroud) android android-layout android-view android-windowmanager android-window
我有一个在 Android Studio 中构建的应用程序。它过去运行得很好,并且过去已发布到商店,但由于某种原因,Release APK 在安装后无法运行。调试通过手机或模拟器运行良好。调试和发布版本都使用相同的密钥库文件。
发布模式下,APK 打开后立即崩溃。我怀疑这是一个密钥库问题,但不能肯定???即使我设置了密钥库,调试是否会绕过它?
我还可以尝试其他什么吗?
注意:我有另一种风格,使用不同的密钥库并且工作正常。
我有一个传递给过程的表变量.我想使用where子句中的值,如下所示,我该怎么做.下面的第一行是在包定义中声明的.以下过程在包体中.
type CatalogNos is table of VARCHAR2(100);
PROCEDURE GET_PART_CHARACTERISTICS (v_catalog_nos_ IN CatalogNos,
Parts_Char_Cursor out sys_refcursor) AS
BEGIN
OPEN Parts_Char_Cursor FOR
SELECT * FROM IFSAPP.SALES_PART_CHARACTERISTIC
WHERE CATALOG_NO IN (select values from v_catalog_nos_);
END GET_PART_CHARACTERISTICS;
Run Code Online (Sandbox Code Playgroud)