《Android 基础(十五)》 Alert Dialog

简介

The AlertDialog class allows you to build a variety of dialog designs and is often the only dialog class you’ll need. there are three regions of an alert dialog:

《Android 基础(十四)》 selector

介绍

A StateListDrawable is a drawable object defined in XML that uses a several different images to represent the same graphic, depending on the state of the object. For example, a Button widget can exist in one of several different states (pressed, focused, or niether) and, using a state list drawable, you can provide a different background image for each state. You can describe the state list in an XML file. Each graphic is represented by an “item” element inside a single “selector” element. Each “item” uses various attributes to describe the state in which it should be used as the graphic for the drawable.
During each state change, the state list is traversed top to bottom and the first item that matches the current state is used—the selection is not based on the “best match,” but simply the first item that meets the minimum criteria of the state.

《Android 基础(十三)》 shape

介绍

简单来说,shape就是用来在xml文件中定义形状,代码解析之后就可以当做Drawable一样使用

《Android 基础(十二)》 TextInputLayout,让输入框更有灵性

介绍

Layout which wraps an {@link android.widget.EditText} (or descendant) to show a floating label
when the hint is hidden due to the user inputting text.

Android Studio 小技巧(2):AS中Button文字默认大写的问题

问题类型

Layout中添加一个Button

1
2
3
4
5
<Button android:id="@+id/bt_showerror"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:text="ShowError"
/>

《Android 基础(十一)》 Snackbar

简介

Snackbars provide lightweight feedback about an operation. They show a brief message at the
bottom of the screen on mobile and lower left on larger devices. Snackbars appear above all other
elements on screen and only one can be displayed at a time.

《Android 基础(十)》FloatingActionButton

简介

Source Code中的介绍如下:

Floating action buttons are used for a special type of promoted action. They are distinguished
by a circled icon floating above the UI and have special motion behaviors related to morphing,
launching, and the transferring anchor point.

Floating action buttons come in two sizes: the default and the mini. The size can be
controlled with the {@code fabSize} attribute.

《Android 基础(九)》 Ndk配置与Demo

介绍

The NDK is a toolset that allows you to implement parts of your app using native-code languages such as C and C++. For certain types of apps, this can be helpful so you can reuse existing code libraries written in these languages, but most apps do not need the Android NDK.

《Android 基础(八)》 Palette

介绍

Palette, 英文翻译,调色板,意思比较接近,Google给它的定位应该是颜色萃取器。
看下Source Code
Palette , A helper class to extract prominent colors from an image.
A number of colors with different profiles are extracted from the image

Android Studio 小技巧(1):如何导入AAR文件

导入AAR、JAR文件

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×