小编Pri*_*lly的帖子

资源ID不能是textAppearance属性中的空字符串(在'text'处,值为'?')

我的布局中有以下两个textView:

<TextView
    android:id="@+id/TextView_playSourceWord"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:layout_centerHorizontal="true"
    android:layout_below="@+id/TextView_playTheme"
    android:textAppearance="?android:attr/textAppearanceLarge"
    android:layout_margin="@dimen/word_box_margin"
    android:text="Maison" />

<TextView
    android:id="@+id/TextView_playTargetWord"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:layout_centerHorizontal="true"
    android:layout_below="@+id/TextView_playSourceWord"
    android:textAppearance="?android:attr/textAppearanceLarge"
    android:layout_margin="@dimen/word_box_margin"
    android:text="?" />
Run Code Online (Sandbox Code Playgroud)

我没有第一个错误,但在第二个android:textAppearance="?android:attr/textAppearanceLarge"错误产生以下错误:

error: Error: Resource id cannot be an empty string (at 'text' with value '?').
Run Code Online (Sandbox Code Playgroud)

我在其他布局中也有其他TextView,textAppearance的值相同,并且没有错误.有没有办法解决这个问题,而无需手动重新创建样式?

android textview

9
推荐指数
1
解决办法
2万
查看次数

无法在PLSQL中使用REPLACE函数

我想知道调用这里描述REPLACE函数的适当方法是什么,因为我已经创建了下面的语句来测试它,但是我收到一个错误:

DECLARE
 templateMessage3 VARCHAR2(50);
BEGIN
 templateMessage3 := 'Dear Mr./Madam FNAME';
  replace(templateMessage3, 'FNAME', 'Lilly');
  DBMS_OUTPUT.PUT_LINE(templateMessage3);
END;
/
Run Code Online (Sandbox Code Playgroud)

错误:

PLS-00221: 'REPLACE' is not a procedure or is undefined
Run Code Online (Sandbox Code Playgroud)

我正在使用Oracle 11g Web界面.

oracle plsql replace

4
推荐指数
1
解决办法
5741
查看次数

声明变量时 MySQL 存储过程中的语法错误

我正在尝试创建一个过程,根据其他几个表自动将一些值添加到表中。

这些是我有的表:

ENROLLMENT 表(我在其中存储学生注册的课程):

+----------------+---------+------+-----+---------+----------------+
| Field          | Type    | Null | Key | Default | Extra          |
+----------------+---------+------+-----+---------+----------------+
| ENROLMENT_NR   | int(10) | NO   | PRI | NULL    | auto_increment |
| ENROLMENT_DATE | date    | NO   |     | NULL    |                |
| STUDENT_NR     | int(10) | NO   | MUL | NULL    |                |
| PROGRAMME_NR   | int(10) | NO   | MUL | NULL    |                |
+----------------+---------+------+-----+---------+----------------+
Run Code Online (Sandbox Code Playgroud)

PROGRAMME_MODULE 表(列出程序和相应模块组合的连接表):

+--------------+---------+------+-----+---------+-------+
| Field        | Type    | Null | Key | …
Run Code Online (Sandbox Code Playgroud)

mysql sql stored-procedures

2
推荐指数
1
解决办法
9897
查看次数

TaskStackBuilder - 向后兼容与否?

我在这里按照示例设置通知.我的应用程序与API 15和其他版本兼容.这是我的代码:

@Override
    public void onReceive(Context context, Intent intent) {
        // TODO Auto-generated method stub
        // send notification

        // API < 16 so have to use compat
        NotificationCompat.Builder mBuilder =
                new NotificationCompat.Builder(context)
                //.setSmallIcon(context.getResources().getDrawable(icon_id_here))
                .setContentTitle("My notification")
                .setContentText("Hello World!");
        // Creates an explicit intent for an Activity in your app
        Intent resultIntent = new Intent(context, UpcomingTest.class);

        // The stack builder object will contain an artificial back stack for the
        // started Activity.
        // This ensures that navigating backward from the …
Run Code Online (Sandbox Code Playgroud)

stack android

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

标签 统计

android ×2

mysql ×1

oracle ×1

plsql ×1

replace ×1

sql ×1

stack ×1

stored-procedures ×1

textview ×1