Android Tool Tip

码农软件 · 软件分类 · Android UI 组件 · 2019-04-25 19:12:28

软件介绍

给你的Android程序添加提示条的简单类库。

使用方式:

  • 在您的build.gradle文件中添加:

    repositories {
        maven { url "https://jitpack.io" }
    } dependencies {
        compile 'com.github.xizzhu:simple-tool-tip:0.1.0' }
  • 或是在您的pom.xml文件中添加:

    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
    
    <dependency>
        <groupId>com.github.xizzhu</groupId>
        <artifactId>simple-tool-tip</artifactId>
        <version>0.1.0</version>
    </dependency>

样例:

  • 您的layout XML文件:

    <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent">
        <Button         android:id="@+id/button"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:text="Click Me!" />
    </FrameLayout>
  • 您的Java代码:

    public class MainActivity extends Activity {     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);
    
            setContentView(R.layout.activity_main);
            findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {             @Override public void onClick(View v) {                 ToolTip toolTip = new ToolTip.Builder()
                        .withText("Simple Tool Tip!")
                        .build(); ToolTipView toolTipView = new ToolTipView.Builder(this)
                        .withAnchor(v)
                        .withToolTip(toolTip)
                        .build();
                    toolTipView.show();
                }
            });
        }
    }

本文地址:https://codercto.com/soft/d/4377.html

架构整洁之道

架构整洁之道

【美】Robert C. Martin(罗伯特 C. 马丁) / 电子工业出版社 / 2018-9 / 99.00元

《架构整洁之道》是创造“Clean神话”的Bob大叔在架构领域的登峰之作,围绕“架构整洁”这一重要导向,系统地剖析其缘起、内涵及应用场景,涵盖软件研发完整过程及所有核心架构模式。《架构整洁之道》分为6部分,第1部分纲领性地提出软件架构设计的终极目标,描述软件架构设计的重点与模式;第2~4部分从软件开发中三个基础编程范式的定义和特征出发,进一步描述函数、组件、服务设计与实现的定律,以及它们是如何有效......一起来看看 《架构整洁之道》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具