سورس کد اندروید
دو زبانه کردن help و یا هر قسمتی از برنامه بوسیله RadioButton در B4A
رایگان
مشاهده کد
در این سورس کد از آرشیو یاهو۹۸، «دو زبانه کردن help و یا هر قسمتی از برنامه بوسیله RadioButton» را بهصورت کامل و کاربردی یاد میگیرید و میتوانید بلافاصله در پروژه بیسیک۴اندروید خود استفاده کنید.
✨ نکات مهم:
• کد آماده و تستشده (1 قطعهکد)
• کار با کتابخانههای: File
• فایل ضمیمه (سورس/نمونه) همراه پست
📚 کتابخانههای مورد نیاز:
File
(از مسیر Libraries در محیط B4A تیک بزنید.)
🚀 نحوه استفاده:
فایل سورس را دانلود و در B4A باز کنید؛ مسیرها و تنظیمات را مطابق توضیحات بالا اعمال کنید و خروجی APK بگیرید.
📥 فایلهای ضمیمه:
• لینک zip (s6.picofile.com): http://s6.picofile.com/file/8286005142/select_zaban.zip.html
| دستهبندی | سورس کد اندروید |
| تاریخ انتشار | ۲۷ شهریور ۱۴۰۵ - ۰۲:۳۷ |
| تعداد بازدید | ۳ |
| تعداد فروش | ۰ |
| فرمت تحویل | فایل دانلودی (بعد از پرداخت آنی فعال میشود) |
| پشتیبانی | تیکت پشتیبانی در پنل کاربری |
هنوز نظری ثبت نشده است. اولین نفر باشید!
برای ثبت نظر وارد شوید. (ثبت نظر پس از خرید فعال میشود)
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private RadioButton1 As RadioButton
Private RadioButton2 As RadioButton
Private Button1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub RadioButton2_CheckedChange(Checked As Boolean)
If Checked Then
File.Copy(File.DirAssets,"en.txt",File.DirInternal,"en.txt")
If File.Exists(File.DirInternal,"fa.txt") Then
File.Delete(File.DirInternal,"fa.txt")
End If
End If
End Sub
Sub RadioButton1_CheckedChange(Checked As Boolean)
If Checked Then
File.Copy(File.DirAssets,"fa.txt",File.DirInternal,"fa.txt")
If File.Exists(File.DirInternal,"en.txt") Then
File.Delete(File.DirInternal,"en.txt")
End If
End If
End Sub
Sub Button1_Click
StartActivity(mainasli)
End Sub