提交 c65b9a6d 编写于 作者: V Vergil

upload

上级 720aef26
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".MainActivity"
tools:showIn="@layout/app_bar_main">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.baidu.mapapi.map.MapView
android:id="@+id/bmapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true" />
<!--<LinearLayout-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentRight="true"-->
<!--android:layout_marginTop="80dip"-->
<!--android:background="#D000"-->
<!--android:minWidth="100dip"-->
<!--android:orientation="vertical"-->
<!--android:padding="2dp" >-->
<!--<RadioGroup-->
<!--android:id="@+id/radioGroup"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:contentDescription="定位icon" >-->
<!--<RadioButton-->
<!--android:id="@+id/defaulticon"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:checked="true"-->
<!--android:text="默认图标" >-->
<!--</RadioButton>-->
<!--<RadioButton-->
<!--android:id="@+id/customicon"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="自定义图标" >-->
<!--</RadioButton>-->
<!--</RadioGroup>-->
<!--</LinearLayout>-->
<!--<Button-->
<!--android:id="@+id/button1"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentRight="true"-->
<!--android:layout_alignParentTop="true"-->
<!--android:layout_marginRight="25dp"-->
<!--android:layout_marginTop="10dip" />-->
<RadioGroup
android:id="@+id/RadioGroupLocType"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="5dp"
android:layout_marginTop="4dip"
android:orientation="vertical">
<RadioButton
android:id="@+id/normalloc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="正常" />
<RadioButton
android:id="@+id/trackloc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="跟踪" />
<RadioButton
android:id="@+id/compassloc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="罗盘" />
</RadioGroup>
<RadioGroup
android:id="@+id/RadioGroup"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="5dp"
android:layout_marginTop="100dip"
android:orientation="vertical">
<RadioButton
android:id="@+id/normal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="普通图" />
<RadioButton
android:id="@+id/statellite"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="卫星图" />
</RadioGroup>
<CheckBox
android:id="@+id/traffice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="5dp"
android:layout_marginTop="4dip"
android:layout_weight="1"
android:checked="false"
android:onClick="setTraffic"
android:text="路况图" />
<CheckBox
android:id="@+id/baiduHeatMap"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="4dip"
android:layout_weight="1"
android:checked="false"
android:onClick="setBaiduHeatMap"
android:text="热力图" />
</RelativeLayout>
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:orientation="vertical" >-->
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginBottom="5dp"-->
<!--android:layout_weight="1"-->
<!--android:orientation="horizontal" >-->
<!--<fragment-->
<!--android:id="@+id/map1"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginRight="5dp"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--<fragment-->
<!--android:id="@+id/map2"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--android:orientation="horizontal" >-->
<!--<fragment-->
<!--android:id="@+id/map3"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginRight="5dp"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--<fragment-->
<!--android:id="@+id/map4"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--</LinearLayout>-->
<!--</LinearLayout>-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="Hello World!"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintLeft_toLeftOf="parent"-->
<!--app:layout_constraintRight_toRightOf="parent"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<com.baidu.mapapi.map.MapView-->
<!--android:id="@+id/bmapView"-->
<!--android:layout_width="fill_parent"-->
<!--android:layout_height="fill_parent"-->
<!--android:clickable="true" />-->
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".MainActivity"
tools:showIn="@layout/app_bar_main">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.baidu.mapapi.map.MapView
android:id="@+id/bmapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true" />
<!--<LinearLayout-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentRight="true"-->
<!--android:layout_marginTop="80dip"-->
<!--android:background="#D000"-->
<!--android:minWidth="100dip"-->
<!--android:orientation="vertical"-->
<!--android:padding="2dp" >-->
<!--<RadioGroup-->
<!--android:id="@+id/radioGroup"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:contentDescription="定位icon" >-->
<!--<RadioButton-->
<!--android:id="@+id/defaulticon"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:checked="true"-->
<!--android:text="默认图标" >-->
<!--</RadioButton>-->
<!--<RadioButton-->
<!--android:id="@+id/customicon"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="自定义图标" >-->
<!--</RadioButton>-->
<!--</RadioGroup>-->
<!--</LinearLayout>-->
<!--<Button-->
<!--android:id="@+id/button1"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentRight="true"-->
<!--android:layout_alignParentTop="true"-->
<!--android:layout_marginRight="25dp"-->
<!--android:layout_marginTop="10dip" />-->
<RadioGroup
android:id="@+id/RadioGroupLocType"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="5dp"
android:layout_marginTop="4dip"
android:orientation="vertical">
<RadioButton
android:id="@+id/normalloc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="正常" />
<RadioButton
android:id="@+id/trackloc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="跟踪" />
<RadioButton
android:id="@+id/compassloc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="罗盘" />
</RadioGroup>
<RadioGroup
android:id="@+id/RadioGroup"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="5dp"
android:layout_marginTop="100dip"
android:orientation="vertical">
<RadioButton
android:id="@+id/normal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="普通图" />
<RadioButton
android:id="@+id/statellite"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="卫星图" />
</RadioGroup>
<CheckBox
android:id="@+id/traffice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="5dp"
android:layout_marginTop="4dip"
android:layout_weight="1"
android:checked="false"
android:onClick="setTraffic"
android:text="路况图" />
<CheckBox
android:id="@+id/baiduHeatMap"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="4dip"
android:layout_weight="1"
android:checked="false"
android:onClick="setBaiduHeatMap"
android:text="热力图" />
</RelativeLayout>
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:orientation="vertical" >-->
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginBottom="5dp"-->
<!--android:layout_weight="1"-->
<!--android:orientation="horizontal" >-->
<!--<fragment-->
<!--android:id="@+id/map1"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginRight="5dp"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--<fragment-->
<!--android:id="@+id/map2"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--android:orientation="horizontal" >-->
<!--<fragment-->
<!--android:id="@+id/map3"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginRight="5dp"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--<fragment-->
<!--android:id="@+id/map4"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--class="com.baidu.mapapi.map.SupportMapFragment" />-->
<!--</LinearLayout>-->
<!--</LinearLayout>-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="Hello World!"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintLeft_toLeftOf="parent"-->
<!--app:layout_constraintRight_toRightOf="parent"-->
<!--app:layout_constraintTop_toTopOf="parent" />-->
<!--<com.baidu.mapapi.map.MapView-->
<!--android:id="@+id/bmapView"-->
<!--android:layout_width="fill_parent"-->
<!--android:layout_height="fill_parent"-->
<!--android:clickable="true" />-->
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/floatButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/btn_bottom_confirm_bg"
android:padding="2dp"
<?xml version="1.0" encoding="utf-8"?>
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/floatButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/btn_bottom_confirm_bg"
android:padding="2dp"
android:text="CLICK ME" />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tipText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:text="全国" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<SearchView
android:id="@+id/searchView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_gravity="end|bottom"
android:iconifiedByDefault="false"
android:queryHint="请输入搜索内容" />
</LinearLayout>
</LinearLayout>
<ListView
android:id="@+id/city_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
<!--<ListView-->
<!--android:id="@+id/hotcity_list_view"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="0dp"></ListView>-->
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tipText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:text="全国" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<SearchView
android:id="@+id/searchView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_gravity="end|bottom"
android:iconifiedByDefault="false"
android:queryHint="请输入搜索内容" />
</LinearLayout>
</LinearLayout>
<ListView
android:id="@+id/city_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
<!--<ListView-->
<!--android:id="@+id/hotcity_list_view"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="0dp"></ListView>-->
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dip" >
<TextView
android:id="@+id/titleTmp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="已下载城市 " />
<ListView
android:id="@+id/localmaplist"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dip" >
<TextView
android:id="@+id/titleTmp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="已下载城市 " />
<ListView
android:id="@+id/localmaplist"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--<LinearLayout-->
<!--android:layout_width="fill_parent"-->
<!--android:layout_height="100dp"-->
<!--android:layout_gravity="center_vertical"-->
<!--android:layout_weight="1"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal">-->
<!--<android.support.v7.widget.CardView-->
<!--xmlns:app="http://schemas.android.com/apk/res-auto"-->
<!--android:id="@+id/cardview"-->
<!--app:cardElevation="5dp"-->
<!--app:cardCornerRadius="13dp"-->
<!--app:cardBackgroundColor="@color/darkslategray"-->
<!--android:layout_margin="8dp"-->
<!--android:layout_gravity="center"-->
<!--android:layout_height="90dp"-->
<!--android:layout_width="match_parent">-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/LocationID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"/>
<TextView
android:id="@+id/LoctionText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="中国"
android:textSize="20sp" />
<TextView
android:id="@+id/TimeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2018-08-10 13:13:13" />
<TextView
android:id="@+id/WGSLatLngText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="[经度:104.123456789 纬度:30.123456789]" />
<TextView
android:id="@+id/BDLatLngText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="[经度:104.123456789 纬度:30.123456789]" />
</LinearLayout>
<!--</android.support.v7.widget.CardView>-->
<!--</LinearLayout>-->
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--<LinearLayout-->
<!--android:layout_width="fill_parent"-->
<!--android:layout_height="100dp"-->
<!--android:layout_gravity="center_vertical"-->
<!--android:layout_weight="1"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal">-->
<!--<android.support.v7.widget.CardView-->
<!--xmlns:app="http://schemas.android.com/apk/res-auto"-->
<!--android:id="@+id/cardview"-->
<!--app:cardElevation="5dp"-->
<!--app:cardCornerRadius="13dp"-->
<!--app:cardBackgroundColor="@color/darkslategray"-->
<!--android:layout_margin="8dp"-->
<!--android:layout_gravity="center"-->
<!--android:layout_height="90dp"-->
<!--android:layout_width="match_parent">-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/LocationID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"/>
<TextView
android:id="@+id/LoctionText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="中国"
android:textSize="20sp" />
<TextView
android:id="@+id/TimeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2018-08-10 13:13:13" />
<TextView
android:id="@+id/WGSLatLngText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="[经度:104.123456789 纬度:30.123456789]" />
<TextView
android:id="@+id/BDLatLngText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="[经度:104.123456789 纬度:30.123456789]" />
</LinearLayout>
<!--</android.support.v7.widget.CardView>-->
<!--</LinearLayout>-->
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal">
<TextView
android:id="@+id/no_record_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/norecord"
android:textSize="17sp"
android:padding="10dp"
android:textAlignment="center"
android:layout_gravity="center"
android:visibility="gone"/>
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/list_view">
</ListView>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal">
<TextView
android:id="@+id/no_record_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/norecord"
android:textSize="17sp"
android:padding="10dp"
android:textAlignment="center"
android:layout_gravity="center"
android:visibility="gone"/>
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/list_view">
</ListView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="5dip">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="城市" />
<TextView
android:id="@+id/update"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text=""
android:textColor="@color/colorAccent" />
<TextView
android:id="@+id/ratio"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="" />
<Button
android:id="@+id/control"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="更新"
android:visibility="invisible" />
<Button
android:id="@+id/remove"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:enabled="false"
android:text="删除" />
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="5dip">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="城市" />
<TextView
android:id="@+id/update"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text=""
android:textColor="@color/colorAccent" />
<TextView
android:id="@+id/ratio"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="" />
<Button
android:id="@+id/control"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="更新"
android:visibility="invisible" />
<Button
android:id="@+id/remove"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:enabled="false"
android:text="删除" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="@dimen/nav_header_height"
android:background="@drawable/side_nav_bar"
android:gravity="bottom"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:theme="@style/ThemeOverlay.AppCompat.Dark">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/nav_header_desc"
android:paddingTop="@dimen/nav_header_vertical_spacing"
app:srcCompat="@mipmap/ic_launcher_round" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
android:text="@string/nav_header_title"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nav_header_subtitle" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="@dimen/nav_header_height"
android:background="@drawable/side_nav_bar"
android:gravity="bottom"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:theme="@style/ThemeOverlay.AppCompat.Dark">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/nav_header_desc"
android:paddingTop="@dimen/nav_header_vertical_spacing"
app:srcCompat="@mipmap/ic_launcher_round" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
android:text="@string/nav_header_title"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nav_header_subtitle" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--<LinearLayout-->
<!--android:layout_width="fill_parent"-->
<!--android:layout_height="100dp"-->
<!--android:layout_gravity="center_vertical"-->
<!--android:layout_weight="1"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal">-->
<!--<android.support.v7.widget.CardView-->
<!--xmlns:app="http://schemas.android.com/apk/res-auto"-->
<!--android:id="@+id/cardview"-->
<!--app:cardElevation="5dp"-->
<!--app:cardCornerRadius="13dp"-->
<!--app:cardBackgroundColor="@color/darkslategray"-->
<!--android:layout_margin="8dp"-->
<!--android:layout_gravity="center"-->
<!--android:layout_height="90dp"-->
<!--android:layout_width="match_parent">-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_weight="4"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/CityNameText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="成都市"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:layout_width="80dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_marginRight="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/CitySizeText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="12.5M" />
</LinearLayout>
<TextView
android:id="@+id/CityIDText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:visibility="gone" />
<!--<TextView-->
<!--android:id="@+id/BDLatLngText"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!---->
<!--android:text="[经度:104.123456789 纬度:30.123456789]" />-->
</LinearLayout>
<!--</android.support.v7.widget.CardView>-->
<!--</LinearLayout>-->
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--<LinearLayout-->
<!--android:layout_width="fill_parent"-->
<!--android:layout_height="100dp"-->
<!--android:layout_gravity="center_vertical"-->
<!--android:layout_weight="1"-->
<!--android:gravity="center_vertical"-->
<!--android:orientation="horizontal">-->
<!--<android.support.v7.widget.CardView-->
<!--xmlns:app="http://schemas.android.com/apk/res-auto"-->
<!--android:id="@+id/cardview"-->
<!--app:cardElevation="5dp"-->
<!--app:cardCornerRadius="13dp"-->
<!--app:cardBackgroundColor="@color/darkslategray"-->
<!--android:layout_margin="8dp"-->
<!--android:layout_gravity="center"-->
<!--android:layout_height="90dp"-->
<!--android:layout_width="match_parent">-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_weight="4"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/CityNameText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="成都市"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:layout_width="80dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_marginRight="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/CitySizeText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="12.5M" />
</LinearLayout>
<TextView
android:id="@+id/CityIDText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:visibility="gone" />
<!--<TextView-->
<!--android:id="@+id/BDLatLngText"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!---->
<!--android:text="[经度:104.123456789 纬度:30.123456789]" />-->
</LinearLayout>
<!--</android.support.v7.widget.CardView>-->
<!--</LinearLayout>-->
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!--app:tabMode="scrollable" 这个属性我在代码中设置了-->
<!-- tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);-->
<android.support.design.widget.TabLayout
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
android:background="@android:color/white" />
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!--app:tabMode="scrollable" 这个属性我在代码中设置了-->
<!-- tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);-->
<android.support.design.widget.TabLayout
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
android:background="@android:color/white" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:layout_margin="7dp"
android:orientation="vertical">
<TextView
android:id="@+id/poi_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="name"
android:textSize="20sp" />
<TextView
android:id="@+id/poi_addr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="addr" />
<TextView
android:id="@+id/poi_longitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="lng"
android:visibility="gone" />
<TextView
android:id="@+id/poi_latitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="lat"
android:visibility="gone" />
</LinearLayout>
<!--</android.support.v7.widget.CardView>-->
<!--</LinearLayout>-->
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:card_view="http://schemas.android.com/tools"
android:background="#fff">
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:card_view="http://schemas.android.com/tools"
android:background="#fff">
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<ImageView
android:id="@+id/startImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/welcome"
android:contentDescription="@string/startImgDesp" />
<Button
android:id="@+id/startButton"
android:layout_width="match_parent"
android:layout_height="30dp"
android:background="@drawable/btn_bottom_confirm_bg"
android:gravity="center"
android:text="@string/startUse"
android:textSize="17sp"
android:textAlignment="center"
android:layout_gravity="bottom|center"
android:layout_margin="96dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:textSize="13sp"
android:text="@string/author"
android:layout_margin="3dp"
tools:ignore="SmallSp" />
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<ImageView
android:id="@+id/startImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/welcome"
android:contentDescription="@string/startImgDesp" />
<Button
android:id="@+id/startButton"
android:layout_width="match_parent"
android:layout_height="30dp"
android:background="@drawable/btn_bottom_confirm_bg"
android:gravity="center"
android:text="@string/startUse"
android:textSize="17sp"
android:textAlignment="center"
android:layout_gravity="bottom|center"
android:layout_margin="96dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:textSize="13sp"
android:text="@string/author"
android:layout_margin="3dp"
tools:ignore="SmallSp" />
</FrameLayout>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册