我的应用程序有问题:由于AndroidBug5497解决方案,版本> = Lollipop上的一个奇怪的行为.
我正在使用协调器布局,折叠工具栏,片段,浮动动作按钮和小吃吧,一切都在前棒棒糖上工作正常.我需要在键盘上显示我的Fab,并使用AndroidBug5497解决方法.(根据约瑟夫约翰逊的解决方案)
但是通过这种解决方案,小吃店变得疯狂.我正在使用所有android的支持库23.2.+,并且在我的清单中我已经设置android:windowSoftInputMode="stateAlwaysHidden|adjustResize"了这个活动
那是我活动的结构:
<Coordinator Layout>
<Collapsing Toolbar />
<Linear Layout>
<Fragment />
</Linear Layout>
<Floating Action Button />
</Coordinator Layout>
Run Code Online (Sandbox Code Playgroud)
这就是片段:
<Linear Layout>
<Nested Scroll View>
<Linear Layout>
<CardView 1/>
<CardView 2/>
<CardView n/>
</Linear Layout>
</Nested Scroll View>
</Linear Layout>
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激.非常感谢.
android-layout floating-action-button android-5.0-lollipop android-snackbar coordinator-layout
我想在我的Windows应用商店应用程序中读取一个sqlite数据库,如果它存在...
通常从数据库中读取表,我设置它所在的路径,然后我调用SQLiteConnection函数...
问题是,当我调用这样一个简单的函数时,为什么数据库不存在
public static async Task<ObservableCollection<Objects>> GetAll()
{
List<Objects> list;
using (var db = new SQLiteConnection(dbPath))
{
// Activate Tracing
db.Trace = true;
list = (from p in db.Table<Objects>()
select p).ToList();
}
Run Code Online (Sandbox Code Playgroud)
是否创建了数据库?
new SQLiteConnection(dbPath)调用时会创建空数据库.是否可以在不创建连接的情况下打开连接?