בקשת מידע | RTL לאפליקציה שתרגמתי
-
היי חברים, חייב את העזרה שלכם!
עשיתי תרגום ידני לאפליקציה של אוזניות JBL הכל היה טוב ויפה, אבל הRTL לא כמו שצריך... ניסיתי לחפש בפורום איך מסדרים אבל לא מצאתי..
ניסיתי לשאול את ג'יימני אך לא הבנתי מה אמר
ראיתי את המדריך הזה אבל לא היה את הקובץ שמוזכר שם..
צילום מסך מהאפליקציה
אם מישהו יכול להסביר לי אני ממש אשמח! אפילו באישי..
אני רוצה לפרסם את האפליקציה באופן מושלם.. תודה מראש!
@זונדל @מישהו12 @יצחק-א @איש-אמת @ראובן-שבתי @zalmensmok @משה-144 סליחה על התיוג אבל אתם מבינים בזה!
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
היי חברים, חייב את העזרה שלכם!
עשיתי תרגום ידני לאפליקציה של אוזניות JBL הכל היה טוב ויפה, אבל הRTL לא כמו שצריך... ניסיתי לחפש בפורום איך מסדרים אבל לא מצאתי..
ניסיתי לשאול את ג'יימני אך לא הבנתי מה אמר
ראיתי את המדריך הזה אבל לא היה את הקובץ שמוזכר שם..
צילום מסך מהאפליקציה
אם מישהו יכול להסביר לי אני ממש אשמח! אפילו באישי..
אני רוצה לפרסם את האפליקציה באופן מושלם.. תודה מראש!
@זונדל @מישהו12 @יצחק-א @איש-אמת @ראובן-שבתי @zalmensmok @משה-144 סליחה על התיוג אבל אתם מבינים בזה!
מה הבעיה ב-rtl? הכל נראה טוב...
-
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
היי חברים, חייב את העזרה שלכם!
עשיתי תרגום ידני לאפליקציה של אוזניות JBL הכל היה טוב ויפה, אבל הRTL לא כמו שצריך... ניסיתי לחפש בפורום איך מסדרים אבל לא מצאתי..
ניסיתי לשאול את ג'יימני אך לא הבנתי מה אמר
ראיתי את המדריך הזה אבל לא היה את הקובץ שמוזכר שם..
צילום מסך מהאפליקציה
אם מישהו יכול להסביר לי אני ממש אשמח! אפילו באישי..
אני רוצה לפרסם את האפליקציה באופן מושלם.. תודה מראש!
@זונדל @מישהו12 @יצחק-א @איש-אמת @ראובן-שבתי @zalmensmok @משה-144 סליחה על התיוג אבל אתם מבינים בזה!
מה הבעיה ב-rtl? הכל נראה טוב...
@א-מ-ד הוא כנראה רוצה שהשורות של 'איזון צליל שמאלי/ימני' ושל 'עוזר קולי', יהיו כמו 'מצא את האוזניות שלי' וכמו 'חיסכון בחשמל'...
-
שאתה מפרק את האקטיביטי- זה אמור להיות בXML שלו אם אני זוכר נכון מוזמן לעיין כאן https://stackoverflow.com/questions/48729931/how-to-set-supportrtl-in-androidmanifest-for-specifed-activity
-
שאתה מפרק את האקטיביטי- זה אמור להיות בXML שלו אם אני זוכר נכון מוזמן לעיין כאן https://stackoverflow.com/questions/48729931/how-to-set-supportrtl-in-androidmanifest-for-specifed-activity
-
@לידור דבר ראשון, תודה על התגובה דבר שני, ניסיתי להבין מה בדיוק צריך לעשות אבל לא הבנתי.. מה צריך בדיוק לשנות?
@שניאור-שמח תוכל להעלות את האפליקציה או לשלוח בפרטי אם תרצה ואנסה לשבת על זה בל"נ
-
היי חברים, חייב את העזרה שלכם!
עשיתי תרגום ידני לאפליקציה של אוזניות JBL הכל היה טוב ויפה, אבל הRTL לא כמו שצריך... ניסיתי לחפש בפורום איך מסדרים אבל לא מצאתי..
ניסיתי לשאול את ג'יימני אך לא הבנתי מה אמר
ראיתי את המדריך הזה אבל לא היה את הקובץ שמוזכר שם..
צילום מסך מהאפליקציה
אם מישהו יכול להסביר לי אני ממש אשמח! אפילו באישי..
אני רוצה לפרסם את האפליקציה באופן מושלם.. תודה מראש!
@זונדל @מישהו12 @יצחק-א @איש-אמת @ראובן-שבתי @zalmensmok @משה-144 סליחה על התיוג אבל אתם מבינים בזה!
-
@לידור דבר ראשון, תודה על התגובה דבר שני, ניסיתי להבין מה בדיוק צריך לעשות אבל לא הבנתי.. מה צריך בדיוק לשנות?
@שניאור-שמח איך פירקת את האפליקציה כדי לתרגם אותה?
-
@שניאור-שמח איך פירקת את האפליקציה כדי לתרגם אותה?
@א-מ-ד כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@שניאור-שמח איך פירקת את האפליקציה כדי לתרגם אותה?
תרגמתי דרך mt
-
היי חברים, חייב את העזרה שלכם!
עשיתי תרגום ידני לאפליקציה של אוזניות JBL הכל היה טוב ויפה, אבל הRTL לא כמו שצריך... ניסיתי לחפש בפורום איך מסדרים אבל לא מצאתי..
ניסיתי לשאול את ג'יימני אך לא הבנתי מה אמר
ראיתי את המדריך הזה אבל לא היה את הקובץ שמוזכר שם..
צילום מסך מהאפליקציה
אם מישהו יכול להסביר לי אני ממש אשמח! אפילו באישי..
אני רוצה לפרסם את האפליקציה באופן מושלם.. תודה מראש!
@זונדל @מישהו12 @יצחק-א @איש-אמת @ראובן-שבתי @zalmensmok @משה-144 סליחה על התיוג אבל אתם מבינים בזה!
@שניאור-שמח תירגמת שפה קיימת או שהוספת string IW?
-
@שניאור-שמח תירגמת שפה קיימת או שהוספת string IW?
@יצחק-א כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@שניאור-שמח תירגמת שפה קיימת או שהוספת string IW?
בעיקרון אם אני מתרגם את הiw זה לא מראה את זה באפליקציה, אז אני צריך להחליף את הiw לראשי אז מה שעשיתי תרגמתי את הiw ואז החלפתי את זה הראשי
למה אתה שואל? זה משנה?
-
@לידור דבר ראשון, תודה על התגובה דבר שני, ניסיתי להבין מה בדיוק צריך לעשות אבל לא הבנתי.. מה צריך בדיוק לשנות?
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@לידור דבר ראשון, תודה על התגובה דבר שני, ניסיתי להבין מה בדיוק צריך לעשות אבל לא הבנתי.. מה צריך בדיוק לשנות?
בבקשה ובהצלחה... הכל נמצא בלינק
I recommend set android:layoutDirection="rtl" into your activity parent layout to set just that specific activity support rtl.
You can also use the automatic Android Studio option by selecting Refactor > Add RTL Support Where Possible...
-
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@לידור דבר ראשון, תודה על התגובה דבר שני, ניסיתי להבין מה בדיוק צריך לעשות אבל לא הבנתי.. מה צריך בדיוק לשנות?
בבקשה ובהצלחה... הכל נמצא בלינק
I recommend set android:layoutDirection="rtl" into your activity parent layout to set just that specific activity support rtl.
You can also use the automatic Android Studio option by selecting Refactor > Add RTL Support Where Possible...
@לידור כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
android:layoutDirection="rtl"
איפה אני אמור לרשום את זה? בקובץ AndroidManifest? אם כן איפה בדיוק?
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="240723148" android:versionName="5.22.13" android:compileSdkVersion="34" android:compileSdkVersionCodename="14" package="jbl.stc.com" platformBuildVersionCode="34" platformBuildVersionName="14" requiredSplitTypes="base__abi,base__density" splitTypes=""> <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="34"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="0x00010000"/> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/> <uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> <uses-permission android:name="android.permission.CAMERA"/> <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/> <uses-feature android:name="android.hardware.usb.host"/> <uses-permission android:name="android.permission.VIBRATE"/> <permission android:name="jbl.stc.com.SYSTEM_PERMISSION" android:protectionLevel="0x00000012"/> <supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true"/> <queries> <intent> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="https"/> </intent> </queries> <queries> <package android:name="com.tencent.xw"/> <package android:name="com.google.android.apps.googleassistant"/> <package android:name="com.google.android.apps.assistant"/> <package android:name="com.amazon.dee.app"/> </queries> <meta-data android:name="com.samsung.android.wearable.supportFindings" android:value="true"/> <meta-data android:name="com.samsung.android.wearable.APP_ID" android:value="wearable-simulator-app-id"/> <meta-data android:name="com.samsung.android.wearable.APP_SECRET" android:value="wearable-simulator-app-secret"/> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> <uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/> <uses-feature android:name="android.hardware.bluetooth" android:required="true"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <application android:theme="@7F120126" android:label="@7F1100AF" android:icon="@7F0E0007" android:name="jbl.stc.com.activity.JBLApplication" android:allowClearUserData="true" android:configChanges="0x40000F84" android:allowBackup="true" android:hardwareAccelerated="false" android:largeHeap="true" android:supportsRtl="true" android:fullBackupContent="false" android:usesCleartextTraffic="true" android:networkSecurityConfig="@7F140004" android:roundIcon="@7F0E000A" android:maxAspectRatio="2.4" android:appComponentFactory="androidx.core.app.CoreComponentFactory"> <receiver android:label="@7F1100AF" android:name="jbl.stc.com.debug.MyReceiver" android:exported="true"> <intent-filter> <action android:name="jbl.stc.com.debug.ACTION_COMMANDS"/> </intent-filter> </receiver> <meta-data android:name="android.notch_support" android:value="true"/> <meta-data android:name="android.max_aspect" android:value="2.4"/> <provider android:name="com.harman.log.UncaughtExceptionHandlerContentProvider" android:exported="false" android:authorities="jbl.stc.com" android:initOrder="101" android:grantUriPermissions="false"/> <provider android:name="androidx.core.content.FileProvider" android:exported="false" android:authorities="jbl.stc.com.fileProvider" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@7F140002"/> </provider> <activity android:theme="@7F120127" android:name="jbl.stc.com.activity.SplashActivity" android:exported="true" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"> <intent-filter> <action android:name="jbl.stc.com.MAIN" android:exported="true"/> <action android:name="android.intent.action.MAIN" android:exported="true"/> <category android:name="android.intent.category.LAUNCHER" android:exported="true"/> </intent-filter> </activity> <activity android:name="jbl.stc.com.activity.FindMyProductsActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.ui3.MyProductActivity" android:launchMode="singleTask" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.Dash4Activity" android:launchMode="singleTask" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.EulaActivity" android:launchMode="singleTask" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.dashboard.HomeActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.CalibrationActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"/> <activity android:name="jbl.stc.com.activity.FirstTimeVoiceAssistantActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"/> <activity android:name="jbl.stc.com.activity.JInfoActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"/> <activity android:name="jbl.stc.com.activity.SettingActivity" android:exported="false" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"> <intent-filter> <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/> </intent-filter> <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@7F140001"/> </activity> <service android:name="com.google.android.gms.analytics.AnalyticsService" android:enabled="true" android:exported="false"/> <service android:name="jbl.stc.com.pinpoint.PushListenerService" android:exported="false"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT"/> </intent-filter> </service> <receiver android:name="com.amazonaws.mobileconnectors.pinpoint.targeting.notification.PinpointNotificationReceiver" android:exported="false"> <intent-filter> <action android:name="com.amazonaws.intent.fcm.NOTIFICATION_OPEN"/> </intent-filter> </receiver> <service android:label="@7F1105AD" android:name="jbl.stc.com.notification.NotificationListenerMgrService" android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" android:exported="true"> <intent-filter> <action android:name="android.service.notification.NotificationListenerService"/> </intent-filter> </service> <receiver android:name="jbl.stc.com.activity.StFindOperationReceiver" android:permission="jbl.stc.com.SYSTEM_PERMISSION" android:exported="true"> <intent-filter> <action android:name="com.samsung.android.fmm.OPERATION_REQUEST"/> </intent-filter> </receiver> <activity android:name="com.jbl.personifi2.SetupPersoniFiActivity" android:screenOrientation="portrait"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.profile.UserProfileActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.noise.NoiseMeasureActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.noise.EnableMicrophoneActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.profile.UserProfileIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.testresult.TestResultSphereActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.HearingTestIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.HearingTestInstructionsActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.formaltest.HearingTestActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.testresult.HearingTestResultAnimationActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.testresult.HearingTestResultActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.audiopreferences.AudioPreferenceIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.formaltest.FormalHearingTestIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.oobe.PersoniFiOobeActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.profile.UserProfileSphereActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.dashboard.DashboardContainerActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.dashboard.ProfileSelectionActivity" android:launchMode="singleTop" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.audiopreferences.FinalSphereActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.debug.HiddenDebugOptionsActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.debug.DeveloperOptionsActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.audiopreferences.AudioPreferenceContainerActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.checkseal.CheckSealContainerActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.formaltest.HearingTestContainerActivity" android:screenOrientation="nosensor"/> <provider android:name="androidx.startup.InitializationProvider" android:exported="false" android:authorities="jbl.stc.com.androidx-startup"> <meta-data android:name="jblcontroller.hcs.personiFi.init.PersoniFiInitializer" android:value="androidx.startup"/> <meta-data android:name="androidx.work.WorkManagerInitializer" android:value="androidx.startup"/> <meta-data android:name="androidx.emoji2.text.EmojiCompatInitializer" android:value="androidx.startup"/> <meta-data android:name="androidx.lifecycle.ProcessLifecycleInitializer" android:value="androidx.startup"/> </provider> <activity android:theme="@01030010" android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" android:exported="false" android:excludeFromRecents="true"/> <service android:name="com.google.android.gms.auth.api.signin.RevocationBoundService" android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" android:exported="true" android:visibleToInstantApps="true"/> <receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:permission="com.google.android.c2dm.permission.SEND" android:exported="true"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> </intent-filter> </receiver> <service android:name="com.google.firebase.messaging.FirebaseMessagingService" android:exported="false" android:directBootAware="true"> <intent-filter android:priority="-500"> <action android:name="com.google.firebase.MESSAGING_EVENT"/> </intent-filter> </service> <service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false" android:directBootAware="true"> <meta-data android:name="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.iid.Registrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.crashlytics.CrashlyticsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> </service> <receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver" android:enabled="true" android:exported="false"/> <service android:name="com.google.android.gms.analytics.AnalyticsJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="true" android:exported="false"/> <activity android:theme="@01030010" android:name="com.googl
-
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@לידור דבר ראשון, תודה על התגובה דבר שני, ניסיתי להבין מה בדיוק צריך לעשות אבל לא הבנתי.. מה צריך בדיוק לשנות?
בבקשה ובהצלחה... הכל נמצא בלינק
I recommend set android:layoutDirection="rtl" into your activity parent layout to set just that specific activity support rtl.
You can also use the automatic Android Studio option by selecting Refactor > Add RTL Support Where Possible...
-
@לידור כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
android:layoutDirection="rtl"
איפה אני אמור לרשום את זה? בקובץ AndroidManifest? אם כן איפה בדיוק?
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="240723148" android:versionName="5.22.13" android:compileSdkVersion="34" android:compileSdkVersionCodename="14" package="jbl.stc.com" platformBuildVersionCode="34" platformBuildVersionName="14" requiredSplitTypes="base__abi,base__density" splitTypes=""> <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="34"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="0x00010000"/> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/> <uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> <uses-permission android:name="android.permission.CAMERA"/> <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/> <uses-feature android:name="android.hardware.usb.host"/> <uses-permission android:name="android.permission.VIBRATE"/> <permission android:name="jbl.stc.com.SYSTEM_PERMISSION" android:protectionLevel="0x00000012"/> <supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true"/> <queries> <intent> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="https"/> </intent> </queries> <queries> <package android:name="com.tencent.xw"/> <package android:name="com.google.android.apps.googleassistant"/> <package android:name="com.google.android.apps.assistant"/> <package android:name="com.amazon.dee.app"/> </queries> <meta-data android:name="com.samsung.android.wearable.supportFindings" android:value="true"/> <meta-data android:name="com.samsung.android.wearable.APP_ID" android:value="wearable-simulator-app-id"/> <meta-data android:name="com.samsung.android.wearable.APP_SECRET" android:value="wearable-simulator-app-secret"/> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> <uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/> <uses-feature android:name="android.hardware.bluetooth" android:required="true"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <application android:theme="@7F120126" android:label="@7F1100AF" android:icon="@7F0E0007" android:name="jbl.stc.com.activity.JBLApplication" android:allowClearUserData="true" android:configChanges="0x40000F84" android:allowBackup="true" android:hardwareAccelerated="false" android:largeHeap="true" android:supportsRtl="true" android:fullBackupContent="false" android:usesCleartextTraffic="true" android:networkSecurityConfig="@7F140004" android:roundIcon="@7F0E000A" android:maxAspectRatio="2.4" android:appComponentFactory="androidx.core.app.CoreComponentFactory"> <receiver android:label="@7F1100AF" android:name="jbl.stc.com.debug.MyReceiver" android:exported="true"> <intent-filter> <action android:name="jbl.stc.com.debug.ACTION_COMMANDS"/> </intent-filter> </receiver> <meta-data android:name="android.notch_support" android:value="true"/> <meta-data android:name="android.max_aspect" android:value="2.4"/> <provider android:name="com.harman.log.UncaughtExceptionHandlerContentProvider" android:exported="false" android:authorities="jbl.stc.com" android:initOrder="101" android:grantUriPermissions="false"/> <provider android:name="androidx.core.content.FileProvider" android:exported="false" android:authorities="jbl.stc.com.fileProvider" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@7F140002"/> </provider> <activity android:theme="@7F120127" android:name="jbl.stc.com.activity.SplashActivity" android:exported="true" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"> <intent-filter> <action android:name="jbl.stc.com.MAIN" android:exported="true"/> <action android:name="android.intent.action.MAIN" android:exported="true"/> <category android:name="android.intent.category.LAUNCHER" android:exported="true"/> </intent-filter> </activity> <activity android:name="jbl.stc.com.activity.FindMyProductsActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.ui3.MyProductActivity" android:launchMode="singleTask" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.Dash4Activity" android:launchMode="singleTask" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.EulaActivity" android:launchMode="singleTask" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.dashboard.HomeActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000022"/> <activity android:name="jbl.stc.com.activity.CalibrationActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"/> <activity android:name="jbl.stc.com.activity.FirstTimeVoiceAssistantActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"/> <activity android:name="jbl.stc.com.activity.JInfoActivity" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"/> <activity android:name="jbl.stc.com.activity.SettingActivity" android:exported="false" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="0x00000012"> <intent-filter> <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/> </intent-filter> <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@7F140001"/> </activity> <service android:name="com.google.android.gms.analytics.AnalyticsService" android:enabled="true" android:exported="false"/> <service android:name="jbl.stc.com.pinpoint.PushListenerService" android:exported="false"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT"/> </intent-filter> </service> <receiver android:name="com.amazonaws.mobileconnectors.pinpoint.targeting.notification.PinpointNotificationReceiver" android:exported="false"> <intent-filter> <action android:name="com.amazonaws.intent.fcm.NOTIFICATION_OPEN"/> </intent-filter> </receiver> <service android:label="@7F1105AD" android:name="jbl.stc.com.notification.NotificationListenerMgrService" android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" android:exported="true"> <intent-filter> <action android:name="android.service.notification.NotificationListenerService"/> </intent-filter> </service> <receiver android:name="jbl.stc.com.activity.StFindOperationReceiver" android:permission="jbl.stc.com.SYSTEM_PERMISSION" android:exported="true"> <intent-filter> <action android:name="com.samsung.android.fmm.OPERATION_REQUEST"/> </intent-filter> </receiver> <activity android:name="com.jbl.personifi2.SetupPersoniFiActivity" android:screenOrientation="portrait"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.profile.UserProfileActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.noise.NoiseMeasureActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.noise.EnableMicrophoneActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.profile.UserProfileIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.testresult.TestResultSphereActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.HearingTestIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.HearingTestInstructionsActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.formaltest.HearingTestActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.testresult.HearingTestResultAnimationActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.testresult.HearingTestResultActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.audiopreferences.AudioPreferenceIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.formaltest.FormalHearingTestIntroActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.oobe.PersoniFiOobeActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.profile.UserProfileSphereActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.dashboard.DashboardContainerActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.dashboard.ProfileSelectionActivity" android:launchMode="singleTop" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.audiopreferences.FinalSphereActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.debug.HiddenDebugOptionsActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.debug.DeveloperOptionsActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.audiopreferences.AudioPreferenceContainerActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.checkseal.CheckSealContainerActivity" android:screenOrientation="nosensor"/> <activity android:theme="@7F1202A2" android:name="jblcontroller.hcs.personiFi.ui.hearingtest.formaltest.HearingTestContainerActivity" android:screenOrientation="nosensor"/> <provider android:name="androidx.startup.InitializationProvider" android:exported="false" android:authorities="jbl.stc.com.androidx-startup"> <meta-data android:name="jblcontroller.hcs.personiFi.init.PersoniFiInitializer" android:value="androidx.startup"/> <meta-data android:name="androidx.work.WorkManagerInitializer" android:value="androidx.startup"/> <meta-data android:name="androidx.emoji2.text.EmojiCompatInitializer" android:value="androidx.startup"/> <meta-data android:name="androidx.lifecycle.ProcessLifecycleInitializer" android:value="androidx.startup"/> </provider> <activity android:theme="@01030010" android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" android:exported="false" android:excludeFromRecents="true"/> <service android:name="com.google.android.gms.auth.api.signin.RevocationBoundService" android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" android:exported="true" android:visibleToInstantApps="true"/> <receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:permission="com.google.android.c2dm.permission.SEND" android:exported="true"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> </intent-filter> </receiver> <service android:name="com.google.firebase.messaging.FirebaseMessagingService" android:exported="false" android:directBootAware="true"> <intent-filter android:priority="-500"> <action android:name="com.google.firebase.MESSAGING_EVENT"/> </intent-filter> </service> <service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false" android:directBootAware="true"> <meta-data android:name="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.iid.Registrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.crashlytics.CrashlyticsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.remoteconfig.RemoteConfigRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> <meta-data android:name="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/> </service> <receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver" android:enabled="true" android:exported="false"/> <service android:name="com.google.android.gms.analytics.AnalyticsJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="true" android:exported="false"/> <activity android:theme="@01030010" android:name="com.googl
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
איפה אני אמור לרשום את זה?
לא, בLayout הרלוונטי לכל דבר.
-
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
איפה אני אמור לרשום את זה?
לא, בLayout הרלוונטי לכל דבר.
@מישהו12 כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
איפה אני אמור לרשום את זה?
לא, בLayout הרלוונטי לכל דבר.
דבר ראשון תודה דבר שני, אין דרך אחרת? או אוטומטי לכל הקבצים? כי יש 700 קבצים כאלה
-
@מישהו12 כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
איפה אני אמור לרשום את זה?
לא, בLayout הרלוונטי לכל דבר.
דבר ראשון תודה דבר שני, אין דרך אחרת? או אוטומטי לכל הקבצים? כי יש 700 קבצים כאלה
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@מישהו12 כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
איפה אני אמור לרשום את זה?
לא, בLayout הרלוונטי לכל דבר.
דבר ראשון תודה דבר שני, אין דרך אחרת? או אוטומטי לכל הקבצים? כי יש 700 קבצים כאלה
לי אין מושג, הסברתי מה כתוב. יש דרך דרך המניפסט (אני לא זוכר עכשיו), אבל היא לא מומלצת במיוחד. היו פעמים שמחקתי את השורה ההיא כדי שיעבוד RTL.
תעלה בבקשה את המניפסט בתוך בלוק של קוד, אולי אוכל לראות יותר נוח
-
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@מישהו12 כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
איפה אני אמור לרשום את זה?
לא, בLayout הרלוונטי לכל דבר.
דבר ראשון תודה דבר שני, אין דרך אחרת? או אוטומטי לכל הקבצים? כי יש 700 קבצים כאלה
לי אין מושג, הסברתי מה כתוב. יש דרך דרך המניפסט (אני לא זוכר עכשיו), אבל היא לא מומלצת במיוחד. היו פעמים שמחקתי את השורה ההיא כדי שיעבוד RTL.
תעלה בבקשה את המניפסט בתוך בלוק של קוד, אולי אוכל לראות יותר נוח
@מישהו12 כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
תעלה בבקשה את המניפסט בתוך בלוק של קוד, אולי אוכל לראות יותר נוח
תודה
-
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@מישהו12 כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
איפה אני אמור לרשום את זה?
לא, בLayout הרלוונטי לכל דבר.
דבר ראשון תודה דבר שני, אין דרך אחרת? או אוטומטי לכל הקבצים? כי יש 700 קבצים כאלה
לי אין מושג, הסברתי מה כתוב. יש דרך דרך המניפסט (אני לא זוכר עכשיו), אבל היא לא מומלצת במיוחד. היו פעמים שמחקתי את השורה ההיא כדי שיעבוד RTL.
תעלה בבקשה את המניפסט בתוך בלוק של קוד, אולי אוכל לראות יותר נוח
@מישהו12 ניסיתי לשאול את ג'יימני אבבל לא הצלחתי להבין מה הוא אומר, אולי אתה תבין
|| לא, לא חייבים לעשות לכל Activity בנפרד. ישנן שתי דרכים עיקריות לפשט את התהליך:
- ירושה מסטייל בסיסי:
- הגדרת סטייל בסיסי: תוכל להגדיר סטייל בסיסי אחד שכולל את התכונה android:layoutDirection="rtl".
- יישום על כל ה-Activitys: כל ה-Activitys שלך יכולים לרשת את הסטייל הבסיסי הזה.
- יתרונות: חוסך כתיבה חוזרת, מאפשר שינוי גלובלי. דוגמה: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:layoutDirection">rtl</item> </style>
ב-AndroidManifest.xml: <activity android:name=".MainActivity" android:theme="@style/AppTheme"> </activity>
- שימוש ב-Base Application:
- יצירת מחלקת Application: תוכל ליצור מחלקה שירשה מ-Application ותגדיר בה את כיוון הכתיבה.
- הרשמה ב-AndroidManifest.xml: תרשום את המחלקה הזו כ-application הראשי.
- יתרונות: שליטה גלובלית על התנהגות האפליקציה, כולל כיוון הכתיבה. דוגמה: public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); // קוד להגדרת כיוון הכתיבה // לדוגמא: באמצעות שימוש בספריית RTL } }
ב-AndroidManifest.xml: <application android:name=".MyApplication" > </application>
איזו שיטה עדיפה?
- פרויקטים קטנים: שימוש בסטייל הבסיסי יכול להיות מספיק.
- פרויקטים גדולים ומורכבים: שימוש ב-Base Application יכול לספק פתרון מקיף יותר. הערות נוספות:
- בדיקות יסודיות: לאחר השינוי, בדוק היטב את הממשק הגרפי כדי לוודא שאין בעיות בתצוגה.
- התאמה אישית: ייתכן שתצטרך להתאים את הקוד שלך במקומות מסוימים כדי להתמודד עם שינוי כיוון הכתיבה.
- שפות אחרות: אם האפליקציה שלך תומכת בשפות נוספות, וודא שההתאמה ל-RTL מתבצעת בצורה נכונה עבור כל שפה. לסיכום: ישנן מספר דרכים להוסיף RTL לאפליקציה שלך בצורה יעילה. הבחירה בשיטה תלויה במורכבות הפרויקט שלך והצרכים הספציפיים שלך. האם יש לך שאלות נוספות? ||
משום מה אני לא מצליח לעשות ספויילר
-
@מישהו12 ניסיתי לשאול את ג'יימני אבבל לא הצלחתי להבין מה הוא אומר, אולי אתה תבין
|| לא, לא חייבים לעשות לכל Activity בנפרד. ישנן שתי דרכים עיקריות לפשט את התהליך:
- ירושה מסטייל בסיסי:
- הגדרת סטייל בסיסי: תוכל להגדיר סטייל בסיסי אחד שכולל את התכונה android:layoutDirection="rtl".
- יישום על כל ה-Activitys: כל ה-Activitys שלך יכולים לרשת את הסטייל הבסיסי הזה.
- יתרונות: חוסך כתיבה חוזרת, מאפשר שינוי גלובלי. דוגמה: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:layoutDirection">rtl</item> </style>
ב-AndroidManifest.xml: <activity android:name=".MainActivity" android:theme="@style/AppTheme"> </activity>
- שימוש ב-Base Application:
- יצירת מחלקת Application: תוכל ליצור מחלקה שירשה מ-Application ותגדיר בה את כיוון הכתיבה.
- הרשמה ב-AndroidManifest.xml: תרשום את המחלקה הזו כ-application הראשי.
- יתרונות: שליטה גלובלית על התנהגות האפליקציה, כולל כיוון הכתיבה. דוגמה: public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); // קוד להגדרת כיוון הכתיבה // לדוגמא: באמצעות שימוש בספריית RTL } }
ב-AndroidManifest.xml: <application android:name=".MyApplication" > </application>
איזו שיטה עדיפה?
- פרויקטים קטנים: שימוש בסטייל הבסיסי יכול להיות מספיק.
- פרויקטים גדולים ומורכבים: שימוש ב-Base Application יכול לספק פתרון מקיף יותר. הערות נוספות:
- בדיקות יסודיות: לאחר השינוי, בדוק היטב את הממשק הגרפי כדי לוודא שאין בעיות בתצוגה.
- התאמה אישית: ייתכן שתצטרך להתאים את הקוד שלך במקומות מסוימים כדי להתמודד עם שינוי כיוון הכתיבה.
- שפות אחרות: אם האפליקציה שלך תומכת בשפות נוספות, וודא שההתאמה ל-RTL מתבצעת בצורה נכונה עבור כל שפה. לסיכום: ישנן מספר דרכים להוסיף RTL לאפליקציה שלך בצורה יעילה. הבחירה בשיטה תלויה במורכבות הפרויקט שלך והצרכים הספציפיים שלך. האם יש לך שאלות נוספות? ||
משום מה אני לא מצליח לעשות ספויילר
@שניאור-שמח כתב בבקשת מידע | RTL לאפליקציה שתרגמתי:
@מישהו12 ניסיתי לשאול את ג'יימני אבבל לא הצלחתי להבין מה הוא אומר, אולי אתה תבין
|| לא, לא חייבים לעשות לכל Activity בנפרד. ישנן שתי דרכים עיקריות לפשט את התהליך:
- ירושה מסטייל בסיסי:
- הגדרת סטייל בסיסי: תוכל להגדיר סטייל בסיסי אחד שכולל את התכונה android:layoutDirection="rtl".
- יישום על כל ה-Activitys: כל ה-Activitys שלך יכולים לרשת את הסטייל הבסיסי הזה.
- יתרונות: חוסך כתיבה חוזרת, מאפשר שינוי גלובלי. דוגמה: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:layoutDirection">rtl</item> </style>
ב-AndroidManifest.xml: <activity android:name=".MainActivity" android:theme="@style/AppTheme"> </activity>
- שימוש ב-Base Application:
- יצירת מחלקת Application: תוכל ליצור מחלקה שירשה מ-Application ותגדיר בה את כיוון הכתיבה.
- הרשמה ב-AndroidManifest.xml: תרשום את המחלקה הזו כ-application הראשי.
- יתרונות: שליטה גלובלית על התנהגות האפליקציה, כולל כיוון הכתיבה. דוגמה: public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); // קוד להגדרת כיוון הכתיבה // לדוגמא: באמצעות שימוש בספריית RTL } }
ב-AndroidManifest.xml: <application android:name=".MyApplication" > </application>
איזו שיטה עדיפה?
- פרויקטים קטנים: שימוש בסטייל הבסיסי יכול להיות מספיק.
- פרויקטים גדולים ומורכבים: שימוש ב-Base Application יכול לספק פתרון מקיף יותר. הערות נוספות:
- בדיקות יסודיות: לאחר השינוי, בדוק היטב את הממשק הגרפי כדי לוודא שאין בעיות בתצוגה.
- התאמה אישית: ייתכן שתצטרך להתאים את הקוד שלך במקומות מסוימים כדי להתמודד עם שינוי כיוון הכתיבה.
- שפות אחרות: אם האפליקציה שלך תומכת בשפות נוספות, וודא שההתאמה ל-RTL מתבצעת בצורה נכונה עבור כל שפה. לסיכום: ישנן מספר דרכים להוסיף RTL לאפליקציה שלך בצורה יעילה. הבחירה בשיטה תלויה במורכבות הפרויקט שלך והצרכים הספציפיים שלך. האם יש לך שאלות נוספות? ||
משום מה אני לא מצליח לעשות ספויילר
ג'מיני גרוע בקודים. בדרך כלל הוא סתם מחרטט מה שנראה לו. עדיף בהרבה את ChatGPT, שגם הרבה יותר מובן. אבל תחסוך בשאלות, כי אפשר רק עד 10 שאלות ליום עם GPT4o. https://chatgpt.com/