Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kaoshuangli9552
mockgps
提交
132ac5c8
M
mockgps
项目概览
kaoshuangli9552
/
mockgps
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mockgps
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
132ac5c8
编写于
2月 20, 2019
作者:
张
张灿阳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug
上级
13321da8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
65 addition
and
5 deletion
+65
-5
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser
+0
-0
.idea/misc.xml
.idea/misc.xml
+29
-0
app/build.gradle
app/build.gradle
+1
-1
app/release/MockGPS_v1.9.4.190219_beta.apk
app/release/MockGPS_v1.9.4.190219_beta.apk
+0
-0
app/release/output.json
app/release/output.json
+1
-1
app/src/main/java/com/example/mockgps/PageFragment2.java
app/src/main/java/com/example/mockgps/PageFragment2.java
+20
-2
app/src/main/res/layout/fragment_page_2.xml
app/src/main/res/layout/fragment_page_2.xml
+14
-1
未找到文件。
.idea/caches/build_file_checksums.ser
浏览文件 @
132ac5c8
无法预览此类型文件
.idea/misc.xml
浏览文件 @
132ac5c8
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"NullableNotNullManager"
>
<option
name=
"myDefaultNullable"
value=
"android.support.annotation.Nullable"
/>
<option
name=
"myDefaultNotNull"
value=
"android.support.annotation.NonNull"
/>
<option
name=
"myNullables"
>
<value>
<list
size=
"7"
>
<item
index=
"0"
class=
"java.lang.String"
itemvalue=
"org.jetbrains.annotations.Nullable"
/>
<item
index=
"1"
class=
"java.lang.String"
itemvalue=
"javax.annotation.Nullable"
/>
<item
index=
"2"
class=
"java.lang.String"
itemvalue=
"javax.annotation.CheckForNull"
/>
<item
index=
"3"
class=
"java.lang.String"
itemvalue=
"edu.umd.cs.findbugs.annotations.Nullable"
/>
<item
index=
"4"
class=
"java.lang.String"
itemvalue=
"android.support.annotation.Nullable"
/>
<item
index=
"5"
class=
"java.lang.String"
itemvalue=
"androidx.annotation.Nullable"
/>
<item
index=
"6"
class=
"java.lang.String"
itemvalue=
"androidx.annotation.RecentlyNullable"
/>
</list>
</value>
</option>
<option
name=
"myNotNulls"
>
<value>
<list
size=
"6"
>
<item
index=
"0"
class=
"java.lang.String"
itemvalue=
"org.jetbrains.annotations.NotNull"
/>
<item
index=
"1"
class=
"java.lang.String"
itemvalue=
"javax.annotation.Nonnull"
/>
<item
index=
"2"
class=
"java.lang.String"
itemvalue=
"edu.umd.cs.findbugs.annotations.NonNull"
/>
<item
index=
"3"
class=
"java.lang.String"
itemvalue=
"android.support.annotation.NonNull"
/>
<item
index=
"4"
class=
"java.lang.String"
itemvalue=
"androidx.annotation.NonNull"
/>
<item
index=
"5"
class=
"java.lang.String"
itemvalue=
"androidx.annotation.RecentlyNonNull"
/>
</list>
</value>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_7"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
...
...
app/build.gradle
浏览文件 @
132ac5c8
...
...
@@ -7,7 +7,7 @@ android {
minSdkVersion
14
targetSdkVersion
27
versionCode
1
versionName
"1.9.
3
"
versionName
"1.9.
4
"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes
{
...
...
app/release/MockGPS_v1.9.4.190219_beta.apk
浏览文件 @
132ac5c8
无法预览此类型文件
app/release/output.json
浏览文件 @
132ac5c8
[{
"outputType"
:{
"type"
:
"APK"
},
"apkInfo"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
1
,
"versionName"
:
"1.9.3"
,
"enabled"
:
true
,
"outputFile"
:
"app-release.apk"
,
"fullName"
:
"release"
,
"baseName"
:
"release"
},
"path"
:
"app-release.apk"
,
"properties"
:{}}]
\ No newline at end of file
[{
"outputType"
:{
"type"
:
"APK"
},
"apkInfo"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
1
,
"versionName"
:
"1.9.4"
,
"enabled"
:
true
,
"outputFile"
:
"app-release.apk"
,
"fullName"
:
"release"
,
"baseName"
:
"release"
},
"path"
:
"app-release.apk"
,
"properties"
:{}}]
\ No newline at end of file
app/src/main/java/com/example/mockgps/PageFragment2.java
浏览文件 @
132ac5c8
...
...
@@ -28,7 +28,8 @@ public class PageFragment2 extends Fragment {
public
static
final
String
ARG_PAGE
=
"ARG_PAGE"
;
private
int
mPage
;
public
static
TextView
noOfflineMap
;
public
static
ListView
localMapListView
;
// private MKOfflineMap mOffline = null;
public
static
ArrayList
<
MKOLUpdateElement
>
localMapList
=
null
;
...
...
@@ -64,9 +65,18 @@ public class PageFragment2 extends Fragment {
localMapList
=
new
ArrayList
<
MKOLUpdateElement
>();
}
//init list view
ListView
localMapListView
=
(
ListView
)
view
.
findViewById
(
R
.
id
.
localmaplist
);
localMapListView
=
(
ListView
)
view
.
findViewById
(
R
.
id
.
localmaplist
);
noOfflineMap
=(
TextView
)
view
.
findViewById
(
R
.
id
.
no_offline_map
);
lAdapter
=
new
LocalMapAdapter
();
localMapListView
.
setAdapter
(
lAdapter
);
//
if
(
localMapList
.
size
()!=
0
){
localMapListView
.
setVisibility
(
View
.
VISIBLE
);
noOfflineMap
.
setVisibility
(
View
.
GONE
);
}
else
{
localMapListView
.
setVisibility
(
View
.
GONE
);
noOfflineMap
.
setVisibility
(
View
.
VISIBLE
);
}
return
view
;
}
...
...
@@ -75,6 +85,14 @@ public class PageFragment2 extends Fragment {
if
(
localMapList
==
null
)
{
localMapList
=
new
ArrayList
<
MKOLUpdateElement
>();
}
//
if
(
localMapList
.
size
()!=
0
){
localMapListView
.
setVisibility
(
View
.
VISIBLE
);
noOfflineMap
.
setVisibility
(
View
.
GONE
);
}
else
{
localMapListView
.
setVisibility
(
View
.
GONE
);
noOfflineMap
.
setVisibility
(
View
.
VISIBLE
);
}
lAdapter
.
notifyDataSetChanged
();
}
...
...
app/src/main/res/layout/fragment_page_2.xml
浏览文件 @
132ac5c8
...
...
@@ -14,6 +14,19 @@
<ListView
android:id=
"@+id/localmaplist"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/no_offline_map"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginTop=
"100dp"
android:textSize=
"25dp"
android:textColor=
"@color/half_black"
android:visibility=
"gone"
android:text=
"暂无离线地图"
/>
</LinearLayout>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录