Category:Android

  • Parsing Android project loading fillet image and slideapp loading network image

    Time:2021-10-25

      Demonstration effect      Core code Ordinary picture GlideApp.with(this) .load(“https://www.baidu.com/img/bd_logo.png”) .into(mImageView);  Circular picture GlideApp.with(this) .load(“https://www.baidu.com/img/bd_logo.png”) .circleCrop() .into(mImageView); Fillet picture GlideApp.with(this) .load(“https://www.baidu.com/img/bd_logo.png”) .transform(new RoundedCorners((int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, getResources().getDisplayMetrics()))) .into(mImageView);   Reference dependency    build.gradle //Picture loading frame: https://github.com/bumptech/glide //Official documents: https://muyangmin.github.io/glide-docs-cn/ implementation ‘com.github.bumptech.glide:glide:4.12.0’ annotationProcessor ‘com.github.bumptech.glide:compiler:4.12.0’ ⭐ Since the above loaded pictures are network pictures, the network request […]

  • 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 […]

  • Interface activity interactive response of Android system programming introduction series

    Time:2021-10-24

    stayLast articleThe interface has been learned inActivityThe drawing of depends entirely on the view component it loadsViewNot only that, each touch operation of the user can be displayed on the interfaceActivityReceive and respond within, or directly transfer to one of the viewsViewResponse. How should the user respond to the user’s operation? Does the same operation […]

  • 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 […]

  • Add audio editing function to the app to make your users show

    Time:2021-10-23

    Nowadays, short video is popular, BGM is everywhere, and users want to add personalized audio wherever they can show. As a developer, we need to constantly explore and cater to users’ behavior preferences. Audio editing function has become a necessity for users in editing personal information, content creation, life sharing and other scenarios. The audio […]

  • 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, […]

  • Super simple integration! Teach you to realize audio editing ability

    Time:2021-10-22

    Nowadays, short video is popular, BGM is everywhere, and users want to add personalized audio wherever they can show. As a developer, we need to constantly explore and cater to users’ behavior preferences. Audio editing function has become a necessity for users in editing personal information, content creation, life sharing and other scenarios. Huawei audio […]

  • 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 […]

  • Drag floating ball about uniapp

    Time:2021-10-21

    I’ve been working on a project these two days. There is a small module with the function of suspended ball, which can be dragged The component is too laggy, and it will be stuck and the page will roll along. The initial position of the ball will be very uncomfortable. Especially when I lose a […]

  • 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 […]

  • [insights live broadcast] 3D modeling service to quickly build high-quality 3D models

    Time:2021-10-20

    On July 15, 2021,HMS Core 6.0Officially launched for global developers. In HMS core 6.0, Huawei has opened a new service for developers – 3D modeling kit, which provides application developers with the functions of automatic generation of 3D object model and PBR material generation based on AI technology, so as to realize the efficient production […]

  • 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 […]