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
7 years ago
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加locaitoncomponent
parent
e837d84c
master
…
dev
dev_xx
dev_xx_241116
dev_xx_250108_toast
dev_xx_250224_report
dev_xx_web
test
v2.7.2
v2.7.1
v2.7.0
v2.6.9
v2.6.7
v2.6.6
v2.6.5
v2.6.4
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v2.5.9
v2.5.7
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.0
v2.4.6
v2.4.5
v2.4.0
v_2.4.0
v2.3.2
v2.3.1
dev20230405
android_v1.6.0
Hide 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 {
//jsbridge
compile
'com.github.lzyzsd:jsbridge:1.0.4'
compile
project
(
':location
Library
'
)
compile
project
(
':location
Component
'
)
// compile(name: 'locationLibrary-debug', ext: 'aar')
}
This diff is collapsed.
Click to expand it.
build.gradle
View file @
519f4e19
...
...
@@ -8,8 +8,8 @@ buildscript {
ext
.
version_code
=
7
ext
.
verson_name
=
"1.3.0"
ext
.
gradle_version
=
'3.0.1'
ext
.
isReleaseMinify
=
tru
e
ext
.
isDebugMinify
=
tru
e
ext
.
isReleaseMinify
=
fals
e
ext
.
isDebugMinify
=
fals
e
ext
.
arouter_api_version
=
'1.3.1'
...
...
This diff is collapsed.
Click to expand it.
location
Library
/.gitignore
→
location
Component
/.gitignore
View file @
519f4e19
File moved
This diff is collapsed.
Click to expand it.
location
Library
/build.gradle
→
location
Component
/build.gradle
View file @
519f4e19
File moved
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
location
Library
/proguard-rules.pro
→
location
Component
/proguard-rules.pro
View file @
519f4e19
File moved
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
location
Library
/src/main/AndroidManifest.xml
→
location
Component
/src/main/AndroidManifest.xml
View file @
519f4e19
File moved
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
location
Library
/src/main/res/values/strings.xml
→
location
Component
/src/main/res/values/strings.xml
View file @
519f4e19
File moved
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
orderCenter/src/main/java/com/dayu/order/ui/fragment/HomeOrderFragment.java
View file @
519f4e19
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
settings.gradle
View file @
519f4e19
...
...
@@ -4,4 +4,4 @@ include ':app',
':messageCenter'
,
':userCenter'
,
':orderCenter'
,
':location
Library
'
':location
Component
'
This diff is collapsed.
Click to expand it.
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