补充注释及移除部分未用到代码
This commit is contained in:
@@ -77,19 +77,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
private void init() {
|
||||
LayoutInflater.from(mContext).inflate(R.layout.layout_faceunity, this);
|
||||
initView();
|
||||
bindBottomView();
|
||||
FineStickerDataFactory.getInstance().addCallback(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* 绑定数据工厂
|
||||
*
|
||||
* @param dataFactory FaceUnityDataFactory
|
||||
*/
|
||||
public void bindDataFactory(FaceUnityDataFactory dataFactory) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化View
|
||||
*/
|
||||
@@ -111,6 +101,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
initViewClick();
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化配置点击事件
|
||||
*/
|
||||
private void initViewClick() {
|
||||
menu2Back.setOnClickListener(v -> {
|
||||
Object tag = menu2Back.getTag();
|
||||
@@ -138,6 +131,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 回到默认界面
|
||||
*/
|
||||
private void goBackMainMenu() {
|
||||
setContainerRecycler(new ArrayList<>());
|
||||
title.setText("美顏特效選擇");
|
||||
@@ -147,23 +143,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
menuDiy.setVisibility(GONE);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 底部功能菜单切换
|
||||
* 配置主菜单
|
||||
*/
|
||||
private void bindBottomView() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* UI菜单显示控制
|
||||
*
|
||||
* @param index Int
|
||||
*/
|
||||
private void showFunction(int index) {
|
||||
|
||||
}
|
||||
|
||||
private void initMenuGroup() {
|
||||
MenuGroupRecyclerAdapter adapter = new MenuGroupRecyclerAdapter(mContext);
|
||||
menuGroup.setLayoutManager(new GridLayoutManager(mContext, 4));
|
||||
@@ -228,6 +210,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
menuGroup.setAdapter(adapter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建Tab
|
||||
*/
|
||||
private List<TabLayout.Tab> createTabs(Map<Integer, Integer> map) {
|
||||
List<TabLayout.Tab> list = new ArrayList<>();
|
||||
for (Integer key : map.keySet()) {
|
||||
@@ -238,6 +223,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建菜单
|
||||
*/
|
||||
private List<TabLayout.Tab> createTabs(List<FineStickerTagEntity> tags) {
|
||||
List<TabLayout.Tab> list = new ArrayList<>();
|
||||
for (FineStickerTagEntity tag : tags) {
|
||||
@@ -253,6 +241,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建菜单
|
||||
*/
|
||||
private List<TabLayout.Tab> createTabs(ArrayList<MakeupCustomClassBean> tags) {
|
||||
List<TabLayout.Tab> list = new ArrayList<>();
|
||||
for (MakeupCustomClassBean tag : tags) {
|
||||
@@ -264,6 +255,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置菜单
|
||||
*/
|
||||
private void setTab(List<TabLayout.Tab> tabs) {
|
||||
tabLayout.removeAllTabs();
|
||||
for (TabLayout.Tab tab : tabs) {
|
||||
@@ -367,10 +361,18 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置美颜选项配置行数,图标为5个,拖动条为2个
|
||||
* @param count
|
||||
*/
|
||||
private void changeRecyclerItemCount(int count) {
|
||||
containerRecycler.setLayoutManager(new GridLayoutManager(mContext, count));
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置美颜Recycler内容
|
||||
* @param list
|
||||
*/
|
||||
private void setContainerRecycler(ArrayList<? extends BaseBean> list) {
|
||||
if (containerAdapter == null) {
|
||||
containerAdapter = new ContainerRecyclerAdapter(mContext);
|
||||
|
||||
Reference in New Issue
Block a user