Category:Mobile Development

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

  • IOS custom date demo sharing

    Time:2021-10-25

    There is a project requirement to select a date, which is this: After reading the demo of several dates on the Internet, it’s too thick and cumbersome to transplant, and then I plan to write it myself. Let’s write a simplified demo first. There are several key points: First, get the number of days in […]

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

  • Uiimageview response click event in IOS

    Time:2021-10-24

    Uiimageview response click event in IOS Sometimes I will click on an image and then let it trigger an event or jump to the view. The first method I think of is to use uibutton and set the background image attribute of the button to the image. The effect is achieved, but it is not […]

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

  • Solutions to IOS left slide gesture failure

    Time:2021-10-23

    After ios7, apple optimized a small function, that is, for the uiviewcontroller in the uinavagationcontroller stack, as long as you gently slide right on the left edge of the view controller, the view controller will pop out of the stack (provided, of course, for non root view controllers). The implementation method is very simple. It […]

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

  • IOS UIImagePickerController obtains pictures from photos, galleries and albums

    Time:2021-10-22

    IOS UIImagePickerController obtains pictures from photos, galleries and albums There are three ways for IOS to get pictures: 1. Directly call the camera to take photos 2. Select from album 3. Select from Gallery UIImagePickerController is the interface provided by the system to obtain pictures and videos; Using UIImagePickerController class to obtain pictures and videos […]