コード例 #1
0
 @Override
 public void onAttachedToRecyclerView(RecyclerView recyclerView) {
   super.onAttachedToRecyclerView(recyclerView);
   mLevelIndicatorWidth = AppUtils.getDimensionInDp(mContext, R.dimen.level_indicator_width);
   mAutoExpand = Preferences.shouldAutoExpandComments(mContext);
   mColorCoded = Preferences.colorCodeEnabled(mContext);
   if (mColorCoded) {
     mColors = mContext.getResources().obtainTypedArray(R.array.color_codes);
   }
   mRecyclerView = recyclerView;
 }
コード例 #2
0
 @Override
 public void onAttachedToRecyclerView(RecyclerView recyclerView) {
   super.onAttachedToRecyclerView(recyclerView);
   mLevelIndicatorWidth = AppUtils.getDimensionInDp(mContext, R.dimen.level_indicator_width);
 }