Tag:android

  • Android simple custom music fluctuation special effect map

    Time:2021-10-27

    This example shares the specific code of Android simple custom music fluctuation special effect map for your reference. The specific contents are as follows Final effect: Idea: draw a rectangle with changing height or a wide dotted line 1. Custom attributes: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <declare-styleable name=”musicPlayViewAttr”> <!– Pointer color — > <attr name=”point_color” format=”color” […]

  • Detailed explanation of Android application sandbox mechanism

    Time:2021-10-25

    catalogue preface 1、 DAC sandbox for Android Applications 2、 Android App permissions 3、 Storage of application information 4、 Mapping of application permissions 5、 Applied SELinux Tags 6、 Android App MAC sandbox preface Android uses sandbox to protect users from malicious applications. At the same time, it also isolates applications to prevent them from accessing their […]

  • Android realizes the effect of rotating picture

    Time:2021-10-24

    This example shares the specific code for Android to realize the effect of rotating picture for your reference. The specific contents are as follows 1. Put the code in LinearLayout, <com.jude.rollviewpager.RollPagerView android:id=”@+id/roll_view_pager” android:layout_width=”match_parent” android:layout_height=”180dp” android:layout_marginTop=”56dp” /> 2. Add dependency in build.gradle //Rotation chart implementation ‘com.jude:rollviewpager:1.2.9’ 3. Add code to Java class: public class RecommendFragment extends […]

  • Use of Android hilt and problems encountered

    Time:2021-10-23

    catalogue brief introduction Import hilt Component hierarchy Component default binding Simple use @HiltAndroidApp introduce use @AndroidEntryPoint introduce use @Module and @ installin introduce use @Provides and @ bindings introduce use @HiltViewModel introduce use @EntryPoint introduce Summary brief introduction Hilt provides a standard way to inject dagger dependencies into Android applications. Provide a set of standard, […]

  • How to quickly integrate Tencent bugly with Android

    Time:2021-10-22

    catalogue 1. Create a new product on the official website 2. Get the app ID, click product settings, and get the app ID 3. Integrate the SDK, and automatically integrate the SDK in the app / build.gradle file of the Android project 4. Configure androidmainfest.xml. Configure androidmainfest.xml as follows: 5. Confuse the configuration and add […]

  • Bubble animation for Android

    Time:2021-10-21

    This example shares the specific code of Android bubble animation for your reference. The specific contents are as follows 1、 Foreword Originally wanted to do an animation effect similar to window bubble screensaver. However, the formula of non centripetal collision between small balls has not been studied. It is really too complex for me. When […]

  • Implementation example of Android background startup activity

    Time:2021-10-20

    catalogue summary Native Android ROM Customized ROM Detect the permission of background pop-up interface Android P background startup permission Android Q background startup permission summary summary A few days ago, the product put forward a demand to start an activity of our app in the background. With the update of Android version and the unlimited […]

  • Android custom view for bubble animation

    Time:2021-10-19

    This example shares the specific code of Android custom view to realize bubble animation for your reference. The specific contents are as follows 1、 Foreword Recently, there is a need to make a bubble animation of a kettle. First, I searched the Internet and found an article: Android realizes bubble animation After testing, it is […]

  • Android photo selection area function implementation example

    Time:2021-10-17

    Realize the photo selection area function of Android Mainly refer to pqpo / smartcropper 1. Display Show four edges and eight points, Eight points: the midpoint of four corners and four sides /*Crop region, 0, top left – > lefttop, 1. Top right – > righttop, 2. Lower right – > rightbottom, 3. Bottom left […]

  • Android image / text rotation animation control based on adapterviewflipper

    Time:2021-10-15

    catalogue 1. Problems / pits 1.1 item width and height does not take effect 2. Common methods 3. Text / picture rotation demo 3.1 text rotation: textfliperadapter 3.2 picture rotation: imgfipperadapter 3.3 layout: activity_ flipper_ anim.xml 3.4 animation reference resources 1. Problems / pits 1.1 item width and height does not take effect It should […]

  • Android uses SharedPreferences to save a small amount of data

    Time:2021-10-11

    1 Introduction to SharedPreferences SharedPreferencesIs to useKey value pairTo store data SharedPreferences share = getSharedPreferences(“my_file”, Context.MODE_PRIVATE); SharedPreferences.Editor editor = share.edit(); //4 save data to file editor.putString(“account”, input_account.getText().toString()); editor.putString(“password”, input_password.getText().toString()); editor.putBoolean(“pass_remem”, pass_remem.isChecked()); // Returns true when the radio box is selected When saving a piece of data, you need to provide a corresponding key for the […]

  • Android custom control implementation timeline

    Time:2021-10-9

    This example shares the specific code of Android custom control to realize the timeline for your reference. The specific contents are as follows Because there are requirements in the project, simply package one, record it first, and upload it to GitHub when you have time. 1. Add custom attributes first: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <declare-styleable […]