Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
519f4e19
authored
Feb 28, 2018
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加locaitoncomponent
parent
e837d84c
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
12 deletions
baseSDK/build.gradle
build.gradle
locationLibrary/.gitignore → locationComponent/.gitignore
locationLibrary/build.gradle → locationComponent/build.gradle
locationLibrary/libs/AMap_Location_V3.6.1_20171012.jar → locationComponent/libs/AMap_Location_V3.6.1_20171012.jar
locationLibrary/proguard-rules.pro → locationComponent/proguard-rules.pro
locationLibrary/src/androidTest/java/com/dayu/location/ExampleInstrumentedTest.java → locationComponent/src/androidTest/java/com/dayu/location/ExampleInstrumentedTest.java
locationLibrary/src/main/AndroidManifest.xml → locationComponent/src/main/AndroidManifest.xml
locationLibrary/src/main/java/com/dayu/location/base/LocationUtils.java → locationComponent/src/main/java/com/dayu/location/base/LocationUtils.java
locationLibrary/src/main/res/values/strings.xml → locationComponent/src/main/res/values/strings.xml
locationLibrary/src/test/java/com/dayu/location/ExampleUnitTest.java → locationComponent/src/test/java/com/dayu/location/ExampleUnitTest.java
orderCenter/src/main/java/com/dayu/order/ui/fragment/HomeOrderFragment.java
settings.gradle
baseSDK/build.gradle
View file @
519f4e19
...
@@ -59,7 +59,7 @@ dependencies {
...
@@ -59,7 +59,7 @@ dependencies {
//jsbridge
//jsbridge
compile
'com.github.lzyzsd:jsbridge:1.0.4'
compile
'com.github.lzyzsd:jsbridge:1.0.4'
compile
project
(
':location
Library
'
)
compile
project
(
':location
Component
'
)
// compile(name: 'locationLibrary-debug', ext: 'aar')
// compile(name: 'locationLibrary-debug', ext: 'aar')
}
}
build.gradle
View file @
519f4e19
...
@@ -8,8 +8,8 @@ buildscript {
...
@@ -8,8 +8,8 @@ buildscript {
ext
.
version_code
=
7
ext
.
version_code
=
7
ext
.
verson_name
=
"1.3.0"
ext
.
verson_name
=
"1.3.0"
ext
.
gradle_version
=
'3.0.1'
ext
.
gradle_version
=
'3.0.1'
ext
.
isReleaseMinify
=
tru
e
ext
.
isReleaseMinify
=
fals
e
ext
.
isDebugMinify
=
tru
e
ext
.
isDebugMinify
=
fals
e
ext
.
arouter_api_version
=
'1.3.1'
ext
.
arouter_api_version
=
'1.3.1'
...
...
location
Library
/.gitignore
→
location
Component
/.gitignore
View file @
519f4e19
File moved
location
Library
/build.gradle
→
location
Component
/build.gradle
View file @
519f4e19
File moved
location
Library
/libs/AMap_Location_V3.6.1_20171012.jar
→
location
Component
/libs/AMap_Location_V3.6.1_20171012.jar
View file @
519f4e19
File moved
location
Library
/proguard-rules.pro
→
location
Component
/proguard-rules.pro
View file @
519f4e19
File moved
location
Library
/src/androidTest/java/com/dayu/location/ExampleInstrumentedTest.java
→
location
Component
/src/androidTest/java/com/dayu/location/ExampleInstrumentedTest.java
View file @
519f4e19
File moved
location
Library
/src/main/AndroidManifest.xml
→
location
Component
/src/main/AndroidManifest.xml
View file @
519f4e19
File moved
location
Library
/src/main/java/com/dayu/location/base/LocationUtils.java
→
location
Component
/src/main/java/com/dayu/location/base/LocationUtils.java
View file @
519f4e19
File moved
location
Library
/src/main/res/values/strings.xml
→
location
Component
/src/main/res/values/strings.xml
View file @
519f4e19
File moved
location
Library
/src/test/java/com/dayu/location/ExampleUnitTest.java
→
location
Component
/src/test/java/com/dayu/location/ExampleUnitTest.java
View file @
519f4e19
File moved
orderCenter/src/main/java/com/dayu/order/ui/fragment/HomeOrderFragment.java
View file @
519f4e19
...
@@ -11,12 +11,12 @@ import android.widget.TextView;
...
@@ -11,12 +11,12 @@ import android.widget.TextView;
import
com.dayu.base.ui.adapter.FragmentAdapter
;
import
com.dayu.base.ui.adapter.FragmentAdapter
;
import
com.dayu.base.ui.fragment.BaseFragment
;
import
com.dayu.base.ui.fragment.BaseFragment
;
import
com.dayu.provider.event.RefreshTab
;
import
com.dayu.order.R
;
import
com.dayu.order.R
;
import
com.dayu.order.api.protocol.Tab
;
import
com.dayu.order.api.protocol.Tab
;
import
com.dayu.order.databinding.FragmentOrderHomeBinding
;
import
com.dayu.order.databinding.FragmentOrderHomeBinding
;
import
com.dayu.order.presenter.homeorder.HomeOrderContract
;
import
com.dayu.order.presenter.homeorder.HomeOrderContract
;
import
com.dayu.order.presenter.homeorder.HomeOrderPresenter
;
import
com.dayu.order.presenter.homeorder.HomeOrderPresenter
;
import
com.dayu.provider.event.RefreshTab
;
import
com.dayu.utils.TabLayoutUtils
;
import
com.dayu.utils.TabLayoutUtils
;
import
com.umeng.analytics.MobclickAgent
;
import
com.umeng.analytics.MobclickAgent
;
...
@@ -29,7 +29,8 @@ import java.util.List;
...
@@ -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
>
public
class
HomeOrderFragment
extends
BaseFragment
<
HomeOrderPresenter
,
FragmentOrderHomeBinding
>
...
@@ -92,8 +93,8 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
...
@@ -92,8 +93,8 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
if
(
tab
.
getCustomView
()
==
null
)
{
if
(
tab
.
getCustomView
()
==
null
)
{
return
;
return
;
}
}
mTabNumTv
=
(
TextView
)
tab
.
getCustomView
().
findViewById
(
R
.
id
.
tabtext
);
mTabNumTv
=
tab
.
getCustomView
().
findViewById
(
R
.
id
.
tabtext
);
mTabTextTv
=
(
TextView
)
tab
.
getCustomView
().
findViewById
(
R
.
id
.
tabicon
);
mTabTextTv
=
tab
.
getCustomView
().
findViewById
(
R
.
id
.
tabicon
);
switch
(
temp
)
{
switch
(
temp
)
{
case
0
:
case
0
:
mTabNumTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
cl_order_item_date
));
mTabNumTv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
cl_order_item_date
));
...
@@ -175,8 +176,8 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
...
@@ -175,8 +176,8 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
isFirstAddTab
=
false
;
isFirstAddTab
=
false
;
}
else
{
}
else
{
for
(
int
i
=
0
;
i
<
mBind
.
tbHome
.
getTabCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
mBind
.
tbHome
.
getTabCount
();
i
++)
{
TextView
tv
=
(
TextView
)
mBind
.
tbHome
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabtext
);
TextView
tv
=
mBind
.
tbHome
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabtext
);
TextView
tvIcon
=
(
TextView
)
mBind
.
tbHome
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabicon
);
TextView
tvIcon
=
mBind
.
tbHome
.
getTabAt
(
i
).
getCustomView
().
findViewById
(
R
.
id
.
tabicon
);
tv
.
setText
(
tabNum
[
i
]);
tv
.
setText
(
tabNum
[
i
]);
tvIcon
.
setText
(
tabDesc
[
i
]);
tvIcon
.
setText
(
tabDesc
[
i
]);
}
}
...
@@ -195,12 +196,12 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
...
@@ -195,12 +196,12 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
*/
*/
private
View
CreatTab
(
String
number
,
String
iconID
)
{
private
View
CreatTab
(
String
number
,
String
iconID
)
{
View
newtab
=
LayoutInflater
.
from
(
mActivity
).
inflate
(
R
.
layout
.
activity_home_tab
,
null
);
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
();
AssetManager
mgr
=
mActivity
.
getAssets
();
Typeface
tf
=
Typeface
.
createFromAsset
(
mgr
,
"fonts/DIN Alternate Bold.ttf"
);
Typeface
tf
=
Typeface
.
createFromAsset
(
mgr
,
"fonts/DIN Alternate Bold.ttf"
);
textView_number
.
setTypeface
(
tf
);
textView_number
.
setTypeface
(
tf
);
textView_number
.
setText
(
number
);
textView_number
.
setText
(
number
);
TextView
textView
=
(
TextView
)
newtab
.
findViewById
(
R
.
id
.
tabicon
);
TextView
textView
=
newtab
.
findViewById
(
R
.
id
.
tabicon
);
textView
.
setText
(
iconID
);
textView
.
setText
(
iconID
);
return
newtab
;
return
newtab
;
}
}
...
...
settings.gradle
View file @
519f4e19
...
@@ -4,4 +4,4 @@ include ':app',
...
@@ -4,4 +4,4 @@ include ':app',
':messageCenter'
,
':messageCenter'
,
':userCenter'
,
':userCenter'
,
':orderCenter'
,
':orderCenter'
,
':location
Library
'
':location
Component
'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment