android_view_View
pattern_6 (3 partitions, 217 files)
android.view.View.findViewById, android.view.View.findViewById, android.view.View.findViewById
Cluster 2 (31 files, similarity: 0.542)
Coding_____Coding-Android_____PickUserActivity
if (convertView == null) {
convertView = mInflater.inflate(R.layout.activity_users_list_item, parent, false);
holder = new ViewHolder();
holder.name = (TextView) convertView.findViewById(R.id.name);
holder.icon = (ImageView) convertView.findViewById(R.id.icon);
holder.divideTitle = (TextView) convertView.findViewById(R.id.divideTitle);
holder.divideLine = convertView.findViewById(R.id.divide_line);
convertView.setTag(holder);
} else {
CraftsmenTech_____AndBase_____ArticleListAdapter
if(convertView == null){
convertView = LayoutInflater.from(mContext).inflate(R.layout.item_list, parent, false);
holder = new ViewHolder();
holder.itemsIcon = ((ImageView) convertView.findViewById(R.id.itemsIcon)) ;
holder.itemsTitle = ((TextView) convertView.findViewById(R.id.itemsTitle));
holder.itemsText = ((TextView) convertView.findViewById(R.id.itemsText));
convertView.setTag(holder);
}else{
rtoshiro_____FullscreenVideoView_____FullscreenVideoLayout
if (videoControlsView != null) {
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
params.addRule(ALIGN_PARENT_BOTTOM);
addView(videoControlsView, params);
this.seekBar = (SeekBar) this.videoControlsView.findViewById(R.id.vcv_seekbar);
this.imgfullscreen = (ImageButton) this.videoControlsView.findViewById(R.id.vcv_img_fullscreen);
this.imgplay = (ImageButton) this.videoControlsView.findViewById(R.id.vcv_img_play);
this.textTotal = (TextView) this.videoControlsView.findViewById(R.id.vcv_txt_total);
this.textElapsed = (TextView) this.videoControlsView.findViewById(R.id.vcv_txt_elapsed);
}
Cluster 1 (46 files, similarity: 0.522)
HuanTanSheng_____EasyPhotos_____PuzzleSelectorPreviewAdapter
public PhotoViewHolder(View itemView) {
super(itemView);
this.ivPhoto = (ImageView) itemView.findViewById(R.id.iv_photo);
this.ivDelete = (ImageView) itemView.findViewById(R.id.iv_delete);
this.tvType = (TextView) itemView.findViewById(R.id.tv_type);
}
cloverstudio_____Spika-Android_____UsersInChatRecyclerViewAdapter
ViewHolder(View v) {
super(v);
name = (TextView) v.findViewById(R.id.nameOfUser);
progressForAvatar = (ProgressBar) v.findViewById(R.id.avatarProgressBar);
avatar = (ImageView) v.findViewById(R.id.avatar);
}
open-keychain_____open-keychain_____ReceivedSecretKeyList
ReceivedKeyViewHolder(View itemView) {
super(itemView);
vName = itemView.findViewById(R.id.key_list_item_name);
vEmail = itemView.findViewById(R.id.key_list_item_email);
vCreation = itemView.findViewById(R.id.key_list_item_creation);
vImportButton = itemView.findViewById(R.id.button_import);
vState = itemView.findViewById(R.id.transfer_state);
}
pattern_2 (3 partitions, 135 files)
android.view.View.getId
Cluster 2 (21 files, similarity: 0.687)
boredream_____DesignResCollection_____RegisterStep1Activity
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btn_next:
next();
break;
}
}
DIY-green_____AndroidStudyDemo_____BTDPTemplateMethodActivity
switch (v.getId()) {
case R.id.button:
testA();
break;
case R.id.button2:
testB();
break;
}
matt-allen_____repay-android_____RepayDebtActivity
switch (v.getId())
{
case R.id.fragment_enterdebtamount_donebtn:
((DebtFragment)getFragmentManager().findFragmentById(mFrameId)).saveFields();
save();
break;
default:
break;
}
pattern_18 (2 partitions, 53 files)
android.view.View.getParent
Cluster 1 (19 files, similarity: 0.752)
HomHomLin_____Android-PullToRefreshRecyclerView_____PullToRefreshRecyclerView
if(mEmptyView.getParent() != mRootRelativeLayout) {
mRootRelativeLayout.addView(mEmptyView);
}
dodyg_____AndroidRivers_____CustomViewBehind
if (v != null && v.getParent() != null) {
mSelectedView = v;
mSelectedView.setTag(R.id.selected_view, TAG+"SelectedView");
invalidate();
}
googlesamples_____android-play-places_____CardStreamLinearLayout
if (child.getParent() == null) {
initCard(child, true);
super.addView(child, index, params);
}
pattern_15 (2 partitions, 52 files)
android.view.View.getWidth, android.view.View.getHeight
Cluster 1 (20 files, similarity: 0.698)
aosp-mirror_____platform_frameworks_support_____AbstractMediaItemPresenter
sTempRect.set(0, 0, focusChangedView.getWidth(), focusChangedView.getHeight());
jpush_____jchat-android_____StickyGridHeadersGridView
if (mHeaderBottomPosition != headerHeight) {
canvas.saveLayerAlpha(0, 0, canvas.getWidth(), canvas.getHeight(), 255
* mHeaderBottomPosition / headerHeight, Canvas.ALL_SAVE_FLAG);
}
enricocid_____LaunchEnr_____Launcher
return new Rect(pos[0], pos[1], pos[0] + v.getWidth(), pos[1] + v.getHeight());
pattern_34 (3 partitions, 52 files)
android.view.View.setLayoutParams
Cluster 0 (18 files, similarity: 0.73)
UweTrottmann_____SeriesGuide_____StickyGridHeadersBaseAdapterWrapper
if (params == null) {
params = generateDefaultLayoutParams();
v.setLayoutParams(params);
}
Prototik_____HoloEverywhere_____LayoutInflater
if (!attachToRoot) {
temp.setLayoutParams(params);
}
xamarin_____XobotOS_____AbsSpinner
if (view.getLayoutParams() == null) {
mBlockLayoutRequests = true;
view.setLayoutParams(generateDefaultLayoutParams());
mBlockLayoutRequests = false;
}
Cluster 2 (10 files, similarity: 0.69)
wqandroid_____wqgallery_____PhotoAdapter
public ImageViewHolder(View itemView) {
super(itemView);
itemView.setLayoutParams(params);
iv_image = (ImageView) itemView.findViewById(R.id.iv_image);
alpha_view = itemView.findViewById(R.id.alpha_view);
checkBox = (ImageButton) itemView.findViewById(R.id.checkimages);
}
limedroid_____ARecyclerView_____XHeadFootViewHolder
public XHeadFootViewHolder(View itemView) {
super(itemView);
itemView.setLayoutParams(new RecyclerView.LayoutParams(RecyclerView.LayoutParams.MATCH_PARENT, RecyclerView.LayoutParams.WRAP_CONTENT));
itemView.setTag(this);
}
guerwan_____TransitionsBackport_____MainActivity
private void setNewSize(int id, int width, int height) {
View view = findViewById(id);
ViewGroup.LayoutParams params = view.getLayoutParams();
params.width = width;
params.height = height;
view.setLayoutParams(params);
}
pattern_3 (4 partitions, 126 files)
android.view.View.setVisibility
Cluster 2 (28 files, similarity: 0.815)
handsomezhou_____PinyinSearchLibrary_____ViewUtil
if (View.VISIBLE != view.getVisibility()) {
view.setVisibility(View.VISIBLE);
}
android_____platform_frameworks_support_____ActionListItem
for (View v : viewHolder.getWidgetViews()) {
v.setEnabled(mIsEnabled);
v.setVisibility(View.GONE);
}
rtoshiro_____FullscreenVideoView_____FullscreenVideoLayout
if (this.videoControlsView != null)
this.videoControlsView.setVisibility(View.INVISIBLE);
pattern_4 (2 partitions, 112 files)
android.view.ViewGroup.getContext
Cluster 1 (56 files, similarity: 0.871)
NicodeLee_____Beautyacticle_____MainRecyclerViewAdapter
@Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_main, parent, false);
return new ViewHolder(view);
}
siwangqishiq_____ImageEditor-Android_____StickerAdapter
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewtype) {
View v = null;
v = LayoutInflater.from(parent.getContext()).inflate(
R.layout.view_sticker_item, parent, false);
ImageHolder holer = new ImageHolder(v);
return holer;
}
wangdan_____AisenWeiBo_____SearchsSuggestAdapter
@Override
public ResultViewHolder onCreateViewHolder(final ViewGroup parent, int viewType) {
final LayoutInflater mInflater = LayoutInflater.from(parent.getContext());
final View sView = mInflater.inflate(com.lapism.searchview.R.layout.search_item, parent, false);
return new ResultViewHolder(sView);
}
pattern_24 (3 partitions, 44 files)
android.view.ViewGroup.removeView
Cluster 3 (6 files, similarity: 1.0)
dodyg_____AndroidRivers_____GridView
if (view.getParent() != null) {
((ViewGroup) view.getParent()).removeView(view);
}
brucetoo_____ListVideoPlay_____VideoTracker
if(mLoadingControllerView != null && mLoadingControllerView.getParent() != null){
((ViewGroup) mLoadingControllerView.getParent()).removeView(mLoadingControllerView);
}
mikepenz_____MaterialDrawer_____ContainerDrawerItem
if (mView.getParent() != null) {
((ViewGroup) mView.getParent()).removeView(mView);
}
Cluster 0 (26 files, similarity: 0.869)
kercer_____kerkee_android_____KCJSBridge
if (vg != null)
vg.removeView(aWebview);
rickdynasty_____TwsPluginFramework_____ActionBarContextView
if (oldParent != null)
oldParent.removeView(mMenuView);
motianhuo_____wechat_____Fragment_Msg
if (parent != null) {
parent.removeView(layout);
}
}