<commit_before>/*
 * Copyright (C) 2015 Randomly Typing LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.randomlytyping.lovingleanlayouts.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.randomlytyping.lovingleanlayouts.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * @since 2015.10.23
 */
public class CustomListItem extends ViewGroup {
    //
    // Fields
    //

    @Bind(R.id.icon)
    ImageView icon;

    @Bind(R.id.title)
    TextView titleView;

    @Bind(R.id.subtitle)
    TextView subtitleView;

    //
    // Constructors
    //<commit_msg>Update documentation to attribute <NAME>i.<commit_after>/*
 * Copyright (C) 2015 Randomly Typing LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.randomlytyping.lovingleanlayouts.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.randomlytyping.lovingleanlayouts.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Custom {@link ViewGroup} for displaying the example list items from the launch screen but
 * without the extra measure/layout pass from the {@link android.widget.RelativeLayout}.
 *
 * The {@link #measure(int, int)} and {@link #measureChildWithMargins(View, int, int, int, int)}
 * logic was taken directly from <NAME>'s post on Custom ViewGroups:
 * https://sriramramani.wordpress.com/2015/05/06/custom-viewgroups/
 *
 * @since 2015.10.23
 */
public class CustomListItem extends ViewGroup {
    //
    // Fields
    //

    @Bind(R.id.icon)
    ImageView icon;

    @Bind(R.id.title)
    TextView titleView;

    @Bind(R.id.subtitle)
    TextView subtitleView;

    //
    // Constructors
    //
{'fraction_non_alphanumeric': 0.09527004360952701, 'fraction_numerical': 0.01341831600134183, 'mean_word_length': 3.681318681318681, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '833371', 'n_tokens_mistral': 891, 'n_tokens_neox': 844, 'n_words': 295}