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

SQL必知必会

SQL必知必会

福达 (Ben Forta) / 钟鸣、刘晓霞 / 人民邮电出版社 / 2013-5-1 / 29.00元

SQL语法简洁,使用方式灵活,功能强大,已经成为当今程序员不可或缺的技能。 本书是深受世界各地读者欢迎的SQL经典畅销书,内容丰富,文字简洁明快,针对Oracle、SQL Server、MySQL、DB2、PostgreSQL、SQLite等各种主流数据库提供了大量简明的实例。与其他同类图书不同,它没有过多阐述数据库基础理论,而是专门针对一线软件开发人员,直接从SQL SELECT开始,讲述......一起来看看 《SQL必知必会》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具