码迷,mamicode.com
首页 > 其他好文 > 详细

切换城市xml

时间:2017-09-27 22:29:36      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:mat   fresh   refresh   ble   bing   location   round   parent   one   

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/city_aqi_show"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary">

<ImageView
android:id="@+id/bing_pic_img"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"/>

<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ScrollView
android:id="@+id/cityAQI_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
android:overScrollMode="never">

<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
<include layout="@layout/title"/>
<include layout="@layout/city_aqi_info"/>
<include layout="@layout/city_rank"/>
</LinearLayout>

</ScrollView>

</android.support.v4.widget.SwipeRefreshLayout>

<fragment
android:id="@+id/choose_area_fragment"
android:name="nubia.cn.cityaqi.ChooseCityFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"/>
</android.support.v4.widget.DrawerLayout>

</FrameLayout>

 

 

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/choose_city"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="150dp"
android:padding="10dp"
android:background="#2E2E2E">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/icon_image"
android:layout_width="70dp"
android:layout_height="70dp"
android:src="@drawable/nav_icon"
android:layout_centerInParent="true"/>

<TextView
android:id="@+id/username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/mail"
android:text="何春江"
android:textColor="#FFF"
android:textSize="14sp"/>

<TextView
android:id="@+id/mail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="chunjiang_he@163.com"
android:textColor="#FFF"
android:textSize="14sp"/>
</RelativeLayout>

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="60dp"
android:padding="10dp"
android:background="#2E2E2E">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:text="我的城市"
android:textSize="25dp"
android:textColor="#fff"/>

<ImageButton
android:id="@+id/add_city"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/add_city_button"
android:layout_weight="10" />

</LinearLayout>

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:background="#2E2E2E">
<TextView
android:id="@+id/location"
android:layout_width="62dp"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:textSize="18dp"
android:textColor="#fff"/>
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/location"
android:layout_gravity="center"/>
</LinearLayout>

<ListView
android:id="@+id/myCites_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#2E2E2E"/>

</LinearLayout>

切换城市xml

标签:mat   fresh   refresh   ble   bing   location   round   parent   one   

原文地址:http://www.cnblogs.com/tianzijiaozi/p/7604264.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!