| | |
| | | |
| | | import com.androidquery.AQuery; |
| | | import com.lcjian.library.util.common.ClipboardUtil; |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.weikou.beibeivideo.R; |
| | | import com.weikou.beibeivideo.ui.BaseActivity; |
| | | import com.weikou.beibeivideo.util.BeibeiConstant; |
| | | import com.weikou.beibeivideo.util.ui.TopStatusSettings; |
| | | |
| | | public class FeedBackActivity extends BaseActivity implements |
| | | OnClickListener { |
| | |
| | | super.onCreate(savedInstanceState); |
| | | setContentView(R.layout.activity_feedback); |
| | | aQuery = new AQuery(this); |
| | | /* |
| | | * 计算状态栏高度并设置 |
| | | */ |
| | | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { |
| | | int result = 0; |
| | | int resourceId = getResources().getIdentifier("status_bar_height", |
| | | "dimen", "android"); |
| | | if (resourceId > 0) { |
| | | result = getResources().getDimensionPixelSize(resourceId); |
| | | } |
| | | LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, |
| | | result); |
| | | findViewById(R.id.v_status_bar).setLayoutParams(params); |
| | | } else { |
| | | findViewById(R.id.v_status_bar).setVisibility(View.GONE); |
| | | } |
| | | TopStatusSettings.setStatusViewAndDeepColor(this); |
| | | aQuery.id(R.id.tv_submit).clicked(this); |
| | | aQuery.id(R.id.tv_top_bar_left).clicked(this); |
| | | |
| | |
| | | @Override |
| | | public void onResume() { |
| | | super.onResume(); |
| | | MobclickAgent.onPageStart("帮助中心"); |
| | | } |
| | | |
| | | @Override |
| | | public void onPause() { |
| | | super.onPause(); |
| | | MobclickAgent.onPageEnd("帮助中心"); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | |
| | | case R.id.tv_submit:// 复制QQ号 |
| | | String content = aQuery.id(R.id.et_content).getText() + ""; |
| | | if (StringUtils.isEmpty(content)) { |
| | | Toast.makeText(this, "请填写意见", Toast.LENGTH_SHORT).show(); |
| | | return; |
| | | } |
| | | Toast.makeText(this, "提交成功", Toast.LENGTH_SHORT).show(); |
| | | finish(); |
| | | break; |