一部分layout

This commit is contained in:
young 2014-05-27 22:38:43 +08:00
parent 2eb671ba19
commit acf0620aad
10 changed files with 602 additions and 0 deletions

141
layout/chat.xml Normal file
View File

@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#dfdfdf">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:background="@drawable/chat_headbg"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="horizontal"
android:weightSum="1"
android:layout_width="match_parent"
android:layout_height="34dp" android:layout_weight="0.00">
<Button
android:id="@+id/goBackBtn"
android:layout_height="25dp"
android:layout_marginLeft="10px"
android:background="@drawable/chat_back_ctrl" android:layout_width="35dp" android:layout_weight="0.05">
</Button>
<TextView
android:id="@+id/parts"
android:layout_marginTop="5px"
android:layout_height="wrap_content"
style="@style/TitleStyle"
android:text=" 当前对话 "
android:layout_width="168dp" android:layout_weight="0.88"/>
<Button
android:id="@+id/closeBtn"
android:background="@drawable/chat_close_ctrl"
android:layout_width="35dp" android:layout_height="25dp"></Button>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:background="@drawable/chat_headbg_mid"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@+id/partsList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/msgs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="40px"
android:layout_marginTop="10px"
style="@style/TitleStyle"
android:text="聊天内容"/>
</LinearLayout>
</LinearLayout>
<ListView
android:id="@+id/messagesListView"
android:layout_width="330dp"
android:layout_gravity="center"
android:scrollbars="vertical"
android:layout_height="80px"
android:background="@android:drawable/editbox_background"
android:layout_weight="0.32"
android:cacheColorHint="#00000000"
android:divider="#42A6DE"
android:dividerHeight="1px"
android:listSelector="@drawable/list_selector"
/>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_marginTop="-10dp"
android:layout_height="wrap_content"
android:background="#c9eaf3"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_height="wrap_content"
android:layout_width="251dp">
<!--
<TextView
android:id="@+id/parts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TitleStyle"
android:text="Text to send "/> -->
<ImageButton
android:id="@+id/icon_add_btn"
android:src="@drawable/icon_add_bg"
android:paddingTop="7px"
android:layout_marginLeft="7px"
android:background="#00000000"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></ImageButton>
<EditText
android:id="@+id/edit"
android:editable="true"
style="@style/editStyle"
android:layout_height="45dp"
android:layout_marginRight="1px"
android:background="@android:drawable/editbox_background"
android:singleLine="true" android:layout_width="match_parent"/>
</LinearLayout>
<Button
android:id="@+id/sendBtn"
android:src="@drawable/sms"
android:layout_marginTop="4dp"
android:layout_marginLeft="7px"
android:text="@string/sendMsg"
android:textColor="#ffffff"
android:background="@drawable/button_send_ctrl"
android:layout_height="37dp" android:layout_width="55dp"/>
<!--
<ImageButton
android:id="@+id/closeBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ics"
android:text="Send"
/> -->
</LinearLayout>
</LinearLayout>

11
layout/chat_reply.xml Normal file
View File

@ -0,0 +1,11 @@
<?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>

24
layout/contact_tab.xml Normal file
View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:id="@+id/contactimage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src= "@drawable/contact"/>
<TextView
android:id="@+id/contactlabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/LabelStyle"
android:text="在线交流 "
android:textColor="@color/dark_grey"
android:layout_marginBottom="20px"
/>
</LinearLayout>

17
layout/feedback.xml Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="标题" />
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/editName"></EditText>
</LinearLayout>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal" android:weightSum="1">
<TextView android:layout_height="wrap_content" android:text="内容" android:layout_width="wrap_content"></TextView>
<EditText android:id="@+id/editAge" android:inputType="number" android:layout_width="match_parent" android:layout_height="101dp"></EditText>
</LinearLayout>
</LinearLayout>

101
layout/guide.xml Normal file
View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/mainRLayout"
android:background="#000000"
>
<org.thinkname.ap.guide.MyScrollLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="visible"
>
<RelativeLayout android:background="@drawable/w01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
</RelativeLayout>
<RelativeLayout android:background="@drawable/w02"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
</RelativeLayout>
<RelativeLayout android:background="@drawable/w03"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<RelativeLayout android:background="@drawable/w04"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<RelativeLayout android:background="@drawable/w05"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
> <Button
android:id="@+id/startBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="98dp"
android:text="Action Pointer"
android:textSize="18sp"
android:textColor="@color/TextColor"
android:background="@drawable/button_bg"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_gravity="center_vertical"
/>
</RelativeLayout>
</org.thinkname.ap.guide.MyScrollLayout>
<LinearLayout
android:orientation="horizontal"
android:id="@+id/llayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="24.0dip"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:visibility="visible">
<ImageView android:clickable="true" android:padding="5.0dip" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/page_indicator_bg" />
<ImageView android:clickable="true" android:padding="5.0dip" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/page_indicator_bg" />
<ImageView android:clickable="true" android:padding="5.0dip" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/page_indicator_bg" />
<ImageView android:clickable="true" android:padding="5.0dip" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/page_indicator_bg" />
<ImageView android:clickable="true" android:padding="5.0dip" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/page_indicator_bg" />
</LinearLayout>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone"
android:id="@+id/animLayout"
>
<LinearLayout
android:id="@+id/leftLayout"
android:layout_width="wrap_content"
android:layout_height="fill_parent">
<ImageView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/whatsnew_left"/>
<ImageView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/whatsnew_left_m"/>
</LinearLayout>
<LinearLayout
android:id="@+id/rightLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/whatsnew_right_m"/>
<ImageView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/whatsnew_right"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>

