المشاركات

Replace Text with star (***) while typing in java android studio

 EditText edittxtpassword = findViewById(R.id.edittxtpassword);  edittxtpassword.setTransformationMethod(new  MyPasswordTransformationMethod()); public class MyPasswordTransformationMethod extends PasswordTransformationMethod { @Override public CharSequence getTransformation(CharSequence source, View view) { return new PasswordCharSequence(source); } private class PasswordCharSequence implements CharSequence { private CharSequence mSource; public PasswordCharSequence(CharSequence source) { mSource = source; } public char charAt(int index) { return '*'; } public int length() { return mSource.length(); } public CharSequence subSequence(int start, int end) { return mSource.subSequence(start, end); // Return default } } };     source : https://wordpress.com/post/qforce519945958.wordpress.com/236

A problem occurred evaluating project ':app'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

A problem occurred evaluating project ':app'.   > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. Go to the android / directory of your project Create a file called local.properties with this line: sdk.dir = /Users/USERNAME/Library/Android/sdk

ماهو افضل موقع لتحميل صور مجانا بدون حقوق

من افضل المواقع لتحميل الصور مجانا بدون حقوق هو موقع  pixabay هو افضل موقع على الاطلاق وموجود فيه جودة وخيارات قوية جداً

كيف يتم اضافة اللغة العربية الى الكيبورد في نظام لينوكس ؟

صورة
 يتم اضافتها من خلال الأمر التالي في نافذة التيرمينال    setxkbmap us,ar -option "lv3:ralt_alt,grp:alt_shift_toggle"     .............

لقد تم تحميل ملف APK أو Android App Bundle برمز إصدار غير صالح، يجب تحديد رمز الإصدار ويجب أن يكون عددًا صحيحًا موجبًا.

صورة
 يُمكنك حل المشكلة من خلال ملف build.gradle الموجود في اندرويد ستوديو او intellij افتح الملف واعمل تعديل رقم الاصدار : مثال لو كان رقم الاصدار 2 واسمه 2  defaultConfig {     applicationId "com.my.packageId"     minSdkVersion 15     targetSdkVersion 22     versionCode 2        versionName "2.0"  } يمكنك تعديل      versionCode 2 الى      versionCode 3 وكذلك       versionName "2.0"  الى    versionName "3" وهكذا سيتم حل المشكلة 

Firebase No properties to serialize found with object in release mode

 problem :  Firebase No properties to serialize found with object in release mode Solution:  Adding -keepclassmembers class com.yourcompany.models.** { *; } in proguard-rules.pro