文档说"@ [+] id/myid"作为android:id的定义,从符号表示加号是可选的.但是我无处可以找到加号意味着什么或不提供意义的定义.
它是什么意思,为什么会这样?
我无法实例化子活动.在logcat中我看到这一行:
01-22 15:14:38.906: DEBUG/dalvikvm(411): newInstance failed: no <init>()
Run Code Online (Sandbox Code Playgroud)
这是dalvik中生成该logcat的行.
/*
* public T newInstance() throws InstantiationException, IllegalAccessException
*
* Create a new instance of this class.
*/
static void Dalvik_java_lang_Class_newInstance(const u4* args, JValue* pResult)
...
/* find the "nullary" constructor */
init = dvmFindDirectMethodByDescriptor(clazz, "<init>", "()V");
if (init == NULL) {
/* common cause: secret "this" arg on non-static inner class ctor */
LOGD("newInstance failed: no <init>()\n");
dvmThrowExceptionWithClassMessage("Ljava/lang/InstantiationException;",
clazz->descriptor);
RETURN_VOID();
}
Run Code Online (Sandbox Code Playgroud)
以下是我在计时器处理程序中激活活动的操作.
// move on to Activation
// ePNSplash is …Run Code Online (Sandbox Code Playgroud) Visual Studio 2010 VB.NET
我有一个DataGridView.DataSource设置为自定义对象的集合.列使用自定义对象中的只读属性进行显示,此对话框仅供显示.这些属性都返回String对象.我将列中的所有列设置为自动排序模式(未设置的列是按钮或复选框).但它没有排序.我google了,大多数人使用sql或绑定源,但我使用的是一个简单的vb集合.有人说我应该实现IComparable但不是String已经IComparable?
任何帮助,将不胜感激?
感谢名单
Bodger
根据请求,这里有一些代码片段.
此方法从我在设计器中设计的列中详细定义列.
列名称称为pSelected或pCustomer,并与列定义所关联的属性对应.
Protected Sub UpdateDGVUS()
If Not USColumnsInitted Then
USColumnsInitted = True
dgvUS.AutoGenerateColumns = False
dgvUS.Columns.Clear()
Dim iIdx As Integer
iIdx = 0
dgvUS.Columns.Insert(iIdx, Me.pSelected)
dgvUS.Columns("pSelected").DisplayIndex = iIdx
dgvUS.Columns("pSelected").SortMode = DataGridViewColumnSortMode.Automatic
iIdx = iIdx + 1
dgvUS.Columns.Insert(iIdx, Me.pCustomer)
dgvUS.Columns("pCustomer").DisplayIndex = iIdx
dgvUS.Columns("pCustomer").SortMode = DataGridViewColumnSortMode.Automatic
iIdx = iIdx + 1
dgvUS.Columns.Insert(iIdx, Me.pDetails)
dgvUS.Columns("pDetails").DisplayIndex = iIdx
dgvUS.Columns("pDetails").SortMode = DataGridViewColumnSortMode.Automatic
iIdx = iIdx + 1
dgvUS.Columns.Insert(iIdx, Me.pSelectCustomerInvoice)
dgvUS.Columns("pSelectCustomerInvoice").DisplayIndex = iIdx
iIdx = iIdx + …Run Code Online (Sandbox Code Playgroud) 我正在处理许多论坛上讨论的问题,但他们都说要转到"Android SDK和AVD Manager"屏幕上的"设置"菜单.然而,我已安装在多台机器上,但没有看到"设置"菜单.菜单在哪里?我把它安装在Windows XP和Vista上.
Thanx Julian
金融网站上的烛台图,至少是我看到的,如果收盘价高于开盘价,则烛台绿色填充,如果收盘价低于开盘价,则为红色.
如果我设置填充样式所有烛台都填充了填充颜色,gnuplot 4.6中是否有一种方法可以使用我上面描述的颜色方案?
示例脚本是:
set xdata time
set timefmt"%Y-%m-%d %H:%M:%S"
set xrange ["2014-01-01":"2014-01-02"]
set yrange [*:*]
set datafile separator ","
plot '201401_EURUSD_Hourly.csv' using 1:2:4:3:5 notitle with candlesticks
Run Code Online (Sandbox Code Playgroud)
有一些数据点
2014-01-01 17:00:00,1.376150,1.376550,1.374020,1.375990
2014-01-01 18:00:00,1.376100,1.377340,1.375980,1.376520
2014-01-01 19:00:00,1.376440,1.376870,1.375780,1.375860
2014-01-01 20:00:00,1.375850,1.376470,1.375000,1.376280
2014-01-01 21:00:00,1.376270,1.376720,1.375970,1.376530
2014-01-01 22:00:00,1.376550,1.377440,1.376270,1.376530
2014-01-01 23:00:00,1.376540,1.376540,1.374390,1.374520
2014-01-02 00:00:00,1.374500,1.375790,1.374380,1.375660
2014-01-02 01:00:00,1.375630,1.375740,1.374610,1.375000
2014-01-02 02:00:00,1.374980,1.375270,1.372480,1.373100
Run Code Online (Sandbox Code Playgroud) 我试图按照我发现的简单的启动画面示例.但我甚至无法编译.
首先,这是示例的来源:
http://www.anddev.org/simple_splash_screen-t811.html
我试图将一个适用于我的程序的表单放入其中.
我在Eclipse中为这个启动画面创建了一个类
com.ePN.ePNMobileAndroid.ePNSplash
这是我当前的main.xml文件.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/splashscreen" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:src="@drawable/com.ePN.ePNMobileAndroid.splash"
android:layout_gravity="center"/>
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Hello World, splash"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
而班级本身
package com.ePN.ePNMobileAndroid;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.ImageView;
public class ePNSplash extends Activity {
private static final int STOPSPLASH = 0;
//time in milliseconds
private static final long SPLASHTIME = 3000;
private ImageView splash;
//handler for splash screen
private Handler splashHandler = new Handler() { …Run Code Online (Sandbox Code Playgroud) 一直在使用烛台处理真实的财务数据。除非我在数据中存在差距,否则它效果很好,其中有很多历史财务数据。
我已经“设置 boxwidth 1 relative”并且它工作正常,在大多数情况下它给了我一个合适的烛台“宽度”。但如果 2 点之间没有数据,烛台将变得更粗,即它向右延伸以填补该缺口。视觉效果很糟糕,右边的扩展真的很糟糕。
我试过使用 set boxwidth x absolute ,但我无法理解它的显示方式。我已经将范围缩小到set boxwidth 37500 absolute并且不知道为什么这个数字有效,即使它比 set boxwidth 1 有更严重的问题。
第一张图片是使用set boxwidth 37500 absolute. 日期从 01/31/13、02/01/13、02/03/13、02/04/13、02/05/13 开始。没有 02/02/13:

绝对值显示了 02/01 和 02/02 之间的适当差距,但由于我无法解释的原因,02/03 和 02/04 重叠。
第二张图片使用 set boxwidth 1 relative。这主要是我想要的方式。烛台相邻且大部分是正确的。但是 02/02/13 的差距在右边变胖了。在 02/09/13 也有一个缺口,它也会变胖,或者两边的 2 可能会延伸以填补我不知道的缺口。

我如何配置它以便所有烛台都具有相同的相邻宽度并且数据中的间隙为空?
我像疯了一样用谷歌搜索这个,没有人谈论它。我发现的几个烛台示例不使用“日期”而是整数,完全没有价值。烛台图表需要根据手册的日期。
在 Windows 7 上运行 Gnuplot 4.6 patchlevel 0。
谢谢
PS:我应该在这里添加数据。
basic.csv:
2013-01-15 00:00:00,93.879000,93.949000,92.874000,93.078000
2013-01-16 00:00:00,93.079000,93.672000,92.458000,92.800000
2013-01-17 00:00:00,92.799000,95.011000,92.629000,94.616000
2013-01-18 00:00:00,94.617000,94.872000,94.157000,94.662000
2013-01-20 17:00:00,94.649000,94.820000,93.965000,94.155000
2013-01-21 00:00:00,94.159000,94.938000,93.726000,94.009000
2013-01-22 00:00:00,94.011000,94.284000,93.147000,93.231000
2013-01-23 …Run Code Online (Sandbox Code Playgroud) 我在Mac上工作,使用终端SSH连接到Linux机箱.在Linux机器上我有tmux 1.6.
我无法通过向上翻页或向下翻页来正常工作.如果我没有运行tmux,当我点击Page Up屏幕时正确向上滚动.但是,当我在tmux中时,Page Up将窗口移动到tmux内容之上.也就是说,它不会滚动tmux内容; 它向上滚动tmux窗口(如果我Page Up足够的话,滚出屏幕).
我玩了很多选项.tmux.conf,但我不能把它固定下来.
cat ~/.tmux.conf
#set -g history-limit 100000
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#set -g terminal-overrides ",*:XT@"
set -g mode-mouse on
Run Code Online (Sandbox Code Playgroud)
如您所见,我尝试了几个终端覆盖.如果我在Windows计算机上使用PuTTy,当前终端覆盖可以完美地工作,但是当我从Mac登录时,我没有尝试过修改行为.