رفتن به مطلب

DexterFstone

کاربر رو به رشد
  • تعداد ارسال ها

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

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

  • روز های برد

    89

پست ها ارسال شده توسط DexterFstone

  1. ۵ ساعت قبل، امیرحسین قاسمی گفته است:

    سلام،

    برای اینکه سایز متن داخل ادیت تکست با ارتفاع ادیت تکست هماهنگ بشه به طوری که بیرون نزنه چه راه استانداردی هست؟

    EditText1.TextSize=40

    الان ممکنه توی تبلت ها متن داخل ادیت تکست فیت باشه اما توی گوشی ها از بالا و پایین بیرون بزنه!

    برای اندازه ویوها من dip میدم و تمامی دستگاه ها درست نمایش میده اگر از % استفاده میکنید ب مشکل میخورید

    ول برای چیزی ک شما میخواین فکنم StringUtil متد مد نظر داره MeasureMultilineTextHeight 

    Dim Label1 As Label
    Label1.Initialize("")
    Label1.Text = "this is a long sentence, and we need to " _
      & "know the height required in order To show it completely."
    Label1.TextSize = 20
    Activity.AddView(Label1, 10dip, 10dip, 200dip, 30dip)
    Dim su As StringUtils
    Label1.Height = su.MeasureMultilineTextHeight(Label1, Label1.Text)

    موفق باشید

  2. فکنم سری پیش این خط از خطا را جا انداخته بودم

    > Task :app:processDebugAndroidTestManifest FAILED
    [androidx.versionedparcelable:versionedparcelable:1.1.1] C:\Users\Dexter\.gradle\caches\transforms-3\ec2eb3840be362e74ab25570b26da47c\transformed\versionedparcelable-1.1.1\AndroidManifest.xml Warning:
    	Namespace 'androidx.versionedparcelable' is used in multiple modules and/or libraries: androidx.versionedparcelable:versionedparcelable:1.1.1, com.android.support:versionedparcelable:28.0.0. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace
    C:\Users\Dexter\AndroidStudioProjects\GodotPushPolePlugin\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest16082066546625039828.xml:28:18-86 Error:
    	Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.9.0] AndroidManifest.xml:28:18-86
    	is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
    	Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at tempFile1ProcessTestManifest16082066546625039828.xml:7:5-9:19 to override.
    
    See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.

    ویرایش:

    این خطا با قطعه زیر در گریدل حل شد ولی خطاهای قبلی پا برجایست

    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion '25.3.0'
                }
            }
        }
    }

    خطاهلی قبلی هم با خط زیر حل شد

    1. android.enableJetifier=true

  3. ۴۰ دقیقه قبل، محمدرضا شاهپیری گفته است:

    همه کتابخونه ها رو به جز پوشه حذف کنید و دونه دونه اضافه کنید ببینید با کدوم تداخل داره

    خب استاد بعدش باید چیکار کنم چون بلاخره باید از اون کتابخانه هم استفاده کنم

    راه حلی نداره؟

  4. استاد شرمنده گفتم تاپیک جدید نزنم چون حالا ارور جدید دریافت کردم ممنون میشم راهنمایی فرمایید

    > Task :app:mergeDebugAndroidTestJavaResource FAILED
    
    FAILURE: Build completed with 3 failures.
    
    1: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':app:processDebugManifest'.
    > A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
       > Manifest merger failed with multiple errors, see logs
    
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    > Get more help at https://help.gradle.org.
    ==============================================================================
    
    2: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':app:checkDebugAndroidTestDuplicateClasses'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
       > Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class androidx.core.graphics.drawable.IconCompatParcelizer found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class androidx.core.internal.package-info found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)
         Duplicate class androidx.versionedparcelable.CustomVersionedParcelable found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.NonParcelField found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.ParcelField found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.ParcelImpl found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.ParcelImpl$1 found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.ParcelUtils found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcel found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcel$1 found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcel$ParcelException found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcelParcel found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcelStream found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcelStream$FieldBuffer found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcelable found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         Duplicate class androidx.versionedparcelable.VersionedParcelize found in modules versionedparcelable-1.1.1-runtime (androidx.versionedparcelable:versionedparcelable:1.1.1) and versionedparcelable-28.0.0-runtime (com.android.support:versionedparcelable:28.0.0)
         
         Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
    
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    > Get more help at https://help.gradle.org.
    ==============================================================================
    
    3: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':app:mergeDebugAndroidTestJavaResource'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
       > 2 files found with path 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version' from inputs:
          - C:\Users\Dexter\.gradle\caches\transforms-3\2e49548e557ad3d981e0f53424b0c757\transformed\localbroadcastmanager-1.0.0\jars\classes.jar
          - C:\Users\Dexter\.gradle\caches\transforms-3\a15cc399ddde63742fc17939ec2289a5\transformed\localbroadcastmanager-28.0.0\jars\classes.jar
         Adding a packagingOptions block may help, please refer to
         https://developer.android.com/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ResourcesPackagingOptions
         for more information
    
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    > Get more help at https://help.gradle.org.
    ==============================================================================
    
    BUILD FAILED in 8s
    34 actionable tasks: 7 executed, 27 up-to-date
    

    تنها چیزی ک اضافه کردم ب پروژه این مورد بوده

    implementation 'com.push-pole.android:pushpolesdk:1.7.8'

    قبل از اون چنین خطایی نداشتم

  5. ۱ ساعت قبل، محمدرضا شاهپیری گفته است:

    درود

    اول از منوی file گزینه invalidate caches رو بزنید و تمام تیکهاشو فعال کنید

    بعد به این مسیر برید C:\Users\username\.gradle و پوشه caches رو پاک کنید

    یه کم حجم دانلود زیاد میشه اما احتمالا درست میشه و دقت کنید که اینترنت استیبل باشه و قطع و وصل نشه

    خیلی ممنون استاد درست شد

  6. سلام هنگام بیلد پروژه ی همچنین اروری دریافت میکنم

    Execution failed for task ':app:extractDebugAnnotations'.
    > Could not resolve all files for configuration ':app:detachedConfiguration1'.
       > Could not find lint-checks-31.2.2.jar (com.android.tools.lint:lint-checks:31.2.2).
         Searched in the following locations:
             https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/31.2.2/lint-checks-31.2.2.jar
       > Could not find intellij-core-31.2.2.jar (com.android.tools.external.com-intellij:intellij-core:31.2.2).
         Searched in the following locations:
             https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/31.2.2/intellij-core-31.2.2.jar
       > Could not find kotlin-compiler-31.2.2.jar (com.android.tools.external.com-intellij:kotlin-compiler:31.2.2).
         Searched in the following locations:
             https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/31.2.2/kotlin-compiler-31.2.2.jar
       > Could not find uast-31.2.2.jar (com.android.tools.external.org-jetbrains:uast:31.2.2).
         Searched in the following locations:
             https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/31.2.2/uast-31.2.2.jar
       > Could not find play-sdk-proto-31.2.2.jar (com.android.tools:play-sdk-proto:31.2.2).
         Searched in the following locations:
             https://dl.google.com/dl/android/maven2/com/android/tools/play-sdk-proto/31.2.2/play-sdk-proto-31.2.2.jar
    
    Possible solution:
     - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
    

    شکن متصل هست

    حتی فایل هایی ک لینک داده را هم بصورت جدا دانلود کردم ولی نمیدونستم جدا باید قرار بگیرند

    حالا موندم مشکل چیه؟

  7. کتابخانه DGTextField


    سلام

    کتابخانه DGTextField یک تکست فیلد با قابلیت سفارشی سازی رنگ و اندازه و فونت می باشد

    نکته: تغییر اندازه ویو از عرض فقط باعث تغییر اندازه فیلد می شود و در اندازه عرض ارور و عنوان تاثیری ندارد

    نکته: اندازه عرض بیشنهادی 94dip و بالاتر و در اندازه طول محدودیتی وجود ندارد

    نکته: فونت پیشفرض فونت وزیر میباشد ولی میتواند با متد TitleFont و TextFont و ErrorFont مقادیر دلخواه خودتون را از نوع B4XFont بدید

     

    تا جای امکان تمام موارد تست شده است ولی درصورت مشاهده هرگونه مشکل اطلاع دهید تا رفع شود

    اگر هم ویزگی مد نظر وجود نداشت درخواست دهید تا اضافه شود


     

    • پسندیدن 1
    • تشکر 1
  8. ۱۹ ساعت قبل، batman۱۲۳ گفته است:

    ممنون میشم جواب بدید

    سلام معمولا در طراحی از dip استفاده کنید نباید مشکلی پیش بیاید سورس زیر تست کنید ببینید چنین مشکلی رویت میشه یا نه

    درنظر بگیرید در حالت landscape در دیزاینر باید شرط گذاشته و مجدد مقدار دهی کنید 

    If Portrait Then
    
    Else If Landscape Then
    
    End if

     

    • پسندیدن 2
  9. در ۱۴۰۰/۱۰/۹ در ۲۲:۳۵، سید رضا گفته است:

    سلام سمپل نداره ؟

    به طور کلی برای اینکه گوشه هارا گرد کنید میتونین به شکل زیر عمل کنید

    Dim CR As CornerRadius
    	CR.Initialize
    	CR.xCR_BottomLeft = 10
    	CR.yCR_BottomLeft = 10
    	CR.xCR_BottomRight = 10
    	CR.yCR_BottomRight = 10
    	CR.xCR_TopLeft = 10
    	CR.yCR_TopLeft = 10
    	CR.xCR_TopRight = 10
    	CR.yCR_TopRight = 10
    	DGPanel1.CornerRadius = CR
    	DGPanel1.SetCornerRadiusAnimated(1000,CR)

    به این شکل تمام گوشه ها به اندازه 10 تا گرد میشه از دو مورد آخری فقط یکی را انتخاب کنید میزان زمان هم برای انیمشین بر حسب میلی ثاینه است

    • پسندیدن 3
  10. کتابخانه DGPanel


    سلام با یک کتابخانه دیگه همراهتون هستیم

    با این کتابخانه که یک پنل هست میتونین تمام امکانات پنل خود بیسیک داشته باشید + خم کرده گوشه ها به صورت تکی یا گروهی همچنین قابلیت اعمال انیمیشن هم برای خم کردن موجود میباشد.

     

    سوال یا مشکلی بود در خدمتم.

    امیدوارم مفید واقع بشه:53:


     

    • پسندیدن 3
    • تشکر 1
  11. در ۱۴۰۰/۹/۹ در 19:17، یاسین یاسینی گفته است:

    هنوز هم ارور میده 

    میشه شما رفع ارورش  کنید و سورس شو بفرستین

    پس فقط یک راه حل وجود داره باید بیسیک خودتون آپدیت کنید به نسخه جدید

    چون ویرایش کردن به صرفه نیست و فقط مشکلات بیشتری همراه میشه

  12. در ۱۴۰۰/۹/۷ در ۲۰:۱۵، یاسین یاسینی گفته است:

    spacer.pngارور که میده اینها هستن

    نسخه چند بیسیک استفاده میکنید؟ اگه قدیمیه باید نسخه جدید استفاده کنید

    یا به صورت دستی هرجا

    .As(Label)

    وجود داره را حذف کنید ولی مورد اولی بهتره

  13. در ۱۴۰۰/۹/۷ در 15:23، یاسین یاسینی گفته است:

    سلام ممنون از سورس تون که خیلی زحمت کشیدین

     

    فقط یه مشکلی داره و ارور میده که Lebal نیست

     هر کاری کردم ارورش برطرف نشد.

    یک عکس از ارور و قسمتی که داره این ارور میده پیوست کنید تا نکاهی بندازم

  14. سورس جدول لیست نمرات

    مشاهده فایل

    سلام یکی از دوستان توی انجمن نیاز داشت منم یکی آماده کردم شاید زیاد بهینه و اصولی نباشه ولی خب کار راه اندازه

    برای هر سلول از لیبل استفاده میشه اطلاعات کاملا آفلاین ذخیره میشه و تازه بدون دیتابیس عمل میکنه (با کتابخانه DGMemory)

    قابل سفارشی سازی رنگ سلول ها ، رنگ خط سلول ها، ضخامت خط سلول ها ، طول و عرض سلول ها در قسمت گلوبال وجود دارد ، اندازه فونت لیبل ها به طور خودکار نسبت به طول متن متغیر هست کتبخانه های مورد استفاده را هم کنار فایل اصلی قرار دادم

    نوع جدول راست به چپ

    کامنت نویسی نکردم اگه سوالی بود در خدمتم

    نکته ای که داره و من دیگه بهینه ترش نکردم اول باید ردیف اول که بخش تشکیل دهنده جول هست را کامل به تعداد نیاز اضافه کنید بعد سراغ اضافه کردن ردیف های بعدی برید در غیر اینصورت تعادل در جدول بهم میریزه (اگه نیاز بود خودتون اصلاح کنید)

    آزادی کامل نسبت به ویرایش و استفاده در هر جا:bigsmile:

    مشکلی وجود داشت در خدمتم

    خلاصه وارد میگم سورس یک روزست به بزرگی خودتون ببخشید:girl_flag_of_truce:

    امیدوارم مفید واقع بشه:53:


     

    • پسندیدن 2
  15. در ۱۴۰۰/۸/۲۲ در ۲۱:۰۷، momali گفته است:

    سلام ، میشه بفرمایید با چه عنوانی این کتابخانه را باید صدا زد چون ظاهرا اسم موجود را نمی شناسد

    dim xrc as xrColor که درست نیست 

    dim Material as MaterialColor
    dim Flat as FlatColor
    dim Social as SocialColor
    dim Metro as MetroColor
    dim HTML as HTMLColor

     

    • پسندیدن 1
×
×
  • اضافه کردن...