PDA

View Full Version : اسکرول بار



moh_sen201
سه شنبه 19 شهریور 1392, 22:14 عصر
سلام به دوستان خوبم!
من تو برنامه از یه اکشن بار استفاده کردم!
حالا که از اسکرول استفاده میکنم اکشن بارم میره بالا!
چیکار کنم وقتی میخام تکست باکسمو میارم پایین اکشن بارم اونجا بمونه؟

کدم اینه !



<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<RelativeLayout
android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<com.markupartist.android.widget.ActionBar
android:id="@+id/actionbar"
style="@style/ActionBar" />

<TextView
android:id="@+id/fal_txt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center" />
</LinearLayout>
</RelativeLayout>

</ScrollView>

shahin bahari
سه شنبه 19 شهریور 1392, 23:03 عصر
خوب شما همه چیز رو داخل اسکرول گذاشتید.یه Linear layout بسازید و در بالاش action bar رو قرار بدید و زیرش یه اسکرول ویو بزارید. حالا هر المنتی که میخواید رو به اسکرول ویو اضافه کنید.