PDA

View Full Version : کمک در مورد اسکرول کردن خودکار فرم درمحیط ایکلیپس



sahar_mrd69
دوشنبه 23 تیر 1393, 19:20 عصر
سلام بچه ها.من یه مشکل تو پروژه ام دارم خواهش میکنم اگه بلدین راهنمایی کنید.توی یه فرمم چن تا باتن دارم که وقتی روی امولیتور اجرا میکنم فقط چنتاشون نشون داده میشه در واقع یه جورایی خاصیت اسکرول نداره و کاربر نمیتونه بقیه دکمه ها رو ببینه چیکارباید کرد کل فرم رو ببینه کابر.ممنون از راهنماییتون

smemamian
دوشنبه 23 تیر 1393, 19:31 عصر
به دلایل نامعلومی دوبار پست ارسال شد !

smemamian
دوشنبه 23 تیر 1393, 19:34 عصر
از ScrollView استفاده کنید. نمونه :

<?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"
android:orientation="vertical" >

<ScrollView
android:layout_width="fill_parent"
android:layout_height="150dp"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="one"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="two"
/>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="three"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="four"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="five"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="four"
/>
</LinearLayout>

</ScrollView>

<!-- other views -->

</LinearLayout>