رفتن به مطلب

Salar82

کاربر فعال
  • تعداد ارسال ها

    302
  • تاریخ عضویت

  • آخرین بازدید

  • روز های برد

    32

آخرین بار برد Salar82 در 21 تیر

Salar82 یکی از رکورد داران بیشترین تعداد پسند مطالب است !

اعتبار در سایت

238 عالی

4 دنبال کننده

درباره Salar82

  • درجه
    کاربر حرفه ای
  • تاریخ تولد 22 شهریور 1382

مشخصات پروفایل

  • محل زندگی
    کازرون
  • محل تولد
    شیراز
  • علاقه مندی ها
    برنامه نویسی

آخرین بازدید کنندگان نمایه

685 بازدید کننده نمایه
  1. سلام اروری که میده، Virtualization روسیستم شما فعال نیست و باید اونو تو BIOS سیستمتون فعال کنید. برای اینکه مطمئن بشید که Virtualization فعال هست، Task Manager رو باز کنید و More Details رو انتخاب کنید. از منوی Performance ببینید فعال هست یانه. مثل زیر: برای فعال کردنش هم کافیه به Bios برید و از اونجا فعالش کنید. سرچ کنید آموزشش هست. ولی پیشنهاد منم اینه که از لنوکس استفاده کنید موفق باشید
  2. سلام این اولین آموزش بنده در جاوا هست دستور رایج و اصلی if در جاوا بشکل زیره: if (Condition1) { //TODO } else if (Condition2) { //TODO } else { //TODO } اما یه سینتکس دیگه‌ای هم داره که خودم خیلی ازش خوشم میاد: (condition) ? expressionTrue : expressionFalse; اگر شرط(Condition) درست بود، expressionTrue اجرا میشه و اگر شرط برقرار نبود، expressionFalse اجرا میشه. به همین سادگی. توجه کنید که : و ? همیشه ثابت هستن.
  3. Salar82

    *B4A ورژن 10 بتا منتشر شد*

    چیزی که من فهمیدم، یکی از مزیت های B4XPages، اینه که دیگه مجبور نیستید با فعالیت های یک اکتیویتی مثل(Activity_Create , Activity_Pause , Activity_Resume و ...) سر و کار داشته باشید و کلا از دوتا ساب زیر استفاده می‌کنید(البته اینو هنوز مطمئن نیستم): Public Sub Initialize End Sub 'This event will be called once, before the page becomes visible. Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 'load the layout to Root End Sub یه مزیت دیگه ای هم که داره، اینه که هیچ وقت از یه کلاس B4XPages، از بین نمیره و از هرجا در دسترسه. یعنی از یه کلاس دیگه، میتونید به تمامی خصوصیات یه کلاس دیگه، دسترسی داشته باشید. مثلاً متن یه دکمه رو از یه کلاس دیگه میتونید تغییر بدید: Page3 = B4XPages.GetPage("Page 3") Page3.Button1.Text = "abc" برای اطلاعات دقیقتر هم به پست زیر یه نگاهی بندازید: https://www.b4x.com/android/forum/threads/b4x-b4xpages-cross-platform-and-simple-framework-for-managing-multiple-pages.118901/ B4XTurtle هم بخوام بگم، در واقع یه جور نقاشیه برای آموزش. و ... اطلاعات بیشتر هم، تو پست زیر هست: پست 1 پست 2 X2 Game هم برای ساخت بازیه که یه سرچ تو گوگل کنین، مطالب زیادی میاره. حالا هر کدوم از اینا، یه سبکی برای راه‌اندازی دارن مثلا برای B4XPages ، باید کدهای زیر رو تو اکتیویتی Main بنویسید تا آماده بشه: Sub Activity_Create(FirstTime As Boolean) Dim pm As B4XPagesManager pm.Initialize(Activity) End Sub 'Template version: B4A-1.0 #Region Delegates Sub Activity_ActionBarHomeClick B4XPages.Delegate.Activity_ActionBarHomeClick End Sub Sub Activity_KeyPress (KeyCode As Int) As Boolean Return B4XPages.Delegate.Activity_KeyPress(KeyCode) End Sub Sub Activity_Resume B4XPages.Delegate.Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) B4XPages.Delegate.Activity_Pause End Sub Sub Activity_PermissionResult (Permission As String, Result As Boolean) B4XPages.Delegate.Activity_PermissionResult(Permission, Result) End Sub Sub Create_Menu (Menu As Object) B4XPages.Delegate.Create_Menu(Menu) End Sub #if Java public boolean _onCreateOptionsMenu(android.view.Menu menu) { processBA.raiseEvent(null, "create_menu", menu); return true; } #End If #End Region نکته‌ای که تو نسخه جدید بیسیک هست، اینه که برای راه اندازی هر کدوم از اینا، دیگه لازم نیست دونه دونه کدها رو کپی کنید. هر کدوم رو بخواید، بیسیک خودش میسازه براتون. امیدوارم مطالب مفید باشن
  4. سلام دوست عزیز روش استفادش هم اینه که خط زیر رو تو منیفست پیدا کنیدو عبارت DarkTheme رو با تم های مد نظرتون(مثلا LightTheme)، جایگذاری کنید. CreateResourceFromFile(Macro, Themes.DarkTheme) امیدوارم مفید بوده باشه
  5. سلام کتابخونه برای زوم کردن عکس هستش و کتاخونه ی خوبیه و تازه در B4X منتشر شده و میتونید از اون در B4A , B4i و B4j استفاده کنید. کتابخونه: ZoomImageView.rar سورس: ZoomIVExample.zip امیدوارم مفید باشه
  6. Salar82

    *B4A ورژن 10 بتا منتشر شد*

    سلام به همه دوستان ورژن جدید بیسیک با قابلیت جدید منتشر شد. تغییرات این ورژن، در تاپیک زیر تا حدودی بررسی شده: همونطور که در تصاویر زیر مشاهده می کنید، با ساخت یه پروژه B4Xpages، سه پروژه B4i , B4J , B4A ایجاد میشه و در هر سه پروژه، فایل B4XMainPage.bas گنجانده شده و درواقع یه جور CrossPlatform میشه و این فوق العاده هست. علاوه بر این، از الان به بعد، لینک ها باز میشن و میشه بعضی کارها رو با اونا ساده تر کرد؛ مثلاً: آموزش کار با لینک ها در تاپیک زیر هست: https://www.b4x.com/android/forum/threads/b4x-comment-links.119897/ این نکته رو هم بگم که از این نسخه به بعد، بیسیک بدون ویرایشگر باز میشه و باید از File-->new الگوی پروژه رو انتخاب کنید. لینک دانلود: http://www.b4x.com/android/files/beta.exe پیروز باشید
  7. سلام خدمت اساتید بزرگوار من اکلیپس با پلاگین ADT رو نصب کردم. موقعی که میخوام آدرس SDK رو بهش بدم، خطای زیر رو میده: Could not find C:\Android\android-sdk\android.jar! Sdk همون Sdk بیسیک و اندروید استودیو هست که بدون مشکل با هر دوتاش کار میکنم. ممنون میشم راهنمایی کنید
  8. سلام به همه این یه ویژگی جدیده که الان در B4J v8.50 و B4i v6.80 وجود داره. این ویژگی که قراره تو نسخه بعدی بیسیک باشدش، خیلی مفیده و میتونه کارها رو (برای کسایی که مثلاً می‌خوان از B4XPages استفاده کنن) ساده تر کنه. وقتی شما می‌خواین یه پروژه جدید رو ایجاد کنید ، پروژه بر اساس الگویی که انتخاب کردید، ایجاد میشه. صفحه مرجع: https://www.b4x.com/android/forum/threads/b4x-projects-templates.119901/ ویرایش: لینک دانلود این نسخه در تاپیک زیره:
  9. سلام لیست دسترسی ها رو یه جا براتون آماده کردم تا مواقعی که خواستین یه دسترسی رو به برنامتون بدین، مشکلی نداشته باشین AddPermission(android.permission.ACCESS_CHECKIN_PROPERTIES) ' Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded. AddPermission(android.permission.ACCESS_COARSE_LOCATION) ' Allows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi. AddPermission(android.permission.ACCESS_FINE_LOCATION) ' Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi. AddPermission(android.permission.ACCESS_LOCATION_EXTRA_COMMANDS) ' Allows an application to access extra location provider commands. AddPermission(android.permission.ACCESS_MOCK_LOCATION) ' Allows an application to create mock location providers for testing. AddPermission(android.permission.ACCESS_NETWORK_STATE) ' Allows applications to access information about networks. AddPermission(android.permission.ACCESS_SURFACE_FLINGER) ' Allows an application to use SurfaceFlinger's low level features. AddPermission(android.permission.ACCESS_WIFI_STATE) ' Allows applications to access information about Wi-Fi networks. AddPermission(android.permission.ACCOUNT_MANAGER) ' Allows applications to call into AccountAuthenticators. AddPermission(android.permission.ADD_VOICEMAIL) ' Allows an application to add voicemails into the system. AddPermission(android.permission.AUTHENTICATE_ACCOUNTS) ' Allows an application to act as an AccountAuthenticator for the AccountManager. AddPermission(android.permission.BATTERY_STATS) ' Allows an application to collect battery statistics. AddPermission(android.permission.BIND_ACCESSIBILITY_SERVICE) ' Must be required by an AccessibilityService, to ensure that only the system can bind to it. AddPermission(android.permission.BIND_APPWIDGET) ' Allows an application to tell the AppWidget service which application can access AppWidget's data. AddPermission(android.permission.BIND_DEVICE_ADMIN) ' Must be required by device administration receiver, to ensure that only the system can interact with it. AddPermission(android.permission.BIND_INPUT_METHOD) ' Must be required by an InputMethodService, to ensure that only the system can bind to it. AddPermission(android.permission.BIND_NFC_SERVICE) ' Must be required by a HostApduService or OffHostApduService to ensure that only the system can bind to it. AddPermission(android.permission.BIND_NOTIFICATION_LISTENER_SERVICE) ' Must be required by an NotificationListenerService, to ensure that only the system can bind to it. AddPermission(android.permission.BIND_PRINT_SERVICE) ' Must be required by a PrintService, to ensure that only the system can bind to it. AddPermission(android.permission.BIND_REMOTEVIEWS) ' Must be required by a RemoteViewsService, to ensure that only the system can bind to it. AddPermission(android.permission.BIND_TEXT_SERVICE) ' Must be required by a TextService (e.g. AddPermission(android.permission.BIND_VPN_SERVICE) ' Must be required by a VpnService, to ensure that only the system can bind to it. AddPermission(android.permission.BIND_WALLPAPER) ' Must be required by a WallpaperService, to ensure that only the system can bind to it. AddPermission(android.permission.BLUETOOTH) ' Allows applications to connect to paired bluetooth devices. AddPermission(android.permission.BLUETOOTH_ADMIN) ' Allows applications to discover and pair bluetooth devices. AddPermission(android.permission.BLUETOOTH_PRIVILEGED) ' Allows applications to pair bluetooth devices without user interaction. AddPermission(android.permission.BRICK) ' Required to be able to disable the device (very dangerous!). AddPermission(android.permission.BROADCAST_PACKAGE_REMOVED) ' Allows an application to broadcast a notification that an application package has been removed. AddPermission(android.permission.BROADCAST_SMS) ' Allows an application to broadcast an SMS receipt notification. AddPermission(android.permission.BROADCAST_STICKY) ' Allows an application to broadcast sticky intents. AddPermission(android.permission.BROADCAST_WAP_PUSH) ' Allows an application to broadcast a WAP PUSH receipt notification. AddPermission(android.permission.CALL_PHONE) ' Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed. AddPermission(android.permission.CALL_PRIVILEGED) ' Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed. AddPermission(android.permission.CAMERA) ' Required to be able to access the camera device. AddPermission(android.permission.CAPTURE_AUDIO_OUTPUT) ' Allows an application to capture audio output. AddPermission(android.permission.CAPTURE_SECURE_VIDEO_OUTPUT) ' Allows an application to capture secure video output. AddPermission(android.permission.CAPTURE_VIDEO_OUTPUT) ' Allows an application to capture video output. AddPermission(android.permission.CHANGE_COMPONENT_ENABLED_STATE) ' Allows an application to change whether an application component (other than its own) is enabled or not. AddPermission(android.permission.CHANGE_CONFIGURATION) ' Allows an application to modify the current configuration, such as locale. AddPermission(android.permission.CHANGE_NETWORK_STATE) ' Allows applications to change network connectivity state. AddPermission(android.permission.CHANGE_WIFI_MULTICAST_STATE) ' Allows applications to enter Wi-Fi Multicast mode. AddPermission(android.permission.CHANGE_WIFI_STATE) ' Allows applications to change Wi-Fi connectivity state. AddPermission(android.permission.CLEAR_APP_CACHE) ' Allows an application to clear the caches of all installed applications on the device. AddPermission(android.permission.CLEAR_APP_USER_DATA) ' Allows an application to clear user data. AddPermission(android.permission.CONTROL_LOCATION_UPDATES) ' Allows enabling/disabling location update notifications from the radio. AddPermission(android.permission.DELETE_CACHE_FILES) ' Allows an application to delete cache files. AddPermission(android.permission.DELETE_PACKAGES) ' Allows an application to delete packages. AddPermission(android.permission.DEVICE_POWER) ' Allows low-level access to power management. AddPermission(android.permission.DIAGNOSTIC) ' Allows applications to RW to diagnostic resources. AddPermission(android.permission.DISABLE_KEYGUARD) ' Allows applications to disable the keyguard. AddPermission(android.permission.DUMP) ' Allows an application to retrieve state dump information from system services. AddPermission(android.permission.EXPAND_STATUS_BAR) ' Allows an application to expand or collapse the status bar. AddPermission(android.permission.FACTORY_TEST) ' Run as a manufacturer test application, running as the root user. AddPermission(android.permission.FLASHLIGHT) ' Allows access to the flashlight. AddPermission(android.permission.FORCE_BACK) ' Allows an application to force a BACK operation on whatever is the top activity. AddPermission(android.permission.GET_ACCOUNTS) ' Allows access to the list of accounts in the Accounts Service. AddPermission(android.permission.GET_PACKAGE_SIZE) ' Allows an application to find out the space used by any package. AddPermission(android.permission.GET_TASKS) ' Allows an application to get information about the currently or recently running tasks. AddPermission(android.permission.GET_TOP_ACTIVITY_INFO) ' Allows an application to retrieve private information about the current top activity, such as any assist context it can provide. AddPermission(android.permission.GLOBAL_SEARCH) ' This permission can be used on content providers to allow the global search system to access their data. AddPermission(android.permission.HARDWARE_TEST) ' Allows access to hardware peripherals. AddPermission(android.permission.INJECT_EVENTS) ' Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window. AddPermission(android.permission.INSTALL_LOCATION_PROVIDER) ' Allows an application to install a location provider into the Location Manager. AddPermission(android.permission.INSTALL_PACKAGES) ' Allows an application to install packages. AddPermission(android.permission.INSTALL_SHORTCUT) ' Allows an application to install a shortcut in Launcher. AddPermission(android.permission.INTERNAL_SYSTEM_WINDOW) ' Allows an application to open windows that are for use by parts of the system user interface. AddPermission(android.permission.INTERNET) ' Allows applications to open network sockets. AddPermission(android.permission.KILL_BACKGROUND_PROCESSES) ' Allows an application to call killBackgroundProcesses(String). AddPermission(android.permission.LOCATION_HARDWARE) ' Allows an application to use location features in hardware, such as the geofencing api. AddPermission(android.permission.MANAGE_ACCOUNTS) ' Allows an application to manage the list of accounts in the AccountManager. AddPermission(android.permission.MANAGE_APP_TOKENS) ' Allows an application to manage (create, destroy, Z-order) application tokens in the window manager. AddPermission(android.permission.MANAGE_DOCUMENTS) ' Allows an application to manage access to documents, usually as part of a document picker. AddPermission(android.permission.MASTER_CLEAR) ' Not for use by third-party applications. AddPermission(android.permission.MEDIA_CONTENT_CONTROL) ' Allows an application to know what content is playing and control its playback. AddPermission(android.permission.MODIFY_AUDIO_SETTINGS) ' Allows an application to modify global audio settings. AddPermission(android.permission.MODIFY_PHONE_STATE) ' Allows modification of the telephony state - power on, mmi, etc. AddPermission(android.permission.MOUNT_FORMAT_FILESYSTEMS) ' Allows formatting file systems for removable storage. AddPermission(android.permission.MOUNT_UNMOUNT_FILESYSTEMS) ' Allows mounting and unmounting file systems for removable storage. AddPermission(android.permission.NFC) ' Allows applications to perform I/O operations over NFC. AddPermission(android.permission.PERSISTENT_ACTIVITY) ' This constant was deprecated in API level 9. This functionality will be removed in the future; please do not use. Allow an application to make its activities persistent. AddPermission(android.permission.PROCESS_OUTGOING_CALLS) ' Allows an application to see the number being dialed during an outgoing call with the option to redirect the call to a different number or abort the call altogether. AddPermission(android.permission.READ_CALENDAR) ' Allows an application to read the user's calendar data. AddPermission(android.permission.READ_CALL_LOG) ' Allows an application to read the user's call log. AddPermission(android.permission.READ_CONTACTS) ' Allows an application to read the user's contacts data. AddPermission(android.permission.READ_EXTERNAL_STORAGE) ' Allows an application to read from external storage. AddPermission(android.permission.READ_FRAME_BUFFER) ' Allows an application to take screen shots and more generally get access to the frame buffer data. AddPermission(android.permission.READ_HISTORY_BOOKMARKS) ' Allows an application to read (but not write) the user's browsing history and bookmarks. AddPermission(android.permission.READ_INPUT_STATE) ' This constant was deprecated in API level 16. The API that used this permission has been removed. AddPermission(android.permission.READ_LOGS) ' Allows an application to read the low-level system log files. AddPermission(android.permission.READ_PHONE_STATE) ' Allows read only access to phone state. AddPermission(android.permission.READ_PROFILE) ' Allows an application to read the user's personal profile data. AddPermission(android.permission.READ_SMS) ' Allows an application to read SMS messages. AddPermission(android.permission.READ_SOCIAL_STREAM) ' Allows an application to read from the user's social stream. AddPermission(android.permission.READ_SYNC_SETTINGS) ' Allows applications to read the sync settings. AddPermission(android.permission.READ_SYNC_STATS) ' Allows applications to read the sync stats. AddPermission(android.permission.READ_USER_DICTIONARY) ' Allows an application to read the user dictionary. AddPermission(android.permission.REBOOT) ' Required to be able to reboot the device. AddPermission(android.permission.RECEIVE_BOOT_COMPLETED) ' Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting. AddPermission(android.permission.RECEIVE_MMS) ' Allows an application to monitor incoming MMS messages, to record or perform processing on them. AddPermission(android.permission.RECEIVE_SMS) ' Allows an application to monitor incoming SMS messages, to record or perform processing on them. AddPermission(android.permission.RECEIVE_WAP_PUSH) ' Allows an application to monitor incoming WAP push messages. AddPermission(android.permission.RECORD_AUDIO) ' Allows an application to record audio. AddPermission(android.permission.REORDER_TASKS) ' Allows an application to change the Z-order of tasks. AddPermission(android.permission.RESTART_PACKAGES) ' This constant was deprecated in API level 8. The restartPackage(String) API is no longer supported. AddPermission(android.permission.SEND_RESPOND_VIA_MESSAGE) ' Allows an application (Phone) to send a request to other applications to handle the respond-via-message action during incoming calls. AddPermission(android.permission.SEND_SMS) ' Allows an application to send SMS messages. AddPermission(android.permission.SET_ACTIVITY_WATCHER) ' Allows an application to watch and control how activities are started globally in the system. AddPermission(android.permission.SET_ALARM) ' Allows an application to broadcast an Intent to set an alarm for the user. AddPermission(android.permission.SET_ALWAYS_FINISH) ' Allows an application to control whether activities are immediately finished when put in the background. AddPermission(android.permission.SET_ANIMATION_SCALE) ' Modify the global animation scaling factor. AddPermission(android.permission.SET_DEBUG_APP) ' Configure an application for debugging. AddPermission(android.permission.SET_ORIENTATION) ' Allows low-level access to setting the orientation (actually rotation) of the . AddPermission(android.permission.SET_POINTER_SPEED) ' Allows low-level access to setting the pointer speed. AddPermission(android.permission.SET_PREFERRED_APPLICATIONS) ' This constant was deprecated in API level 7. No longer useful, see addPackageToPreferred(String) for details. AddPermission(android.permission.SET_PROCESS_LIMIT) ' Allows an application to set the maximum number of (not needed) application processes that can be running. AddPermission(android.permission.SET_TIME) ' Allows applications to set the system time. AddPermission(android.permission.SET_TIME_ZONE) ' Allows applications to set the system time zone. AddPermission(android.permission.SET_WALLPAPER) ' Allows applications to set the wallpaper. AddPermission(android.permission.SET_WALLPAPER_HINTS) ' Allows applications to set the wallpaper hints. AddPermission(android.permission.SIGNAL_PERSISTENT_PROCESSES) ' Allow an application to request that a signal be sent to all persistent processes. AddPermission(android.permission.STATUS_BAR) ' Allows an application to open, close, or disable the status bar and its icons. AddPermission(android.permission.SUBSCRIBED_FEEDS_READ) ' Allows an application to allow read access the subscribed feeds ContentProvider. AddPermission(android.permission.SUBSCRIBED_FEEDS_WRITE) ' Allows an application to allow write access the subscribed feeds ContentProvider. AddPermission(android.permission.SYSTEM_ALERT_WINDOW) ' Allows an application to open windows using the type TYPE_SYSTEM_ALERT, shown on top of all other applications. AddPermission(android.permission.TRANSMIT_IR ALLOWS) ' Allows using the device's IR transmitter, if available. AddPermission(android.permission.UNINSTALL_SHORTCUT) ' Allows an application to uninstall a shortcut in Launcher. AddPermission(android.permission.UPDATE_DEVICE_STATS) ' Allows an application to update device statistics. AddPermission(android.permission.USE_CREDENTIALS) ' Allows an application to request authtokens from the AccountManager. AddPermission(android.permission.USE_SIP) ' Allows an application to use SIP service. AddPermission(android.permission.VIBRATE) ' Allows access to the vibrator. AddPermission(android.permission.WAKE_LOCK) ' Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming. AddPermission(android.permission.WRITE_APN_SETTINGS) ' Allows applications to write the apn settings. AddPermission(android.permission.WRITE_CALENDAR) ' Allows an application to write (but not read) the user's calendar data. AddPermission(android.permission.WRITE_CALL_LOG) ' Allows an application to write (but not read) the user's contacts data. AddPermission(android.permission.WRITE_CONTACTS) ' Allows an application to write (but not read) the user's contacts data. AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) ' Allows an application to write to external storage. AddPermission(android.permission.WRITE_GSERVICES) ' Allows an application to modify the Google service map. AddPermission(android.permission.WRITE_HISTORY_BOOKMARKS) ' Allows an application to write (but not read) the user's browsing history and bookmarks. AddPermission(android.permission.WRITE_PROFILE) ' Allows an application to write (but not read) the user's personal profile data. AddPermission(android.permission.WRITE_SECURE_SETTINGS) ' Allows an application to read or write the secure system settings. AddPermission(android.permission.WRITE_SETTINGS) ' Allows an application to read or write the system settings. AddPermission(android.permission.WRITE_SMS) ' Allows an application to write SMS messages. AddPermission(android.permission.WRITE_SOCIAL_STREAM) ' Allows an application to write (but not read) the user's social stream data. AddPermission(android.permission.WRITE_SYNC_SETTINGS) ' Allows applications to write the sync settings. AddPermission(android.permission.WRITE_USER_DICTIONARY) ' Allows an application to write to the user dictionary. فایل txt : permissions.rar موفق باشید
  10. سلام دوست عزیز فک کنم دسترسی برای اسکرین شات این باشه: AddPermission(android.permission.READ_FRAME_BUFFER)
  11. سلام به همه دوستان چون کتابخونه MsMaterialDrawer یه کتابخونه قدیمیه، در Androidx با خطاهای بسیاری مواجه میشه و این باعث شده خیلیا دیگه سراغش نرن در حالی که کتابخونه ی بسیار خوبیه. من فایل های ریسورس این کتابخونه رو ویرایش کردم و الان دیگه هیچ مشکلی نداره و براحتی اجرا میشه(قبلا هم بعضی از دوستان با این کتابخونه مشکل داشتن): ارور ها هم معمولا به سبک زیر هستن(که الان کاملا رفع شده) android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v4.widget.DrawerLayout لینک کتابخونه در سایت مرجع: https://www.b4x.com/android/forum/threads/msmaterialdrawer.53883/ کتابخونه MsMaterialDrawer: MsMaterialDrawer_lib.rar ریسورس های جدید: MSMaterialDrawer_res.rar امیدوارم مفید باشه
  12. سلام به همه سورس چت بلوتوثی، چند مدت پیش تو سایت مرجع دیده بودمش ولی به سیستم دسترسی نداشتم که بذارمش. سورس رو که دیدم، خیلی نسبت به قبل ساده تره. پیشنهاد میکنم حتما دانلود کنید. سورس: Bluetooth.zip صفحه مربوطه در سایت مرجع: https://www.b4x.com/android/forum/threads/b4xpages-bluetooth-chat-example.119014/ امیدوارم بدردتون بخوره
  13. Salar82

    app compat

    سلام این خط رو به اکتیویتیتون اضاف کنید. فک کنم مشکلتون از این باشه. #Extends: android.support.v7.app.AppCompatActivity البته اگر کدها و ارورها رو قرار بدین، دست دوستان برای راهنمایی باز تره
  14. سلام قطعه کدهایی برای تغییر برخی از مشخصات اسکرول بار در اسکرول ویو براتون آماده کردم. امیدوارم بدرد بخوره: 1- تغییر رنگ و Radius اسکرول بار اسکرول ویو: Private Sub SetScrollbarColor(Sv As ScrollView, Color As Int , CornerRadius As Int) Dim r As Reflector r.Target = Sv r.Target = r.GetField("mScrollCache") r.Target = r.GetField("scrollBar") Dim cd As ColorDrawable cd.Initialize(Color, CornerRadius) r.RunMethod4("setVerticalThumbDrawable", Array(cd), Array As String("android.graphics.drawable.Drawable")) End Sub Sv ----------------------> نام اسکرول ویو Color -----------------> رنگ اسکرول بار CornerRadius ----> گردی گوشه های اسکرول بار 2- تغییر عرض اسکرول بار برای ویوهایی که اسکرول ویو دارند: Sub SetScrollBarSize(v As View, Size As Int) Dim jo = v As JavaObject jo.RunMethod("setScrollBarSize", Array As Object (Size)) End Sub V --------------> نام ویو Size ---------> عرض اسکرول بار 3- تغییر موقعیت اسکرول ویو (چپ یا راست بودن): Sub SetVerticalScrollbarPosition(v As View, Position As Int) Dim jo = v As JavaObject jo.RunMethod("setVerticalScrollbarPosition", Array As Object (Position)) End Sub V --------------> نام ویو Position --------------> سمت چپ = 1 ، سمت راست = 2 ، پیشفرض = 0 4- پنهان کردن اسکرول بار: Sub SetVerticalScrollBarEnabled(v As View, Enabled As Boolean) Dim jo = v As JavaObject jo.RunMethod("setVerticalScrollBarEnabled", Array As Object (Enabled)) End Sub V --------------> نام ویو Enabled --------> پنهان = False موفق باشید.
  15. Salar82

    B4a 9.90 منتشر شد.

    سلام به همه نسخه نهایی بیسیک ورژن 9 منتشر شد. لینک پست مربوطه: https://www.b4x.com/android/forum/threads/b4a-v9-90-has-been-released.119043/ لینک دانلود: https://www.b4x.com/b4a.html
×
×
  • جدید...