RecyclerView onclick

RecyclerView step 3 step1 public class xxxxxxxx extends RecyclerView.Adapter<MyAdapter.ViewHolder> implements View.OnClickListener { step2 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position viewHolder.textView.setOnClickListener(this); textView is findViewById(R.id.xxxxxxxxx) step3 @Override public void onClick(View view) { int viewId = view.getId(); if (viewId == R.id.xxxxxxxxx) { //which item click if (onItemClickListener != null) { onItemClickListener.onItemClick(view, (Integer) view.getTag()); } } } view.getTag() maybe null

2015-06-14 · 1 min · 56 words · Me

about RecyclerView error: android.widget.LinearLayout cannot be cast to android.widget.TextView

https://developer.android.com/training/material/lists-cards.html I think many people, try to do this demo. But this demo is not good, because some things no show. like: RecyclerView .xml to a layout:…….only little, but ok, this not import. MyAdapter .xml no layout: this is bad. Get error in here. so, follow this do is better http://stackoverflow.com/questions/28407768/android-widget-linearlayout-cannot-be-cast-to-android-widget-textview-in-recycle Gorcyn is good guy~~ ^ ^ But what different with android demo (fxxxxxxxxxxxxxx) android: public ViewHolder(TextView v) { mTextView = v; good guy: ...

2015-06-14 · 1 min · 148 words · Me

圖片 整批 改大小 壓縮 easy-image-modifier

http://www.inspire-soft.net/software/easy-image-modifier

2015-06-12 · 1 min · word · Me

[轉]電價

http://www.mobile01.com/topicdetail.php?f=168&t=4414661#56168839

2015-06-10 · 1 min · word · Me

[轉]Google 出手尝试解决 Android WebView 的碎片化

https://typeblog.net/tech/2015/04/06/google-released-seperate-webview.html Google Play Store 上发现了一个新的App: Android System WebView 用來更新 WebView 但只限官方的rom,因為 指向到 com.android.webview 和 com.google.android.webview 後者才有用 所以作者用 Xposed 處理

2015-06-09 · 1 min · 19 words · Me