Commit 519f4e19 by 罗翻

增加locaitoncomponent

parent e837d84c
......@@ -59,7 +59,7 @@ dependencies {
//jsbridge
compile 'com.github.lzyzsd:jsbridge:1.0.4'
compile project(':locationLibrary')
compile project(':locationComponent')
// compile(name: 'locationLibrary-debug', ext: 'aar')
}
......@@ -8,8 +8,8 @@ buildscript {
ext.version_code = 7
ext.verson_name = "1.3.0"
ext.gradle_version = '3.0.1'
ext.isReleaseMinify = true
ext.isDebugMinify = true
ext.isReleaseMinify = false
ext.isDebugMinify = false
ext.arouter_api_version = '1.3.1'
......
......@@ -11,12 +11,12 @@ import android.widget.TextView;
import com.dayu.base.ui.adapter.FragmentAdapter;
import com.dayu.base.ui.fragment.BaseFragment;
import com.dayu.provider.event.RefreshTab;
import com.dayu.order.R;
import com.dayu.order.api.protocol.Tab;
import com.dayu.order.databinding.FragmentOrderHomeBinding;
import com.dayu.order.presenter.homeorder.HomeOrderContract;
import com.dayu.order.presenter.homeorder.HomeOrderPresenter;
import com.dayu.provider.event.RefreshTab;
import com.dayu.utils.TabLayoutUtils;
import com.umeng.analytics.MobclickAgent;
......@@ -29,7 +29,8 @@ import java.util.List;
/**
* Created by luofan on 2017/11/20.
* Created by luofan
* on 2017/11/20.
*/
public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, FragmentOrderHomeBinding>
......@@ -92,8 +93,8 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
if (tab.getCustomView() == null) {
return;
}
mTabNumTv = (TextView) tab.getCustomView().findViewById(R.id.tabtext);
mTabTextTv = (TextView) tab.getCustomView().findViewById(R.id.tabicon);
mTabNumTv = tab.getCustomView().findViewById(R.id.tabtext);
mTabTextTv = tab.getCustomView().findViewById(R.id.tabicon);
switch (temp) {
case 0:
mTabNumTv.setTextColor(getResources().getColor(R.color.cl_order_item_date));
......@@ -175,8 +176,8 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
isFirstAddTab = false;
} else {
for (int i = 0; i < mBind.tbHome.getTabCount(); i++) {
TextView tv = (TextView) mBind.tbHome.getTabAt(i).getCustomView().findViewById(R.id.tabtext);
TextView tvIcon = (TextView) mBind.tbHome.getTabAt(i).getCustomView().findViewById(R.id.tabicon);
TextView tv = mBind.tbHome.getTabAt(i).getCustomView().findViewById(R.id.tabtext);
TextView tvIcon = mBind.tbHome.getTabAt(i).getCustomView().findViewById(R.id.tabicon);
tv.setText(tabNum[i]);
tvIcon.setText(tabDesc[i]);
}
......@@ -195,12 +196,12 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
*/
private View CreatTab(String number, String iconID) {
View newtab = LayoutInflater.from(mActivity).inflate(R.layout.activity_home_tab, null);
TextView textView_number = (TextView) newtab.findViewById(R.id.tabtext);
TextView textView_number = newtab.findViewById(R.id.tabtext);
AssetManager mgr = mActivity.getAssets();
Typeface tf = Typeface.createFromAsset(mgr, "fonts/DIN Alternate Bold.ttf");
textView_number.setTypeface(tf);
textView_number.setText(number);
TextView textView = (TextView) newtab.findViewById(R.id.tabicon);
TextView textView = newtab.findViewById(R.id.tabicon);
textView.setText(iconID);
return newtab;
}
......
......@@ -4,4 +4,4 @@ include ':app',
':messageCenter',
':userCenter',
':orderCenter',
':locationLibrary'
':locationComponent'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment