add more page

This commit is contained in:
wangmi 2017-01-02 23:00:06 +08:00
parent 46122af132
commit 0b438748b0
12 changed files with 303 additions and 62 deletions

View File

@ -9,8 +9,8 @@ public class QiYouConstant {
//public final static String GG_API_KEY ="AIzaSyAnkLsprzJIbz_9EVOMcXvlPlxYtIfc0yg"; --office AIzaSyBygKp-tvHCRJFt19NJ2oyq0N6aCUCbKjU
public final static String GG_API_KEY ="AIzaSyBAey0WNbuvc2WeEbCOsGEpp2WW0iw77u0";
public final static String BASE_URL ="https://www.i7lv.net/";// "http://office:8080/qiyouji/"; //http://121.42.55.18:8080/qiyouji/
//public final static String BASE_URL ="https://www.i7lv.com/";//new website
//public final static String BASE_URL ="https://www.i7lv.net/";// "http://office:8080/qiyouji/"; //http://121.42.55.18:8080/qiyouji/
public final static String BASE_URL ="https://www.i7lv.com/";//new website
public final static String BASE_MD_URL = BASE_URL;//+"upload/";
public final static String BASE_STATIC_URL = BASE_URL +"staticmap/";
public final static String TENCENT_APP_ID = "1104563148";

View File

@ -1,8 +1,5 @@
package com.qiyou.mb.android.ui.fragments;
import java.io.IOException;
import java.util.HashMap;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.location.Location;
@ -29,7 +26,6 @@ import android.widget.TextView;
import com.baidu.mapapi.map.MapStatusUpdateFactory;
import com.baidu.mapapi.model.LatLng;
import com.baidu.mapapi.model.LatLngBounds;
import com.baidu.mapapi.model.inner.GeoPoint;
import com.qiyou.mb.android.QiYouConstant;
import com.qiyou.mb.android.R;
import com.qiyou.mb.android.beans.basic.Activity_bean;
@ -44,6 +40,8 @@ import com.qiyou.mb.android.utils.Utils;
import com.qiyou.mb.android.utils.base.IlocationFragment;
import com.qiyou.mb.android.utils.enums.TrackStatus;
import com.qiyou.mb.android.utils.log.QLog;
import java.util.HashMap;
public class TrackStatics_fragment extends TrackMap_fragment implements IlocationFragment {
@ -254,13 +252,18 @@ public class TrackStatics_fragment extends TrackMap_fragment implements Ilocatio
myfootSpec.setIndicator(myfootTab);
myfootSpec.setContent(R.id.tab_map);
tabhost.addTab(myfootSpec);
// TabHost.TabSpec tabmore = tabhost.newTabSpec("more"); // This param will be used as tabId.
// myfootSpec.setIndicator("more");
// myfootSpec.setContent(R.id.tabMore);
// tabhost.addTab(tabmore);
/*TabHost.TabSpec moreSpec = tabhost.newTabSpec(moreTab); // This param will be used as tabId.
TabHost.TabSpec moreSpec = tabhost.newTabSpec(moreTab); // This param will be used as tabId.
moreSpec.setIndicator(moreTab);
moreSpec.setContent(R.id.tab_more);
tabhost.addTab(moreSpec);*/
moreSpec.setContent(R.id.tabMore);
tabhost.addTab(moreSpec);
// TabHost.TabSpec readmeTabSpec = tabhost.newTabSpec(exchangeTab); // This param will be used as tabId.

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" >
<shape>
<gradient android:startColor="#DDDDDD" android:endColor="#EEEEEE"/>
<corners android:radius="1dip" />
</shape>
</item>
<item android:state_focused="true" >
<shape>
<gradient android:startColor="#DDDDDD" android:endColor="#EEEEEE"/>
<corners android:radius="1dip" />
</shape>
</item>
<item android:state_enabled="false">
<shape>
<gradient android:startColor="#DDDDDD" android:endColor="#EEEEEE"/>
<corners android:radius="15dip" />
</shape>
</item>
<item android:state_enabled="true" >
<shape>
<gradient android:startColor="@color/ivory" android:endColor="@color/ivory"/>
<corners android:radius="1dip" />
</shape>
</item>
</selector>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/aliceblue" /> <!-- ivory -->
<corners android:topLeftRadius="3dp"
<solid android:color="@color/aliceblue" /> <!-- ivory -->
<!--<corners android:topLeftRadius="3dp"
android:topRightRadius="3dp"
android:bottomRightRadius="3dp"
android:bottomLeftRadius="3dp"/>
android:bottomLeftRadius="3dp"/> -->
</shape>

View File

@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/ivory" /> <!-- ivory -->
<stroke
android:width="0.02dp"
android:width="0.2dp"
android:color="@color/wheat" /><!-- white linen lightgrey -->
<corners android:topLeftRadius="3dp"
android:topRightRadius="3dp"

View File

@ -29,30 +29,17 @@
<TextView
android:id="@+id/actList_name"
style="@style/ll_title_text"
style="@style/home_head_title"
android:gravity="left"
android:textStyle="bold"
android:text="@string/unvailableValue" />
<!--
<TextView
style="@style/ll_fill_unit"
android:layout_width="wrap_content"
android:layout_marginRight="5dp"
android:layout_weight="0"
android:gravity="right"
android:text="@string/act_svrNo"
/>
-->
<TextView
android:id="@+id/actList_svrNo"
style="@style/ll_fill_unit"
android:layout_width="wrap_content"
android:layout_weight="0"
android:gravity="right"
style="@style/home_head_subtitle"
android:text="@string/unvailableValue"
android:visibility="visible" />
/>
</LinearLayout>
<LinearLayout

View File

@ -28,8 +28,9 @@
<TextView
android:id="@+id/grp_name"
style="@style/ll_title_text"
style="@style/home_head_title"
android:gravity="left"
android:text="@string/unvailableValue" />
<!-- <TextView
@ -42,13 +43,14 @@
-->
<TextView
android:id="@+id/grp_svrno"
style="@style/ll_fill_unit"
android:layout_width="wrap_content"
android:layout_weight="0"
android:gravity="right"
style="@style/home_head_subtitle"
android:text="@string/unvailableValue"
android:visibility="visible" />
/>
</LinearLayout>
<LinearLayout

View File

@ -38,13 +38,11 @@
<TextView
android:id="@+id/usr_svrno"
style="@style/ll_fill_unit"
android:layout_width="wrap_content"
android:layout_weight="0"
android:gravity="right"
style="@style/home_head_subtitle"
android:text="@string/unvailableValue"
android:visibility="visible" />
/>
</LinearLayout>

View File

@ -0,0 +1,167 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tabMore"
style="@style/ll_tab"
android:padding="0dp"
>
<LinearLayout
style="@style/ll_line_note"
android:layout_margin="2dp"
android:layout_marginBottom="0.5dp"
android:layout_marginTop="0.2dp"
>
<TextView
style="@style/text_note"
android:text = "@string/note_detail"
/>
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:fillViewport="true" >
<LinearLayout
style="@style/ll_line_1"
android:orientation="vertical"
>
<LinearLayout
style="@style/ll_line_1"
android:layout_height="100dp"
android:layout_marginTop="-3dp"
>
<LinearLayout style="@style/ll_line_small_l.v" >
<!-- <ImageButton
style="@style/more_button"
android:src="@drawable/icon_databse"
android:id="@+id/imageButton4"
android:layout_weight="1"
android:elevation="5dp"
android:visibility="visible" />-->
<Button
style="@style/more_button"
android:text="@string/frg_list"
android:drawableTop="@drawable/icon_databse"
/>
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
<Button
style="@style/more_button"
android:text="@string/frg_list"
android:drawableTop="@drawable/icon_databse"
/>
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
<Button
style="@style/more_button"
android:text="@string/frg_list"
android:drawableTop="@drawable/icon_databse"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
style="@style/ll_line_1"
android:layout_height="100dp"
android:layout_marginTop="-3dp"
>
<LinearLayout style="@style/ll_line_small_l.v" >
<!-- <ImageButton
style="@style/more_button"
android:src="@drawable/icon_databse"
android:id="@+id/imageButton4"
android:layout_weight="1"
android:elevation="5dp"
android:visibility="visible" />-->
<Button
style="@style/more_button"
android:text="@string/frg_list"
/>
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
<Button
style="@style/more_button"
android:text="@string/frg_list"
/>
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
<Button
style="@style/more_button"
android:text="@string/frg_list"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
style="@style/ll_line_1"
android:layout_height="100dp"
android:layout_marginTop="-3dp"
>
<LinearLayout style="@style/ll_line_small_l.v" >
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
</LinearLayout>
</LinearLayout>
<LinearLayout
style="@style/ll_line_1"
android:layout_height="100dp"
android:layout_marginTop="-3dp"
>
<LinearLayout style="@style/ll_line_small_l.v" >
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
</LinearLayout>
<LinearLayout style="@style/ll_line_small_l.v" >
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@ -1042,8 +1042,9 @@
</LinearLayout>
</ScrollView>
</LinearLayout>
<include layout="@layout/more_functions"/>
<LinearLayout
android:id="@+id/AVSchartTab"
android:layout_width="match_parent"

View File

@ -83,7 +83,7 @@
<string name="save">保存</string>
<string name="reply">回复</string>
<string name="detail">详细</string>
<string name="more">更多</string>
<string name="more">详细</string>
<string name="kick"></string>

View File

@ -2,13 +2,15 @@
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here. <item name="android:homeAsUpIndicator">@drawable/icon_back</item> 返回icon
backward-compatibility can go here.
<item name="android:homeAsUpIndicator">@drawable/icon_back</item> 返回icon
-->
</style>
@ -124,16 +126,20 @@
<style name="relative_tab" parent="ll_tab">
<item name="android:padding">0dp</item>
> <item name="android:paddingBottom">0dp</item>
> </style>
>
<item name="android:paddingBottom">0dp</item>
>
</style>
<style name="ll_tab">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_marginTop">@dimen/tab_top_height</item>
<item name="android:padding">5dp</item>
<item name="android:paddingBottom">0.5dp</item>
<item name="android:orientation">vertical</item>
<item name="android:paddingBottom">0.5dp</item>
<item name="android:orientation">vertical</item>
<!-- <item name= "android:layout_weight">1 </item> -->
<!-- <item name="android:background">@color/red</item> -->
<item name="android:background">@color/ivory</item>
@ -212,7 +218,7 @@
<style name="ll_home_head" parent="ll_line_1">
<item name="android:layout_height">40dp</item>
<item name="android:background">@color/lightslategray</item>
<item name="android:background">@color/lightgrey</item>
<item name="android:layout_marginBottom">0dp</item>
<item name="android:layout_marginRight">-1dp</item>
<item name="android:layout_marginTop">0dp</item>
@ -225,7 +231,7 @@
</style>
<style name="ll_home_sub_head" parent="ll_line_basic">
<item name="android:background">@color/lightslategray</item>
<item name="android:background">@color/lightgrey</item>
<item name="android:layout_marginBottom">0dp</item>
<item name="android:layout_marginRight">-0.5dp</item>
<item name="android:layout_marginTop">0dp</item>
@ -258,6 +264,14 @@
</style>
<style name="ll_line_small_l.v">
<item name="android:orientation">vertical</item>
</style>
<style name="ll_line_small.v">
<item name="android:orientation">vertical</item>
<item name="android:layout_marginRight">-3dp </item>
<item name="android:layout_marginLeft">-3dp </item>
</style>
<style name="ll_line_small.w2">
<item name="android:layout_weight">2 </item>
<!-- <item name= "android:layout_height">match_parent</item> -->
@ -641,17 +655,28 @@
<!-- <item name="android:background">@color/blue</item> -->
<!-- <item name= "android:background">@drawable/linearlayout</item> -->
<!-- <item name= "android:background">@drawable/custom_btn_beige</item> -->
<item name="android:background">@drawable/button_style</item>
<item name="android:background">@drawable/custom_btn_beige</item>
</style>
<style name="more_button" parent="ll_button">
<item name="android:paddingTop">20dp</item>
<item name="android:background">@drawable/button_simple_style</item>
<item name="android:layout_margin">1dp </item>
<item name="android:textSize">@dimen/button_size</item>
<item name="android:textStyle">normal</item>
</style>
<style name="ll_button_top_left" parent="ll_button">
<item name="android:textSize">@dimen/text_size</item>
<item name="android:textStyle">normal</item>
<item name="android:layout_width">20dp</item>
<item name="android:layout_margin">0.5dp </item>
<item name="android:layout_width">35dp</item>
<item name="android:layout_margin">1dp </item>
<item name="android:layout_marginBottom">0dp </item>
<item name="android:layout_marginTop">-1.0dp </item>
<item name="android:paddingLeft">2dp </item>
<item name="android:paddingTop">0dp</item>
<item name="android:paddingRight">2dp </item>
<item name="android:layout_weight">0 </item>
<item name="android:background">@color/aliceblue </item>
@ -699,7 +724,7 @@
<style name="imageButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
@ -709,7 +734,8 @@
<!--
android:textAppearance="?android:attr/textAppearanceLarge"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textAppearance="?android:attr/textAppearanceSmall"
-->
@ -778,6 +804,8 @@ android:textAppearance="?android:attr/textAppearanceSmall"
<style name="tl_title_text.tophead">
<item name="android:textColor">@color/lightslategrey</item>
<item name="android:layout_marginLeft">5dp </item>
<item name="android:layout_gravity">center_vertical </item>
</style>
<style name="ll_fill_unit" parent="ll_unit_basic">
@ -787,7 +815,13 @@ android:textAppearance="?android:attr/textAppearanceSmall"
<item name="android:textSize">@dimen/text_ss_size</item>
<!-- <item name="android:background">@color/red</item> -->
</style>
<style name="home_head_subtitle" parent="ll_fill_unit">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:textSize">@dimen/text_s_size</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:gravity">center_horizontal</item>
</style>
<style name="navigation_text" parent="ll_fill_unit">
<item name="android:textSize">@dimen/text_s_size</item>
</style>
@ -800,9 +834,9 @@ android:textAppearance="?android:attr/textAppearanceSmall"
<item name="android:layout_marginLeft">0dp </item>
<item name="android:paddingRight">0dp </item>
<item name="android:textColor">@color/darkslategrey</item>
<item name="android:layout_gravity">right </item>
<!-- <item name="android:layout_gravity">center_horizontal </item>-->
<item name="android:gravity">right </item>
<item name="android:layout_gravity">center_vertical </item>
<!-- <item name="android:textColor">@color/darkslategrey</item> -->
<!-- <item name= "android:layout_gravity">center</item> -->
<!-- <item name="android:background">@color/red</item> -->
@ -823,6 +857,23 @@ android:textAppearance="?android:attr/textAppearanceSmall"
<item name="android:layout_marginBottom">0dp</item>
<item name="android:layout_marginLeft">5dp</item>
</style>
<style name="home_head_title" parent="ll_title_text">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_weight">0</item>
<item name="android:singleLine">true</item>
<item name="android:textStyle">bold</item>
</style>
<style name="more_title" parent="home_head_title">
<item name="android:layout_width">match_parent</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_marginBottom">5dp</item>
<item name="android:textStyle">normal</item>
<item name="android:layout_marginTop">5dp</item>
<item name="android:textColor">@color/lightslategray</item>
</style>
<style name="txtNotebody" parent="ll_title_text">
<item name="android:padding">5dp</item>