65
layout/help.xml Normal file
View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root_help"
android:orientation="vertical"
android:layout_height="fill_parent"
android:minWidth="280dip"
android:layout_width="wrap_content"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/titleHelp"
android:paddingRight="8dip"
android:paddingLeft="8dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<WebView
android:id="@+id/webviewHelp"
android:layout_width="fill_parent"
android:layout_height="300dip"
></WebView>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/positiveButtonHelp"
android:layout_marginTop="3dip"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="关闭"
/>
<Button
android:id="@+id/negativeButtonHelp"
android:layout_marginTop="3dip"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="联系作者"
/>
</LinearLayout>
</LinearLayout>

183
layout/homepage.xml Normal file
View File

@ -0,0 +1,183 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_view"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
-->
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingBottom="2px"
>
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
>
<LinearLayout android:id="@+id/contactstabview"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="0px"
android:weightSum="1">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/contactlist_bg1"
android:weightSum="1">
<TextView
android:id="@+id/senderTxtView"
style="@style/MyContactsStyle"
android:layout_height="30dp"
android:text=" 联系人列表"
android:layout_marginTop="8dp"
android:layout_width="260dp"/>
<Button
android:id="@+id/MenuBtn"
android:layout_width="60dp"
android:layout_height="40dp"
android:background="@drawable/button_menu_ocupy"
/>
</LinearLayout>
<TextView
android:id="@+id/undercontactlisttitle"
android:layout_width="fill_parent"
android:background="@drawable/undertitle"
android:layout_height="wrap_content"/>
<view xmlns:android="http://schemas.android.com/apk/res/android"
class="org.thinkname.ap.contact.MultiSelectionListView"
android:id="@+id/contactsList"
android:longClickable="true"
android:focusableInTouchMode="true"
android:background="#f2f2f2"
android:padding="10px"
android:layout_width="fill_parent"
android:layout_height="374dp"
/>
</LinearLayout>
<LinearLayout android:id="@+id/maptabview"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:id="@+id/switchMapBtn"
android:focusable="false"
android:layout_width="fill_parent"
android:background="@drawable/switch_map_btn_ctrl"
android:layout_height="wrap_content"
/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="40px"
android:background="@drawable/map_top_bg">
<Button
android:id="@+id/net_content_btn"
android:background="@drawable/map_menu_ctrl"
android:layout_width="64px"
android:layout_height="40px"
android:layout_gravity="center_horizontal"/>
<Button
android:id="@+id/recordTrack"
android:background="@drawable/map_record_ctrl"
android:layout_width="64px"
android:layout_height="40px"
android:layout_gravity="center_horizontal"/>
<Button
android:id="@+id/moveSwitch"
android:background="@drawable/map_lock_ctrl"
android:layout_width="64px"
android:layout_height="40px"
android:layout_gravity="center_horizontal"/>
<Button
android:id="@+id/focusPoint"
android:background="@drawable/map_trace_ctrl"
android:layout_width="64px"
android:layout_height="40px"
android:layout_gravity="center_horizontal"/>
<Button
android:id="@+id/fullMap"
android:background="@drawable/map_max_ctrl"
android:layout_width="64px"
android:layout_height="40px"
android:layout_gravity="center_horizontal"/>
</LinearLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<view class="com.google.android.maps.MapView"
android:id="@+id/myMapView"
android:apiKey="0OePjJwFt_jJH-MqMa-HgdTjiiZNH8EuK9xdIzA"
android:clickable="true"
android:focusableInTouchMode="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="50px"
android:layout_height="100px"
android:gravity="bottom"
android:layout_marginBottom="10dip"
android:layout_marginRight="10dip"
android:background="#00000000"
>
<Button
android:id="@+id/zoomup"
android:layout_width="35px"
android:layout_height="30px"
android:background="@drawable/btn_zoom_up"/>
<Button
android:id="@+id/zoomdown"
android:layout_width="35px"
android:layout_height="30px"
android:background="@drawable/btn_zoom_down"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</FrameLayout>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:paddingBottom="100px"
android:layout_height="60dp"/>
</LinearLayout>
</TabHost>
<!--
</LinearLayout> -->

17
layout/loading.xml Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/loading1">
<TextView android:layout_height="wrap_content" android:layout_gravity="center_horizontal"
android:layout_width="wrap_content" android:text="正在为您加载,请稍等 "
android:textSize="20sp"
android:layout_marginTop="190dp"
android:textColor="@color/yellow"></TextView>
<org.thinkname.ap.start.LoadingView
android:layout_height="wrap_content"
android:src="@drawable/loader_frame_1"
android:id="@+id/main_imageview"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content">
</org.thinkname.ap.start.LoadingView>
</LinearLayout>

22
layout/signmap.xml Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.google.android.maps.MapView
android:id="@+id/myMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0OePjJwFt_jJH-MqMa-HgdTjiiZNH8EuK9xdIzA"/>
<Button
android:id="@+id/ibsign_back"
android:layout_width="128px"
android:layout_height="40px"
android:layout_gravity="center_horizontal"
android:text="确定并返回"/>
</RelativeLayout>

21
layout/welcome.xml Normal file
View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/welcome_logo">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="390dip"
android:gravity="top">
</RelativeLayout>
</LinearLayout>
</LinearLayout>