Automatically clip Android ICON and save to path script

When packaging Android games or apps, you often encounter problems with dozens or hundreds of channels.app names for different channels are different, and icons may be different.Programmers are always lazy and bother to change things manually.So a script was written in Python to automatically clip icons of different sizes and s ...

Posted by CybJunior on Thu, 06 Feb 2020 17:19:54 +0100

OpenGL ES for Android play video

Why play video with OpenGL ES We all know that there is a VideoView control in Android that can play video directly, which is both simple and practical. So why do we use OpenGL ES to play video? That's because OpenGL ES can do more cool dynamic effects, such as rotating video, double finger zooming v ...

Posted by _off_axis_ on Wed, 05 Feb 2020 11:38:07 +0100

Andromeda source code parsing (synchronous access to services)

Andromeda Andromeda is iqiyi's open-source component communication framework for multi process architecture. github Address: https://github.com/iqiyi/Andromeda Its characteristics are as follows: There is no need for the developer to perform bindService() operation or define the Service, just define ...

Posted by Devon11 on Tue, 04 Feb 2020 18:31:52 +0100

Fragment learning 3 -- bottom tab layout

MessageFragment public class MessageFragment extends Fragment { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View messageLayout = inflater.inflate(R.layout.message_layout, container, false); return messageLayout; ...

Posted by efron on Tue, 04 Feb 2020 18:04:48 +0100

Glide source code analysis

Article directory .into(*) 1,Target 2,Request 3,track() 3.1 life cycle 3.2 requestTracker.runRequest(Request) 4,DecodeJob.run() 5,ModelLoader 6,HttpUrlFetcher 7, cache 8. Load picture summary Final personal summary .into(*) This method is very complex, you have to look at the source code sev ...

Posted by brenda on Tue, 04 Feb 2020 11:04:54 +0100

Android - fragment easy to use

1, Method and steps of static registration of fragment 1. Create a static fragment.java file to inherit fragment class and a static_fragment.xml file to complete fragment layout. Overloading oncreateview in StaticFragment.java ( )Method by calling inflate. Inflate ( )Method and pass in the layout res ...

Posted by jmosterb on Mon, 03 Feb 2020 17:04:44 +0100

How to refresh Android ListView?

How to refresh Android ListView after adding / deleting dynamic data? #1 building Please ignore all invalid(), invalideviews(), requestLayout(),... Answers to this question. The right approach (and fortunately marked as the right answer) is Call notifyDataSetChanged() on Adapter . Troubleshooting If the call to notifyDataSetCh ...

Posted by amiller099 on Sat, 01 Feb 2020 07:58:31 +0100

Data store (file store, SharedPreferences, database store)

data storage File store, SharedPreferences, database store File store In the way of Java flow public class MainActivity extends AppCompatActivity { private EditText editText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.lay ...

Posted by theweirdone on Fri, 31 Jan 2020 18:42:22 +0100

android zxing parsing QR code pictures and generating QR code pictures

About generating QR code pictures: Using zxing package to generate QR code under Android The QRCodeUtil provided in is everything. Very convenient. About parsing the QR code picture, get the content: public Result parseInfoFromBitmap(Bitmap bitmap) { int[] pixels = new int[bitmap.getWidth() * bitmap.getHeight()]; bitm ...

Posted by zackat on Fri, 31 Jan 2020 14:44:30 +0100

NO.1 foundation drawing

NO.1 foundation drawing Zero etching🔗 HenCoder Preface Get the xp value corresponding to dp public static float dp2px(int dp){ return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,dp, Resources.getSystem().getDisplayMetrics()); } Rotation direction Path.Direction.CW; //Clock ...

Posted by nosheep on Mon, 27 Jan 2020 15:00:18 +0100