React native integrated alliance push

The company used it when developing the app, but the official documents of Youmeng are vague; roughly sort out the processing process from integrating Youmeng push to opening push message; if there is any inappropriate processing, please correct!!!! Integrated push function The alliance pushes the official document react nati ...

Posted by PcGeniusProductions on Tue, 10 Dec 2019 08:21:48 +0100

Adroid's custom running lamp (super simple)

I. XML 1. A picture, a text description (what controls are needed to choose by yourself) <!--horse race lamp--> <RelativeLayout android:id="@+id/homepager_RelativeLayout_pao" android:layout_width="match_parent" android:layout_height="@dimen/dp_50" android:layout_below="@+id/homepa ...

Posted by RwpTechAdMin on Sun, 08 Dec 2019 19:13:56 +0100

Android recyclerview + gallerylayoutmanager to achieve advertising Gallery effect

I'm sure you've met the effect of galleries in projects. There are many ways on the Internet, such as viewPager, recyclerview and so on. Today, we recommend a three-party Gallery layoutmanager, which is easy to realize quickly and solve the urgent problem. rely on gradle dependence compile 'github.hellocsl:GalleryLayoutManager:1.0.6' Realiza ...

Posted by Kaitosoto on Sun, 08 Dec 2019 06:54:45 +0100

Scroller for Android Development

What is a Scroller? When translated into elastic sliding object, you can realize the elastic sliding animation of View. What is related to Scroller is the familiar scrollTo and scrollBy methods, which can be used to realize the sliding of View, but their disadvantages are that they are completed in an instant and cannot be smoothly ...

Posted by j05hr on Sat, 07 Dec 2019 21:22:47 +0100

Android uses fragment ation to implement the bottom title bar (Github template open source)

In Android development, a very important layout is the bottom Title bar. With the bottom Title bar, we have the framework of the whole software UI development. Generally speaking, the layout of the whole software starts from the bottom Title bar, then other modules are written to form a complete software, so how can we write a bottom label?Titl ...

Posted by Noctule on Sat, 07 Dec 2019 12:50:30 +0100

How to get screen size in pixels in Android

I've created some custom elements that I want to programmatically place in the top right corner (top edge n pixels, right edge m pixels). Therefore, I need to get the screen width and height, and then set the position: int px = screenWidth - m; int py = screenHeight - n; How do I get screen width and screen height in the main activity? ...

Posted by dmcentire on Fri, 06 Dec 2019 01:37:48 +0100

First use of Retrofit

Rxprofile library is a well written network framework library, which is imported into its own project as a local Module first. 1. Most of its initialization operations are completed in user-defined application s, such as: public class App extends Application { @Override public void onCreate() { super.onCreate(); ...

Posted by SFDonovan on Thu, 05 Dec 2019 21:51:52 +0100

How to use Android Bluetooth 2.0:

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/u010046908/article/details/50610297 How to use Android Bluetooth 2.0 1.Android operation Bluetooth 2.0 use process (1) fi ...

Posted by rune_sm on Wed, 04 Dec 2019 12:24:57 +0100

Android project practice: judge whether the network connection is wired (tv Project adaptation)

Generally, for android phones, we can judge the network situation through the method provided by sdk   /** * Get the current network status: no network - 0: WIFI network 1: 4G Network - 4: 3G network - 3: 2G network - 2 * custom * * @param context * @return */ public static int getAPNType(Context context) ...

Posted by rinjani on Tue, 03 Dec 2019 15:31:51 +0100

Android project actual battle welcome interface

Welcome interface First of all, import the picture of the welcome interface into the drawable directory. When importing, Android Studio will prompt as follows drawable I haven't figured out the details yet. I will fill in this part again after understanding. Here I choose the first one Then create a package named activity, and create SplashActi ...

Posted by PierceCoding on Mon, 02 Dec 2019 18:50:27 +0100