有人可以告诉我如何在画廊中创建Android手机风格的图片视图.也就是说,当您单击图片时,它会弹出一个全屏幕,您可以在屏幕上滑动手指并翻阅文件夹中的其他图片.
你如何创建特定的视图?
是否有办法在用户更新数据库时强制单例实例重置?
public class Example{
private Dictionary<int, string> _list;
private Example(){
_list = new Dictionary<int, string>();
//Get data from database here and add the data to _list
}
private class Nested{
static Nested(){}
internal static readonly Example Instance = new Example();
}
public static Dictionary<int, string> GetExample(){
return Nested.Instance._list
}
}
Run Code Online (Sandbox Code Playgroud)
那么,我在更新数据库时重置_list?
谢谢!
我有一个位图图像列表,如何以编程方式将此位图添加到tableLayout?
谢谢.
我有在此之后建模的surfaceView类,我用6位图填充它.有没有办法将surfaceView包裹在位图周围,而不是覆盖整个屏幕.
我在我的xml文件中尝试了这个:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<com.android.customclasses.Panel
android:layout_height="wrap_content"
android:layout_width="wrap_content">
</com.android.customclasses.Panel>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
但这不起作用.它只是填补了父母.
谢谢.