按钮组
<button type="button" class="btn btn-default pull-left">
<span class="glyphicon glyphicon-chevron-left"></span>
<span id="prevBtn">06.02.2014</span>
</button>
<button type="button" class="btn btn-default pull-left">
<span id="nextBtn">08.08.2014</span>
<span class="glyphicon glyphicon-chevron-right"></span>
</button>
<button type="button" class="btn btn-default pull-left">
<span id="toDayBtn">Today</span>
</button>
Run Code Online (Sandbox Code Playgroud)
如何用bootstrap 3创建垂直分隔线?

我在firebase崩溃报告中遇到异常.
但是不要理解异常的原因.
应用程序在android 5上运行良好
Exception java.lang.IllegalAccessError: Method 'java.lang.Object ade.a(int,
java.lang.Object, java.lang.Object)' is inaccessible to class
'com.google.maps.api.android.lib6.impl.fb' (declaration of
'com.google.maps.api.android.lib6.impl.fb' appears in
/data/user/0/com.google.android.gms/app_chimera/m/
00000013/DynamiteModulesB_GmsCore_prodmnc_alldpi_release.apk)
com.google.maps.api.android.lib6.impl.fb.run
(:com.google.android.gms.DynamiteModulesB:5259)
java.util.concurrent.ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1113)
java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:588)
java.lang.Thread.run (Thread.java:818)
Run Code Online (Sandbox Code Playgroud)
我使用最后的库
compile 'com.google.android.gms:play-services:10.2.4'
compile 'com.google.android.gms:play-services-maps:10.2.4'
Run Code Online (Sandbox Code Playgroud)
PS使用to更改库
//compile 'com.google.android.gms:play-services:10.2.4'
compile 'com.google.android.gms:play-services-maps:10.2.4'
compile 'com.google.android.gms:play-services-location:10.2.4'
Run Code Online (Sandbox Code Playgroud)
PSS
适用于Android 5设备,Android模拟器6.0,Android模拟器7.0
在Android 6.0.1设备上崩溃
哪个原因可以?
在项目中使用角度2 + webpack + bootstrap
我想使用自定义的主题为自举-替换node_modules /../ bootstrap.css与./Content/bootstrap.min.css
我为此添加了别名
alias: {
'bootstrap/dist/css/bootstrap.css': './Content/bootstrap.min.css',
}
Run Code Online (Sandbox Code Playgroud)
但有错误
Run Code Online (Sandbox Code Playgroud)Can't resolve '../fonts/glyphicons-halflings-regular.eot' in '\Content' @ ./Content/bootstrap.min.css
如何替换文件但不更改依赖资源的文件夹
例
glyphicons-halflings-regular.eot必须在\node_modules中搜索,而不是在Content中搜索
我的任务-在SurfaceView中停止显示图像后在SurfaceView上播放视频
我的游戏代码
mPlayer.setOnCompletionListener(onCompletionListener);
mPlayer.setDisplay(view.getHolder());
mPlayer.reset();
mPlayer.setDataSource(file.getAbsolutePath());
mPlayer.prepare();
mPlayer.start();
Run Code Online (Sandbox Code Playgroud)
一切正常的视频播放
在onCompletion中
mPlayer.reset();
mPlayer.setDisplay(null);
view.setBackgroundDrawable(Drawable.createFromPath(file.toString()));
Run Code Online (Sandbox Code Playgroud)
但是图像是透明的,并且在背景上我看到了最后一个视频帧-不好。表面如何清晰?
我尝试使用
holder.lockCanvas()
Run Code Online (Sandbox Code Playgroud)
但这返回null,为什么呢?
context.Projects
.Include(x => x.Members) //List<Member> public class Member
.Include(x => x.Members.Select(z => z.City)) //public class City
.ToList();
Run Code Online (Sandbox Code Playgroud)
从项目中选择
包括项目清单.成员
包括project.Members.City中的每一个
需要添加一些数据到结果
context.Projects
.Include(x => x.Members)
.Include(x => x.Members.Select(z => z.City))
.Select(x => new {
Project = x,
Amount = 22
})
.ToList();
Run Code Online (Sandbox Code Playgroud)
项目属性已填充但成员为空
问题1 -如何包括Project.Members与新{项目= X}
我接下来做
context.Projects
.Include(x => x.Members) //List<Member>
.Include(x => x.Members.Select(z => z.City)) //City is navigation property
.Select(x => new {
Project = x, …Run Code Online (Sandbox Code Playgroud) 我将SignalR添加到ASP .Net Core 2应用程序
包
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddSignalRCore();
services.AddSignalR();
}
Run Code Online (Sandbox Code Playgroud)
和
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IServiceProvider serviceProvider)
app.UseSignalR(routes =>
{
routes.MapHub<ManageHub>("manageHub");
});
}
Run Code Online (Sandbox Code Playgroud)
url:port/signalr,url:port/signalr/negotiate ...返回404
url:port/manageHub返回400,显示"需要连接ID"
我没找到.MapSignalR()
如何在ASP .Net Core中使用SignalR?
我有StackPanel和X ListViews.
每个ListView必须滚动垂直.
StackPanel必须水平滚动.
<StackPanel Column="1" Grid.Row="1" Orientation="Horizontal">
<ListView MinWidth="200" Margin="5,5,5,5">
</ListView>
<ListView MinWidth="200" Margin="5,5,5,5">
</ListView>
...
</StackPanel>
Run Code Online (Sandbox Code Playgroud)
使用此代码ListViews滚动工作正常.
如果我将StackPanel放在ScrollViewer中,则ListViews滚动不起作用.
这是表“历史”
id value date
1 1 01/01/2017 20:20:20
1 2 02/01/2017 20:20:20
1 3 03/01/2017 20:20:20
2 5 01/01/2017 20:20:20
2 6 02/01/2017 20:20:20
Run Code Online (Sandbox Code Playgroud)
如何使用linq为每个ID选择最大值
id value date
1 1 01/01/2017 20:20:20
1 2 02/01/2017 20:20:20
1 3 03/01/2017 20:20:20
2 5 01/01/2017 20:20:20
2 6 02/01/2017 20:20:20
Run Code Online (Sandbox Code Playgroud)
结果只有两个对象
id value date
1 3 03/01/2017 20:20:20
2 6 02/01/2017 20:20:20
Run Code Online (Sandbox Code Playgroud) 我需要清楚List中的一些属性
CategoryAccount是类
获取清单
List<CategoryAccount> ret = context.CategoryAccounts.ToList();
Run Code Online (Sandbox Code Playgroud)
用ForEach清除
//Clear Accounts poperty to null
//Accounts is List<Acccount>
ret.ForEach(x => x.Accounts = null);
//Clear Owner poperty to null
//Owner is class Owner
ret.ForEach(x => x.Owner = null);
//In result
ret[0].Account != null
ret[0].Owner != null
Run Code Online (Sandbox Code Playgroud)
或者在context.CategoryAccounts中排除属性.
我不想使用Select(x => new { prop1 = x.prop1, prop2 = x.prop2? ///}- 必须包含模型中的太多属性.
c# ×4
linq ×3
android ×2
asp.net-mvc ×1
emulation ×1
image ×1
listview ×1
scrollviewer ×1
signalr ×1
surfaceview ×1
video ×1
webpack ×1
wpf ×1
xaml ×1