انجمن سایت کلیدستان


رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
ایجاد اسکرول ویو

ایجاد اسکرول ویو

#3
سلام
بفرما دوست عزیز از این کد استفاده کن:

کد پی‌اچ‌پی:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 
   xmlns:tools="http://schemas.android.com/tools"
 
   android:layout_width="match_parent"
 
   android:layout_height="match_parent"
 
   android:orientation="vertical"
 
   tools:context=".Main"
 
   android:gravity="center_horizontal" 
 
  

<
ScrollView
    android
:layout_width="match_parent"
 
   android:layout_height="wrap_content" >

<
RelativeLayout
    android
:layout_width="match_parent"
 
   android:layout_height="match_parent"
 
   android:minHeight="1000dip" >

 
          <Button
               android
:id="@+id/btn_2"
 
              android:layout_width="200dp"
 
              android:layout_height="40.0dip"
 
              android:layout_alignLeft="@+id/btn_1"
 
              android:layout_below="@+id/btn_1"
 
              android:gravity="center"
 
              android:text="t2"
 
              android:textSize="22sp" />

 
          <Button
               android
:id="@+id/btn_3"
 
              android:layout_width="200dp"
 
              android:layout_height="40.0dip"
 
              android:layout_alignLeft="@+id/btn_2"
 
              android:layout_below="@+id/btn_2"
 
              android:gravity="center"
 
              android:text="t3"
 
              android:textSize="22sp" />

 
          <Button
               android
:id="@+id/btn_4"
 
              android:layout_width="200dp"
 
              android:layout_height="40.0dip"
 
              android:layout_alignLeft="@+id/btn_3"
 
              android:layout_below="@+id/btn_3"
 
              android:gravity="center"
 
              android:text="t4"
 
              android:textSize="22sp" />

 
          <Button
               android
:id="@+id/btn_5"
 
              android:layout_width="200dp"
 
              android:layout_height="40.0dip"
 
              android:layout_alignLeft="@+id/btn_4"
 
              android:layout_below="@+id/btn_4"
 
              android:gravity="center"
 
              android:text="t5"
 
              android:textSize="22sp" />

 
          <Button
               android
:id="@+id/btn_7"
 
              android:layout_width="200dp"
 
              android:layout_height="40.0dip"
 
              android:layout_alignLeft="@+id/btn_6"
 
              android:layout_below="@+id/btn_6"
 
              android:layout_marginBottom="20dp"
 
              android:gravity="center"
 
              android:text="t7"
 
              android:textSize="22sp" />

 
          <Button
               android
:id="@+id/btn_6"
 
              android:layout_width="200dp"
 
              android:layout_height="40.0dip"
 
              android:layout_alignLeft="@+id/btn_5"
 
              android:layout_below="@+id/btn_5"
 
              android:gravity="center"
 
              android:text="t6"
 
              android:textSize="22sp" />

 
          <Button
               android
:id="@+id/btn_1"
 
              android:layout_width="200dp"
 
              android:layout_height="40.0dip"
 
              android:layout_alignParentTop="true"
 
              android:layout_centerHorizontal="true"
 
              android:layout_marginTop="41dp"
 
              android:gravity="center"
 
              android:text="t1"
 
              android:textSize="22sp"
 
              android:topLeftRadius="20dp" />

 
          </RelativeLayout>
 
          
           
</ScrollView>

</
LinearLayout
پاسخ
 سپاس شده توسط mahdi10539 ، شماره مجازی امارات ، تلگرام ضد فیلتر 2023


پیام‌های این موضوع
ایجاد اسکرول ویو - توسط تازه کار - ۱۳۹۴/۱۲/۱۲, ۱۰:۵۱ ب.ظ
RE: ایجاد اسکرول ویو - توسط AliParsa - ۱۳۹۴/۱۲/۱۳, ۱۲:۲۰ ق.ظ
RE: ایجاد اسکرول ویو - توسط sinabelle - ۱۳۹۴/۱۲/۱۳, ۰۱:۳۴ ق.ظ

پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان