Category : attributes

Android 4.1.1 compiledSdkVersion 30 targetSdkVersion 30 minSdkVersion 24 Gradle: 6.5 Android Gradle Plugin: 4.1.1 Changing application id in build.gradle leads to attribute not found error during linking applicationId "com.myltd.asg.myappid" I tried changing the package name to the same value just for testing but it does not remove the error. I know that according to the ..

Read more

All the android parts are marked in red and I dont know why because I typed it all the same way they did in the app I learn through. Its in the app/scr/main/res/layout folder the activity_fullscreen.xml file <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"//here all untill the = symbol is marked in red when I click on inspection ..

Read more

I made the color arrangement as follows values/strings.xml <string-array name="color"> <item>?attr/red</item> <item>?attr/orange</item> <item>?attr/yellow</item> <item>?attr/green</item> <item>?attr/lightGreen</item> <item>?attr/mint</item> <item>?attr/blue</item> <item>?attr/sky</item> <item>?attr/pink</item> <item>?attr/purple</item> <item>?attr/gray</item> </string-array> I gave the value in <string-array> as ?attr/, so I did so to make the color array change fluidly when changing dark and light modes. By the way, when the value is loaded ..

Read more

I want to place some switches on different specific points on an image and to support as many devices as possible, I created a method, that creates a matrix of frames, on which the switches should be oriented. This is the method: public void initImageOverlayFrames() { //Create frames ImageView imageView = rootView.findViewById(R.id.image_gp); ConstraintSet constraintSet = ..

Read more