app首次进入的时候,新手操作进行提醒操作
2013-11-07 10:49
876 查看
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/mycouponlisttoplayout"
android:background="@color/loginbgcolor"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/loadingmycouponLayout"
android:layout_width="fill_parent"
android:layout_height="30dp"
android:background="@color/loginbgcolor"
android:gravity="center"
android:orientation="horizontal" >
<ImageView
android:id="@+id/mycouponfootprogress"
style="?android:progressBarStyleSmallInverse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@drawable/spinner_small"
android:contentDescription="@string/contentdesption"
android:indeterminateBehavior="repeat" />
<TextView
android:id="@+id/mycouponTipMsg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|center"
android:padding="3.0px"
android:text="@string/Loading"
android:textColor="#ff000000" />
</LinearLayout>
<com.ejoy.customcontrol.XListView
android:id="@+id/mycouponusalist"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/loginbgcolor"
android:cacheColorHint="#00000000"
android:scrollbars="none" >
</com.ejoy.customcontrol.XListView>
</LinearLayout>
<RelativeLayout
android:id="@+id/mycouponlisttoplayout"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/black" >
<TextView
android:id="@+id/txtMyCouponTitle"
style="@style/TopBarTextStyle"
android:text="@string/mycentermyCoupon" />
<Button
android:id="@+id/mycoupondetails_normal_Btnreturn"
style="@style/TopBtnReturnStyle"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true" />
</RelativeLayout>
<ImageView
android:id="@+id/mycouponhelpTip"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:contentDescription="@string/contentdesption"
android:keepScreenOn="true"
android:scaleType="fitXY"
android:src="@drawable/mycoupontip" />
</RelativeLayout>
===========================
helpImageView = (ImageView) findViewById(R.id.mycouponhelpTip);
SharedPreferences sharedata = getSharedPreferences("fristrun", 0);
Boolean isSoupon = sharedata.getBoolean("isSoupon", true);
if (isSoupon) {
helpImageView.setVisibility(View.VISIBLE);
} else {
helpImageView.setVisibility(View.GONE);
}
helpImageView.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
helpImageView.setVisibility(View.GONE);
Editor sharedata = getSharedPreferences("fristrun", 0).edit();
sharedata.putBoolean("isSoupon", false);
sharedata.commit();
}
});
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/mycouponlisttoplayout"
android:background="@color/loginbgcolor"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/loadingmycouponLayout"
android:layout_width="fill_parent"
android:layout_height="30dp"
android:background="@color/loginbgcolor"
android:gravity="center"
android:orientation="horizontal" >
<ImageView
android:id="@+id/mycouponfootprogress"
style="?android:progressBarStyleSmallInverse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@drawable/spinner_small"
android:contentDescription="@string/contentdesption"
android:indeterminateBehavior="repeat" />
<TextView
android:id="@+id/mycouponTipMsg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|center"
android:padding="3.0px"
android:text="@string/Loading"
android:textColor="#ff000000" />
</LinearLayout>
<com.ejoy.customcontrol.XListView
android:id="@+id/mycouponusalist"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/loginbgcolor"
android:cacheColorHint="#00000000"
android:scrollbars="none" >
</com.ejoy.customcontrol.XListView>
</LinearLayout>
<RelativeLayout
android:id="@+id/mycouponlisttoplayout"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/black" >
<TextView
android:id="@+id/txtMyCouponTitle"
style="@style/TopBarTextStyle"
android:text="@string/mycentermyCoupon" />
<Button
android:id="@+id/mycoupondetails_normal_Btnreturn"
style="@style/TopBtnReturnStyle"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true" />
</RelativeLayout>
<ImageView
android:id="@+id/mycouponhelpTip"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:contentDescription="@string/contentdesption"
android:keepScreenOn="true"
android:scaleType="fitXY"
android:src="@drawable/mycoupontip" />
</RelativeLayout>
===========================
helpImageView = (ImageView) findViewById(R.id.mycouponhelpTip);
SharedPreferences sharedata = getSharedPreferences("fristrun", 0);
Boolean isSoupon = sharedata.getBoolean("isSoupon", true);
if (isSoupon) {
helpImageView.setVisibility(View.VISIBLE);
} else {
helpImageView.setVisibility(View.GONE);
}
helpImageView.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
helpImageView.setVisibility(View.GONE);
Editor sharedata = getSharedPreferences("fristrun", 0).edit();
sharedata.putBoolean("isSoupon", false);
sharedata.commit();
}
});
相关文章推荐
- android app首次进入的时候进行提醒操作
- android app首次进入的时候进行提醒操作
- android app第一次进入某界面的时候进行操作按钮的提示
- 安卓首次进入APP的时候的导航实现上下滑动引导特效-------从上往下滑动引导
- android首次进入App新手引导
- [开源学习_MeiZhi]首次进入App执行某操作,第二次进入则不再执行
- 关于Android App上线后从应用市场点击打开按钮进入应用后进行操作后,再点击home键到桌面后点击启动图标重新打开应用的解决方法
- 关于C#和ASP.NET中对App.config和Web.config文件里的[appSettings]和[connectionStrings]节点进行新增、修改、删除和读取相关的操作
- 关于C#和ASP.NET中对App.config和Web.config文件里的[appSettings]和[connectionStrings]节点进行新增、修改、删除和读取相关的操作
- 解决Android在对Sdcard进行文件的读写操作的时候报错FileNotFoundException
- 关于C#和ASP.NET中对App.config和Web.config文件里的[appSettings]和[connectionStrings]节点进行新增、修改、删除和读取相关的操作
- android App一段时间没有操作或没有点击屏幕后弹出广告,或者一段时间没有点击屏幕进行特定操作。
- PHP―使用MYSQL来 进入用户管理中心进行更多的操作
- 关于C#和ASP.NET中对App.config和Web.config文件里的[appSettings]和[connectionStrings]节点进行新增、修改、删除和读取相关的操作
- 【Codeforces Round 323 (Div 2)A】【水题】Asphalting Roads 行列之进行首次操作
- android App一段时间没有操作或没有点击屏幕后弹出广告,或者一段时间没有点击屏幕进行特定操作。
- iOS 中 当程序进入后台 但是程序员希望在程序进入后台的时候还可以运行一段代码时候可以做以下的操作
- 退出后点击浏览器后退不能回到成功页面;直接进入页面和跳转进入页面样式不同;防止直接输入页面地址或servlet;当servlet跳servlet时,进行其他操作后后退出现错误!
- iOSapp 进入后台后获取更多的时间操作
- APP首次启动:图片轮播3秒后进入首页或点击按钮进入首页(这里用的banner轮播)