提交 132ac5c8 编写于 作者: 张灿阳

fix bug

上级 13321da8
<?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>
......
......@@ -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 {
......
[{"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
......@@ -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();
}
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册