升级自研地图sdk版本
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.mogo.commons.layoutinflater;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.annotation.LayoutRes;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020/12/23
|
||||
*
|
||||
* 系统实现的布局加载
|
||||
*/
|
||||
class OriginalLayoutInflater {
|
||||
|
||||
private static LayoutInflater sLayoutInflater;
|
||||
|
||||
public static void init( Context context ) {
|
||||
sLayoutInflater = LayoutInflater.from( context ).cloneInContext( context );
|
||||
}
|
||||
|
||||
public static View inflate( @LayoutRes int layoutId, ViewGroup container, boolean attachToRoot ) {
|
||||
return sLayoutInflater.inflate( layoutId, container, attachToRoot );
|
||||
}
|
||||
|
||||
public static View inflate( @LayoutRes int layoutId, ViewGroup container ) {
|
||||
return sLayoutInflater.inflate( layoutId, container, container != null );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user