<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Android Tool TipAndroid 程序提示條添加

          聯(lián)合創(chuàng)作 · 2023-09-24 09:39

          Android Tool Tip 是一個給你的 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();
                        }
                    });
                }
            }
          瀏覽 24
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  天天射视频 | 大香蕉伊人婷婷 | 国产无码三级 | 影音先锋痴女无码 | 男女操逼视频免费 |