Search in sources :

Example 86 with LayoutInflater

use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.

the class VerticalSwipeableExampleAdapter method onCreateViewHolder.

@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
    final View v = inflater.inflate(R.layout.list_item_v, parent, false);
    return new MyViewHolder(v);
}
Also used : LayoutInflater(android.view.LayoutInflater) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) View(android.view.View)

Example 87 with LayoutInflater

use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.

the class SwipeableWithButtonExampleAdapter method onCreateViewHolder.

@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
    final View v = inflater.inflate(R.layout.list_item_with_leave_behind_button, parent, false);
    return new MyViewHolder(v);
}
Also used : LayoutInflater(android.view.LayoutInflater) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) View(android.view.View)

Example 88 with LayoutInflater

use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.

the class ExpandableDraggableSwipeableExampleAdapter method onCreateChildViewHolder.

@Override
public MyChildViewHolder onCreateChildViewHolder(ViewGroup parent, int viewType) {
    final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
    final View v = inflater.inflate(R.layout.list_item_draggable, parent, false);
    return new MyChildViewHolder(v);
}
Also used : LayoutInflater(android.view.LayoutInflater) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView)

Example 89 with LayoutInflater

use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.

the class DraggableExampleItemAdapter method onCreateViewHolder.

@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
    final View v = inflater.inflate((viewType == 0) ? R.layout.list_item_draggable : R.layout.list_item2_draggable, parent, false);
    return new MyViewHolder(v);
}
Also used : LayoutInflater(android.view.LayoutInflater) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) View(android.view.View)

Example 90 with LayoutInflater

use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.

the class DraggableGridExampleAdapter method onCreateViewHolder.

@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
    final View v = inflater.inflate(R.layout.list_grid_item, parent, false);
    return new MyViewHolder(v);
}
Also used : LayoutInflater(android.view.LayoutInflater) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) View(android.view.View)

Aggregations

LayoutInflater (android.view.LayoutInflater)1292 View (android.view.View)803 TextView (android.widget.TextView)615 ImageView (android.widget.ImageView)259 ViewGroup (android.view.ViewGroup)139 Context (android.content.Context)131 ListView (android.widget.ListView)123 LinearLayout (android.widget.LinearLayout)106 RecyclerView (android.support.v7.widget.RecyclerView)104 AdapterView (android.widget.AdapterView)100 Intent (android.content.Intent)92 AlertDialog (android.app.AlertDialog)88 DialogInterface (android.content.DialogInterface)81 Button (android.widget.Button)57 Bundle (android.os.Bundle)54 FrameLayout (android.widget.FrameLayout)49 TypedArray (android.content.res.TypedArray)43 Activity (android.app.Activity)41 AlertDialog (android.support.v7.app.AlertDialog)41 EditText (android.widget.EditText)41