Search in sources :

Example 1 with CountryItemBinding

use of eu.siacs.conversations.databinding.CountryItemBinding in project Conversations by siacs.

the class CountryAdapter method onCreateViewHolder.

@NonNull
@Override
public CountryViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
    LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
    CountryItemBinding binding = DataBindingUtil.inflate(layoutInflater, R.layout.country_item, parent, false);
    return new CountryViewHolder(binding);
}
Also used : CountryItemBinding(eu.siacs.conversations.databinding.CountryItemBinding) LayoutInflater(android.view.LayoutInflater) NonNull(androidx.annotation.NonNull)

Aggregations

LayoutInflater (android.view.LayoutInflater)1 NonNull (androidx.annotation.NonNull)1 CountryItemBinding (eu.siacs.conversations.databinding.CountryItemBinding)1