۱۳۹۵/۱۲/۰۵, ۱۲:۴۹ ق.ظ
با سلام و احترام
با توجه به کد زیر نمیدونم چرا هم spinner ها و هم button نمایش داده میشه اما دو textview نه!؟؟
با توجه به کد زیر نمیدونم چرا هم spinner ها و هم button نمایش داده میشه اما دو textview نه!؟؟
کد:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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/content_home"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="ir.safarbazha.safarbazha.Acts.HomeAct"
tools:showIn="@layout/act_home">
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- The main content view -->
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="@dimen/act_flight_objects_padding"
style="@style/TextAppearance.AppCompat.Large">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="@string/choose_departure_city"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="@string/choose_arrival_city"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Spinner
android:id="@+id/departure_city"
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:entries="@array/all_city_iata_codes_and_name"
android:prompt="@string/city_prompt" />
<Spinner
android:id="@+id/arrival_city"
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:entries="@array/all_city_iata_codes_and_name"
android:prompt="@string/city_prompt"/>
</LinearLayout>
<Button
android:id="@+id/btnSubmitFlightActForm"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_images_height"
android:text="@string/flight_search" />
</LinearLayout>
</FrameLayout>
<!-- The navigation drawer -->
<ListView android:id="@+id/drawer_lv"
android:paddingTop="80dp"
android:layout_width="@dimen/drawer_layout_weight"
android:layout_height="match_parent"
android:layout_gravity="right"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="1dp"
style="@style/TextAppearance.AppCompat.Large"
android:background="@color/drawer_bg_color"
android:listSelector="@drawable/drawer_list_selector"
/>
</android.support.v4.widget.DrawerLayout>
</RelativeLayout>