小编Cap*_*ono的帖子

如何通过在Android屏幕上刷你的数字来翻阅图片?

有人可以告诉我如何在画廊中创建Android手机风格的图片视图.也就是说,当您单击图片时,它会弹出一个全屏幕,您可以在屏幕上滑动手指并翻阅文件夹中的其他图片.

你如何创建特定的视图?

android android-image

2
推荐指数
1
解决办法
662
查看次数

如何在c#中重置单例实例?

是否有办法在用户更新数据库时强制单例实例重置?

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?

谢谢!

c# singleton

1
推荐指数
1
解决办法
6694
查看次数

以编程方式将ImageView添加到tableLayout

我有一个位图图像列表,如何以编程方式将此位图添加到tableLayout?

谢谢.

android android-layout

0
推荐指数
1
解决办法
6651
查看次数

如何包装SurfaceView的内容?

我有在之后建模的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)

但这不起作用.它只是填补了父母.

谢谢.

android surfaceview

0
推荐指数
1
解决办法
1455
查看次数