بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
وجود لیست ویو و باتن در یک اکتیویتی
بنده میخوام درون اکتیویتی که دارم و درون از لیست ویو استفاده کردم دو عدد باتن هم در بالای صفحه داشته باشم.ولی باتن ها نمایش داده نمیشه.چیکار باید بکنم؟
برای این سوال 1 پاسخ وجود دارد.
پاسخ به سوال
مسعود فرمانی
9 سال پیش
+1
0
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="64dp"
android:id="@+id/linear"
>
<Button
android:layout_width="0dp"
android:layout_height="match_parent"
android:text="New Button"
android:id="@+id/button"
android:layout_weight="1"
android:layout_margin="4dp"
/>
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:text="New Button"
android:id="@+id/button2"
android:layout_margin="4dp"
/>
</LinearLayout>
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/listView"
android:layout_below="@+id/linear"
/>
</RelativeLayout>
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .