感觉这是一个愚蠢的问题,但我似乎无法弄明白.当我在Windows上运行*.jar文件时,它不会在任务管理器进程中出现.我怎么能终止它,我试过TASKKILL但它也不适合我.
我做了一个简单的布局xml文件.我一直在解决我的问题.我正在使用scrolview,linearlayout和tableview.我有一个顶栏,它被锁在顶部.它永远不会移动.在中间,我有一个scrollview,我需要将我的最后一个linearlayout作为页脚放在底部,如果用户向下滚动,我不希望它消失.我希望它被锁定在那里.
这是我的代码
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TableRow
android:background="@drawable/gradient"
android:gravity="center">
.......
</TableRow>
</TableLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/sw_layout"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="#EEEEEE" >
<TableRow
android:id="@+id/tableRowDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
..........
</TableRow>
</TableLayout>
/*****************************************/
/* I want this to be footer at the bottom*/
/*****************************************/
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/btn_date"
android:layout_height="35dp"
android:padding="5dp"
android:drawableLeft="@drawable/calendar"
android:text="Tarih" />
<Button
android:id="@+id/btn_converter"
android:layout_height="35dp"
android:padding="5dp"
android:drawableLeft="@drawable/calendar"
android:text="Hesap" />
</LinearLayout>
/*****************************************/
/* I want …
Run Code Online (Sandbox Code Playgroud) 我是unique_ptr的新手.一切都很顺利,直到我遇到一个函数返回一个新的unique_ptr.编译器似乎抱怨可能拥有unique_ptr的多个对象.我不确定如何满足编译器的投诉.任何帮助表示赞赏.
void Bar::Boo()
{
...
// m_Goals is of type std::unique_ptr<Goals>
auto x = m_Goals->Foo(); // error: 'std::unique_ptr<_Ty>::unique_ptr' : cannot access private member declared in class 'std::unique_ptr<_Ty>'
//auto x = std::move( m_Goals->Foo() ); // same error
...
}
const std::unique_ptr<Goals> Goals::Foo()
{
std::unique_ptr<Goals> newGoals( new Goals() );
...
return newGoals;
// also tried "return std::move( newGoals )" based on http://stackoverflow.com/questions/4316727/returning-unique-ptr-from-functions
} // this function compiles
Run Code Online (Sandbox Code Playgroud) 我有一个小问题.
有什么区别
interface SomeInterface {
public function foo();
}
Run Code Online (Sandbox Code Playgroud)
和
interface SomeInterface {
function foo();
}
Run Code Online (Sandbox Code Playgroud) 在C#中,当注册事件处理程序时,您有两个选项(btn
类型System.Windows.Controls.Button
):
btn.Click += new RoutedEventHandler (ButtonClick)
和
btn.Click += ButtonClick
.
它们之间的语义差异及其含义是什么?
我在我的机器上安装了NuGet,但我无法禁用黄色警报消息"这是一个开发环境.不会保留任何数据."
我在web.config中更改了这个键
<add key="Gallery.Environment" value="Development" />
Run Code Online (Sandbox Code Playgroud)
至
<add key="Gallery.Environment" value="Production" />
Run Code Online (Sandbox Code Playgroud)
但它仍然出现......任何想法在哪里看?
我是Apple的新手,这可能看起来很蠢......但我不知道如何在编辑器中自动完成代码完成!?
我在首选项中选中了"使用脚本助手"选项.
例如当我创建一个新变量时,我开始在代码中稍后编写它,我可以用浅灰色看到我要自动完成的单词.
但是自动完成它的捷径是什么?我尝试了空格键,输入,shift +箭头......等等
但不知道
谢谢你的帮助:P
我需要在我的网站上设置一个表单,通过在表单中键入数字并单击"开始",人们可以快速导航到页面.
我有以下代码部分工作:
<script type="text/javascript">
function goTo()
{
window.location = document.forms[0].where.value ;
return false;
}
</script>
</head>
<body>
<form action="" method="post" onsubmit="return goTo()">
<input type="text" name="where" value="Enter page number" onfocus="if(this.value == this.defaultValue) this.value = '';" onblur="if(this.value == '') this.value = this.defaultValue;">
<input type="submit" value="Go">
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我将此代码注入带有url的页面,例如:
www.examplesite.com/navigate
表单在/导航页面上显示正常.现在,我希望我的用户能够在与我网站上的网址对应的表单中输入数字.例如,去:
www.examplesite.com/1234
用户将在表单中键入"1234"并按"开始".
然而,正在发生的事情是脚本试图打开的页面是:
www.examplesite.com/navigate/1234
有没有人知道如何修改脚本以确保它始终在站点的根目录而不是子目录中打开页面?
在此先感谢您的帮助.欣赏它.
我有一张这样的桌子......
oid id
35 1
43 1
46 1
43 2
49 2
Run Code Online (Sandbox Code Playgroud)
我有id = 1现在我想要那些只属于1而不属于任何其他ID的记录.
即o/p - 35,46
我不需要oid = 43 bcz它也属于2.
我不知道如何在stackoverflow表中写我的问题所以请忽略我错误的询问方式.
谢谢
要播放mp3文件,我正在使用该javafx.scene.media.MediaPlayer
课程.但我注意到使用该seek()
方法后currentTimeProperty不可靠.
initMediaPlayer()
当用户选择mp3文件时,将调用下面代码中的方法.播放时间显示在时间滑块(=timeSlider
)中,用户可以从该滑块中移动以从歌曲中的任何一点开始播放.歌曲中的当前位置也显示在标签(=timeLabel
)中.
当我开始播放时play()
,当我用pause()
或暂停或重启歌曲时stop()
,一切正常.
问题是使用后seek()
的currentTimeProperty
长度不正确.这在歌曲结束时变得非常明显,然后currentTimeProperty
有时比歌曲的总时间长4秒.
这个问题的原因是什么,有办法解决这个问题吗?
private void initMediaPlayer() {
try {
audio = new Media(audioFile.toURI().toURL().toString());
audioPlayer = new MediaPlayer(audio);
} catch (MalformedURLException ex) {
Logger.getLogger(MainWindowController.class.getName())
.log(Level.SEVERE, null, ex);
}
audioPlayer.currentTimeProperty().addListener(new InvalidationListener() {
public void invalidated(Observable ov) {
Duration time = audioPlayer.getCurrentTime();
Duration total = audioPlayer.getTotalDuration();
if (!timeSlider.isValueChanging() &&
total.greaterThan(Duration.ZERO)){
timeSlider.setValue(time.toMillis() / total.toMillis() * 100);
}
timeLabel.setText(formatTime(time,total));
}
});
timeSlider.valueChangingProperty().addListener(new …
Run Code Online (Sandbox Code Playgroud) java ×3
android ×1
applescript ×1
c# ×1
c++ ×1
editor ×1
forms ×1
jar ×1
javafx ×1
javascript ×1
media-player ×1
mysql ×1
nugetgallery ×1
php ×1
redirect ×1
sql ×1
unique-ptr ×1
wpf ×1