在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):AlexKolpa/fab-toolbar开源软件地址(OpenSource Url):https://github.com/AlexKolpa/fab-toolbar开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Floating Action Button ToolbarProvides the Floating Action Button Toolbar as specified in the Material Design Guide in a simple library. Usage<com.github.alexkolpa.fabtoolbar.FabToolbar
android:id="@+id/fab_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
tb:tb_anim_duration="500"
tb:tb_button_gravity="end"
tb:tb_container_gravity="center"
>
<ImageView
android:id="@+id/attach"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_attachment_white_48dp"
android:layout_marginLeft="@dimen/icon_margin"
android:layout_marginRight="@dimen/icon_margin"
/>
<!-- More buttons can be added here -->
</com.github.alexkolpa.fabtoolbar.FabToolbar> To hide or show the Toolbar, simply call FabToolbar fabToolbar = ((FabToolbar) findViewById(R.id.fab_toolbar));
findViewById(R.id.attach).setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
fabToolbar.hide();
}
}); Adding dependenciesGradle: dependencies {
compile 'com.github.alexkolpa:floating-action-button-toolbar:0.5.1'
} Maven: <dependency>
<groupId>com.github.alexkolpa</groupId>
<artifactId>floating-action-button-toolbar</artifactId>
<version>0.5.1</version>
</dependency> License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论