Class DynamicLayoutInflater
java.lang.Object
com.pranavpandey.android.dynamic.support.theme.inflater.DynamicLayoutInflater
- All Implemented Interfaces:
LayoutInflater.Factory
,LayoutInflater.Factory2
A
LayoutInflater.Factory2
to replace original views with the dynamic support views
during inflation.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Tag to ignore the view during inflation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiononCreateView
(View parent, String name, Context context, AttributeSet attrs) onCreateView
(String name, Context context, AttributeSet attrs) protected View
onCustomiseView
(View view, Context context, AttributeSet attrs) Customise the supplied view created by this layout inflater.
-
Field Details
-
ADS_TAG_IGNORE
Tag to ignore the view during inflation.- See Also:
-
-
Constructor Details
-
DynamicLayoutInflater
public DynamicLayoutInflater()
-
-
Method Details
-
onCreateView
@Nullable public View onCreateView(@NonNull String name, @NonNull Context context, @NonNull AttributeSet attrs) - Specified by:
onCreateView
in interfaceLayoutInflater.Factory
-
onCreateView
@Nullable public View onCreateView(@Nullable View parent, @NonNull String name, @NonNull Context context, @NonNull AttributeSet attrs) - Specified by:
onCreateView
in interfaceLayoutInflater.Factory2
-
onCustomiseView
@Nullable protected View onCustomiseView(@Nullable View view, @NonNull Context context, @NonNull AttributeSet attrs) Customise the supplied view created by this layout inflater.- Parameters:
view
- The view to be customised.context
- The context the view is being created in.attrs
- Inflation attributes as specified in XML file.- Returns:
- The view after applying the customisations.
-