如何为android应用程序构建帮助
我在一些android应用程序中看到,当它们第一次启动时,一个助手UI会帮助理解如何使用该应用程序!我附加了一个自定义屏幕截图来理解我的意思 请帮助我,我怎样才能创造出这样的东西如何为android应用程序构建帮助,android,Android,我在一些android应用程序中看到,当它们第一次启动时,一个助手UI会帮助理解如何使用该应用程序!我附加了一个自定义屏幕截图来理解我的意思 请帮助我,我怎样才能创造出这样的东西 向你问好,米纳拉·托菲克我见过的最好的图书馆是 阅读指南并进行设置 public class MyPreferences { private static final String MY_PREFERENCES = "my_preferences"; public static boolean isFirst
向你问好,米纳拉·托菲克我见过的最好的图书馆是 阅读指南并进行设置
public class MyPreferences {
private static final String MY_PREFERENCES = "my_preferences";
public static boolean isFirst(Context context){
final SharedPreferences reader = context.getSharedPreferences(MY_PREFERENCES, Context.MODE_PRIVATE);
final boolean first = reader.getBoolean("is_first", true);
if(first){
final SharedPreferences.Editor editor = reader.edit();
editor.putBoolean("is_first", false);
editor.commit();
}
return first;
}
}
在onCreate()函数中
...
//himg is image view in relative layout with rest of layout so that it covers whole screen
ImageView helpimage = (ImageView) findViewbyId(R.id.himg);
MyPreferences obj = new new MyPreferences();
if(obj.isFirst==true) helpimage.setVisibility(View.VISIBLE);
else helpimage.setVisibility(View.GONE);
若要在发布的图像中显示帮助,您可以使用透明背景的图像,并且只能使用箭头和文本