Git Product home page Git Product logo

arieshoo / uiwidget Goto Github PK

View Code? Open in Web Editor NEW
425.0 11.0 76.0 193.15 MB

一个集成TabLayout、UIAlertDialog、UIActionSheetDialog、UIProgressDialog、TitleBarView(自带沉浸式标题栏)、CollapsingTitleBarLayout、RadiusView(圆角及状态背景设置View解放shape文件)、KeyboardHelper(软键盘控制及遮挡控制类)、StatusViewHelper(状态栏沉浸帮助类)、NavigationViewHelper(导航栏沉浸式帮助类)、AlphaViewHelper(View透明度控制帮助类) 等项目常用UI库

License: Apache License 2.0

Java 100.00%
titlebarview toolbar alert actionsheet loading radius statusbar navigationbar

uiwidget's Introduction

UIWidget


因Github图片解析异常可使用Gitee备用仓库查看

简介:

一个集成UIAlertDialogUIActionSheetDialogUIProgressDialogRadiusViewTitleBarViewCollapsingTitleBarLayoutStatusViewHelperNavigationViewHelper 等项目常用UI库

Download-蒲公英(安装密码1)

Download-github

Stargazers over time

Gradle集成

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

3.0.0及以后版本-core为核心库、alert及collapsing默认compile了core库
dependencies {
     //implementation 'com.github.AriesHoo.UIWidget:widget-core:3.2.25'
     //implementation 'com.github.AriesHoo.UIWidget:widget-alert:3.2.25'
     //implementation 'com.github.AriesHoo.UIWidget:widget-collapsing:3.2.25'
     //implementation 'com.github.AriesHoo.UIWidget:tab-layout:3.2.25'
     implementation 'com.github.AriesHoo.UIWidget:widget-core:${LATEST_VERSION}'
     implementation 'com.github.AriesHoo.UIWidget:widget-alert:${LATEST_VERSION}'
     implementation 'com.github.AriesHoo.UIWidget:widget-collapsing:${LATEST_VERSION}'
     implementation 'com.github.AriesHoo.UIWidget:tab-layout:${LATEST_VERSION}'
}
3.0.0以前版本
dependencies {
     //implementation 'com.github.AriesHoo:UIWidget:2.0.9'
     implementation 'com.github.AriesHoo:UIWidget:${LATEST_VERSION}'
}

Maven集成

<repositories>
     <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
     </repository>
</repositories>
3.0.0以后版本
<dependency>
    <groupId>com.github.AriesHoo.UIWidget</groupId>
    <artifactId>widget-core</artifactId>
    <artifactId>widget-collapsing</artifactId>
    <artifactId>widget-alert</artifactId>
    <artifactId>tab-layout</artifactId>
    <version>3.2.25</version>
</dependency>
3.0.0以前版本
<dependency>
    <groupId>com.github.AriesHoo</groupId>
    <artifactId>UIWidget</artifactId>
    <version>2.0.9</version>
</dependency>

关于混淆

1、3.2.21版本开始自带混淆规则,并且会自动导入,正常情况下无需手动导入。

2、3.2.21以前版本设置混淆貌似也正常运行。-如有问题麻烦反馈

重大更新日志

特别声明

1、3.2.7 是最后一个support包版本

2、3.2.7-androidx 为第一个androidx版本 以后版本均为androidx版本注意不要support与androidx冲突

3、多看源码注释及Demo演示,学会自己解决问题

  • 3.2.20

    • 将原TabLayout库移至本库维护
  • 3.2.19

    • NavigationBarUtil 判断是否支持导航栏黑、白色文字icon变换方法isSupportNavigationBarFontChange
    • NavigationViewHelper、StatusViewHelper增加快速设置黑色、白色沉浸效果方法setWhiteStyle及setBlackStyle
    • StatusBarUtil增加判断是否状态栏隐藏isHideStatusBar、隐藏状态栏hideStatusBar、设置全屏setFullScreen方法fix33
    • NavigationBarUtil增加判断是否导航栏隐藏isHideNavigationBar、隐藏导航栏hideNavigationBar方法
  • 3.2.17

    • 新增:StatusBarUtil增加OPPO 4.4至6.0状态栏黑色文字图标相关Api-开发者无需变更代码逻辑
    • 新增:NavigationViewHelper增加setPlusNavigationViewEnable参数以直接添加View只Window根布局及设置paddingBottom 生命周期监听控制销毁相关逻辑
    • 修复:修复RadiusViewDelegate 里setSelected发送效果不生效BUG
    • 修改NavigationBarUtil Android O 导航栏黑色图标版本判断问题
    • 移除KeyboardHelper with方法设置contentView参数同步移除NavigationViewHelper中对应方法
  • 3.2.14

    • 新增刘海屏工具类NotchUtil并优化TitleBarView及StatusViewHelper对刘海屏的兼容
    • 新增滚动ObservableScrollView及ObservableWebView添加滚动监听事件
  • 3.2.11

    • TitleBarView增加addLeftAction、addCenterAction、addRightAction 重写Api并重新优化撤销沉浸逻辑
    • StatusViewHelper修订Api并增加撤销效果逻辑
    • NavigationBarUtil 增加导航栏深色图标模式Api
    • NavigationViewHelper增加Dialog支持配置KeyboardHelper也增加Dialog支持,并优化增加假导航栏逻辑
    • UIActionSheetDialog增加导航控制监听方法
  • 3.2.7-androidx

    • 3.2.7 更换androidx支持
  • 3.2.7 更新      

    • 3.2.6 beta 的最后一个稳定support版本
  • 3.2.3 更新      

    • 优化:优化UIActionSheetDialog 导航栏控制逻辑 
    • 优化:新增NavigationViewHelper 设置假View DrawableTop属性
    • 优化:调整RadiusView Drawable及TextColor、BackgroundColor、StrokeColor 设置逻辑
  • 3.2.1 更新        

    • 修复:RadiusView下新增TextView及CheckBox等代理类用于解决泛型错误BUG
    • 优化:使用AS 3.1.2 + Gradle 4.4进行优化
    • 优化:增加AlphaViewHelper 按下及不可操作 alpha值通过Style 设置--参考demo Style样式
    • 优化:去掉默认控制是否可点击控制,调整水波纹效果开启逻辑
  • 3.1.0 更新        

    • 发布正式版本
  • 3.0.0-alpha5 更新        

    • 修改TitleBarView 方法setOutPadding 逻辑以增加左右TextView 点击范围
    • 修改UIActionSheetDialog 控制Title、Item、Cancel已经CancelMarginTop逻辑方法控制各种形式下背景Drawable
  • 3.0.0-alpha4 更新        

    • 新增BasisDialog控制虚拟导航栏效果的方法-初试
    • 新增UIActionSheetDialog 控制View是否手指拖拽(通过V4包ViewDragHelper实现)
  • 3.0.0-alpha3 更新        

    • 新增UIActionSheetDialog 设置文本与图片间隔
    • 删除UIAlertView、UIActionSheetView、UIProgressView及相应的资源文件
  • 3.0.0-alpha 更新

    • 完整重构整个UI库-拆分库为widget-core(TitleBarView、RadiusView、AlphaView、Helper、UIActionSheetDialog、UIProgressDialog)、widget-alert、widget-collapsing
    • widget-core新增状态栏控制帮助类StatusViewHelper及虚拟导航栏控制帮助类NavigationViewHelper
    • widget-core新增控制View按下透明度变化帮助类AlphaViewHelper 并增加对应常用View控件AlphaTextView、AlphaCheckBox、AlphaRadioButton、AlphaRelativeLayout等基础控件
    • TitleBarView属性规范并删除部分冗余属性;增加与widget-collapsing库中CollapsingTitleBarLayout配合达到CollapsingToolbarLayout+Toolbar效果参考TitleWithCollapsingLayoutActivity
    • RadiusView 增加RadiusSwitch并将属性规范并拆分不同的delegate代理类管理
    • 新增UIActionSheetDialog 添加不同Builder用于替换原有UIActionSheetView控件UIActionSheetView标记为废弃正式版本移除
    • 新增UIProgressDialog 添加不同Builder用于替换原有UIProgressView控件UIProgressView标记为废弃正式版本移除
    • 新增UIAlertDialog 添加不同Builder用于替换原有UIAlertView控件UIAlertView标记为废弃正式版本移除
  • 2.0.5 更新

录屏预览

TabLayout

CommonTabLayout

SlidingTabLayout

SegmentTabLayout

刘海屏

widget

StatusViewHelper

TitleBarView

TitleBarView-添加自定义Action

UIAlertDialog

UIActionSheetDialog

UIProgressDialog

RadiusView

模拟器软键盘控制

华为可隐藏软键盘控制

华为全面屏手势控制

TabLayout-FlycoTabLayout 2.1.2版本基础上优化修改的快速创建Tab库

自定义属性

修改了几个参数拼写 删除线标识为原库属性,下一行为修改后属性

name format description
tl_indicator_color color 设置显示器颜色
tl_indicator_height dimension 设置显示器高度
tl_indicator_width dimension 设置显示器固定宽度
tl_indicator_margin_left dimension 设置显示器margin,当indicator_width大于0,无效
tl_indicator_margin_top dimension 设置显示器margin,当indicator_width大于0,无效
tl_indicator_margin_right dimension 设置显示器margin,当indicator_width大于0,无效
tl_indicator_margin_bottom dimension 设置显示器margin,当indicator_width大于0,无效
tl_indicator_corner_radius dimension 设置显示器圆角弧度
tl_indicator_gravity enum 设置显示器上方(TOP)还是下方(BOTTOM),只对常规显示器有用
tl_indicator_style enum 设置显示器为常规(NORMAL)或三角形(TRIANGLE)或背景色块(BLOCK)
tl_underline_color color 设置下划线颜色
tl_underline_height dimension 设置下划线高度
tl_underline_gravity enum 设置下划线上方(TOP)还是下方(BOTTOM)
tl_divider_color color 设置分割线颜色
tl_divider_width dimension 设置分割线宽度
tl_divider_padding dimension 设置分割线的paddingTop和paddingBottom
tl_tab_padding dimension 设置tab的paddingLeft和paddingRight
tl_tab_space_equal boolean 设置tab大小等分
tl_tab_width dimension 设置tab固定大小
tl_textsize dimension 设置字体大小
tl_textSize dimension 设置字体大小
tl_textSelectSize dimension 设置选中字体大小
tl_textSelectColor color 设置字体选中颜色
tl_textUnselectColor color 设置字体未选中颜色
tl_textUnSelectColor color 设置字体未选中颜色
tl_textBold boolean 设置字体加粗
tl_iconWidth dimension 设置icon宽度(仅支持CommonTabLayout)
tl_iconHeight dimension 设置icon高度(仅支持CommonTabLayout)
tl_iconVisible boolean 设置icon是否可见(仅支持CommonTabLayout)
tl_iconGravity enum 设置icon显示位置,对应Gravity中常量值,左上右下(仅支持CommonTabLayout)
tl_iconMargin dimension 设置icon与文字间距(仅支持CommonTabLayout)
tl_indicator_anim_enable boolean 设置显示器支持动画(only for CommonTabLayout)
tl_indicator_anim_duration integer 设置显示器动画时间(only for CommonTabLayout)
tl_indicator_bounce_enable boolean 设置显示器支持动画回弹效果(only for CommonTabLayout)
tl_indicator_width_equal_title boolean 设置显示器与标题一样长(only for SlidingTabLayout)

自定义属性java代码调用

仅自定义属性通过代理类设置其它如setCurrentTab 还是原来调用模式不变

tab.getDelegate() .setXXX() .setYYY();

 mTabLayout.getDelegate()
                .setTextSelectColor(ContextCompat.getColor(mContext, R.color.colorTabTextSelect))
                .setTextUnSelectColor(ContextCompat.getColor(mContext, R.color.colorTabTextUnSelect))
                .setUnderlineColor(ContextCompat.getColor(mContext, R.color.colorTabUnderline))
                .setTextSize(TypedValue.COMPLEX_UNIT_PX, mContext.getResources().getDimensionPixelSize(R.dimen.dp_tab_text_size))
                .setUnderlineGravity(Gravity.TOP)
                .setUnderlineHeight(mContext.getResources().getDimension(R.dimen.dp_tab_underline))
                .setIconMargin(mContext.getResources().getDimensionPixelSize(R.dimen.dp_tab_margin))
                .setIconWidth(mContext.getResources().getDimensionPixelSize(R.dimen.dp_tab_icon))
                .setIconHeight(mContext.getResources().getDimensionPixelSize(R.dimen.dp_tab_icon))
                //设置指示器高度为0
                .setIndicatorHeight(0);

UIAlertDialog属性控制

UIAlertDialog alertDialog = new UIAlertDialog.DividerQQBuilder(this)
                        //设置背景--包括根布局及Button
                        .setBackgroundColor(Color.WHITE)
//                        .setBackground(drawable)
//                        .setBackgroundResource(resId)
                        //设置按下背景--Button
                        .setBackgroundPressedColor(Color.argb(255, 240, 240, 240))
//                        .setBackgroundPressed(drawable)
//                        .setBackgroundPressedResource(resId)
                        //背景圆角(当背景及按下背景为ColorDrawable有效)-根布局及Button
                        .setBackgroundRadius(6f)
//                        .setBackgroundRadiusResource(resId)
                        //设置统一padding
                        .setPadding(SizeUtil.dp2px(20))
                        //设置根布局最小高度
                        .setMinHeight(SizeUtil.dp2px(160))
                        .setElevation(12f)

                        //设置Title上边分割线颜色--推荐
                        .setTitleDividerColor(Color.RED)
//                        .setTitleDividerResource(resId)
//                        .setTitleDivider(drawable)
                        //设置Title分割线高度
                        .setTitleDividerHeight(SizeUtil.dp2px(4))
//                        .setTitleDividerHeightResource(resId)
                        //设置TextView对应的尺寸单位
                        .setTextSizeUnit(TypedValue.COMPLEX_UNIT_DIP)
                        .setLineSpacingExtra(0f)
                        .setLineSpacingMultiplier(1.0f)
                        //设置Title文本
                        .setTitle("UIAlertDialog示例头部")
//                        .setTitle(resId)
                        //设置Title文本颜色
                        .setTitleTextColor(Color.BLACK)
//                        .setTitleTextColor(ColorStateList)
//                        .setTitleTextColorResource(resId)
                        //设置Title文本尺寸
                        .setTitleTextSize(20f)
                        //设置Title文本对齐方式
                        .setTitleTextGravity(Gravity.CENTER)
                        //设置Title文本是否加粗
                        .setTitleTextFakeBoldEnable(false)

                        //设置Message文本
                        .setMessage(Html.fromHtml(String.format(mFormatName, "你将退出 ", "四川移动爱分享抢流量(XXXXXXXX)", "退群通知仅群管理员可见。")))
//                        .setMessage(resId)
                        //设置Message文本颜色
                        .setMessageTextColor(Color.BLACK)
//                        .setMessageTextColor(ColorStateList)
//                        .setMessageTextColorResource(resId)
                        //设置Message文本尺寸
                        .setMessageTextSize(16f)
                        //设置Message文本对齐方式
                        .setMessageTextGravity(Gravity.CENTER)
                        //设置Title文本是否加粗
                        .setMessageTextFakeBoldEnable(false)

                        //设置View --始终在Message下边
//                        .setView(View)
//                        .setView(layoutId)

                        //设置是否去掉Button按下阴影-5.0以后的新特性
                        .setBorderLessButtonEnable(true)
                        //文本及点击事件
                        .setNegativeButton("取消", onAlertClick)
//                        .setNegativeButton(resId,click)
                        //文本颜色
                        .setNegativeButtonTextColor(Color.BLACK)
//                        .setNegativeButtonTextColor(ColorStateList)
//                        .setNegativeButtonTextColorResource(resId)
                        //文本尺寸
                        .setNegativeButtonTextSize(18f)
                        //是否粗体
                        .setNegativeButtonFakeBoldEnable(false)

                        //文本及点击事件
                        .setNeutralButton("考虑", onAlertClick)
//                        .setNeutralButton(resId,click)
                        //文本颜色
                        .setNeutralButtonTextColor(Color.BLACK)
//                        .setNeutralButtonTextColor(ColorStateList)
//                        .setNeutralButtonTextColorResource(resId)
                        //文本尺寸
                        .setNeutralButtonTextSize(18f)
                        //是否粗体
                        .setNeutralButtonFakeBoldEnable(false)

                        //文本及点击事件
                        .setPositiveButton("退出", onAlertClick)
//                        .setPositiveButton(resId,click)
                        //文本颜色
                        .setPositiveButtonTextColor(Color.BLACK)
//                        .setPositiveButtonTextColor(ColorStateList)
//                        .setPositiveButtonTextColorResource(resId)
                        //文本尺寸
                        .setPositiveButtonTextSize(18f)
                        //是否粗体
                        .setPositiveButtonFakeBoldEnable(false)

                        //设置点击返回键是否可关闭Window
                        .setCancelable(true)
                        //设置点击非布局是否关闭Window
                        .setCanceledOnTouchOutside(true)
                        //设置Window dismiss()监听
                        .setOnDismissListener(new DialogInterface.OnDismissListener() {
                            @Override
                            public void onDismiss(DialogInterface dialog) {

                            }
                        })
                        //设置Window cancel()监听
                        .setOnCancelListener(new DialogInterface.OnCancelListener() {
                            @Override
                            public void onCancel(DialogInterface dialog) {

                            }
                        })
                        //设置 window show()监听
                        .setOnShowListenerer(new DialogInterface.OnShowListener() {
                            @Override
                            public void onShow(DialogInterface dialog) {

                            }
                        })
                        //设置Window 键盘事件监听
                        .setOnKeyListener(new DialogInterface.OnKeyListener() {
                            @Override
                            public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
                                return false;
                            }
                        })
                        .setOnTextViewLineListener(new BasisDialog.OnTextViewLineListener() {
                            @Override
                            public void onTextViewLineListener(TextView textView, int lineCount) {
                                switch (textView.getId()) {
                                    case R.id.tv_titleAlertDialog:
                                        break;
                                    case R.id.tv_messageAlertDialog:
                                        break;
                                    case R.id.btn_negativeAlertDialog:
                                        break;
                                    case R.id.btn_neutralAlertDialog:
                                        break;
                                    case R.id.btn_positiveAlertDialog:
                                        break;
                                }
                            }
                        })

                        //创建Dialog
                        .create()
                        //设置Window宽度
                        .setWidth(WindowManager.LayoutParams.WRAP_CONTENT)
                        //设置Window高度
                        .setHeight(WindowManager.LayoutParams.WRAP_CONTENT)
                        //设置Window 阴影程度
                        .setDimAmount(0.6f)
                        //设置window其它属性
//                        .setAttributes(WindowManager.LayoutParams)
                        //设置window动画
//                        .setWindowAnimations(resId)
                        //设置Window 位置
                        .setGravity(Gravity.CENTER);
                alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE);
                alertDialog.getButton(DialogInterface.BUTTON_NEUTRAL);
                alertDialog.getButton(DialogInterface.BUTTON_POSITIVE);
                alertDialog.show();

License

Copyright 2016-2021 Aries Hoo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

uiwidget's People

Contributors

arieshoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uiwidget's Issues

混淆

混淆 什么时候加上?

UIAlertView的問題

我使用了setView以後,UIAlertView並沒有反應?想請問一下該怎麼在對話框放入EditText?

关于UIAlertView的对齐

有一个美观上的需求:
UIAlertView能否这样:如果文字只有一行且没有换行的情况下默认是居中显示,只要有换行则默认为左对齐,这样好像更美观些。因为我这里弹出框写成的公用的,消息也为后台返回,但消息很短时居左有点不好看,所以有这样一个建议,请码主考虑下

关于字体选中放大缩小 向右滑动代码修正

@Override
public void onAnimationUpdate(ValueAnimator animation) {
    View currentTabView = mTabsContainer.getChildAt(this.mCurrentTab);
    IndicatorPoint p = (IndicatorPoint) animation.getAnimatedValue();
    mIndicatorRect.left = (int) p.left;
    mIndicatorRect.right = (int) p.right;

    //indicatorWidth小于0时,原jpardogo's PagerSlidingTabStrip
    if (getDelegate().getIndicatorWidth() < 0) {

    } else {//indicatorWidth大于0时,圆角矩形以及三角形

        if (mLastTab > mCurrentTab){
            float indicatorLeft = p.left + (currentTabView.getWidth() - getDelegate().getIndicatorWidth()) / 2;

            mIndicatorRect.left = (int) indicatorLeft;
            mIndicatorRect.right = (int) (mIndicatorRect.left + getDelegate().getIndicatorWidth());
        }else {

            float indicatorLeft = p.right + (currentTabView.getWidth() - getDelegate().getIndicatorWidth()) / 2;

            mIndicatorRect.left = (int) indicatorLeft;
            mIndicatorRect.right = (int) (mIndicatorRect.right + getDelegate().getIndicatorWidth());
        }

    }
    invalidate();
}

SlidingTabLayout 点选 Tab 时并不会平滑滚动?

测试手机为HTC U11,Android 9.0

SlidingTabLayout原码中.smoothScroll预设为false

public SlidingTabLayout setCurrentTab(int currentTab) {
        return setCurrentTab(currentTab, false);
}

虽然有提供另一个重载setCurrentTab(currentTab,smoothScroll)

但SlidingTabLayout中的addTab,onRestoreInstanceState

都是直接引用setCurrentTab(mCurrentTab)......是否导致导致点击Tab时,并没有隐藏gif上的平滑效果的原因呢?

UIAlertView设置message居中无效

  UIAlertView alert = new UIAlertView(getActivity());
            alert.setMessage("是否确定退出登录", Gravity.CENTER)
                    .setMinHeight(FontDisplayUtil.dip2px(_mActivity, 80));
            alert.setNegativeButton("取消", (dialog, view) -> alert.dismiss())
                    .setPositiveButton("确定", ((dialog, which) -> {
                        alert.dismiss();
                        logout();
                    }));
            alert.show();

image

设置后居中无效

Enable和rippleEnable冲突

image
代码如上 , 同时设置 enable="false" & rv_rippleEnable="ture"
在AS预览界面中没有问题 , 实际运行后TextView的背景色依然是可点击状态下的颜色 , 但点击后是没效果的 , 就背景色不对

有个奇怪的问题

  1. 我在海马玩模拟器里装上appdemo测试,发现uialertview点按钮过久才会有反映,但在我手机里又没事,不知道什么原因,平时开发都是在模拟器里搞,总以为有问题,但一想真机没事就算了,可我在这个模拟器里用其它的弹框组件也没出现这个问题啊,可有真机里还有按下的阴影效果,但在模拟器里就没有了任何效果
  2. 另外问下弹出输入框的输入区域的背景颜色如何修改

有个黑色的线,在状态栏

点击左侧的返回按键,从下一个页面返回上一个页面的时候,状态栏右上角会出现个黑线,有什么解决方案?急急急
我有个视频上传不了,您的联系方式能给我一个么

米PAD打开就闪退

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.aries.ui.widget.demo, PID: 30071
java.lang.RuntimeException: Unable to get provider com.just.library.AgentWebFileProvider: java.lang.ClassNotFoundException: Didn't find class "com.just.library.AgentWebFileProvider" on path: DexPathList[[zip file "/data/app/com.aries.ui.widget.demo-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.aries.ui.widget.demo-1, /vendor/lib, /system/lib]]
at android.app.ActivityThread.installProvider(ActivityThread.java:4804)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4396)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4336)
at android.app.ActivityThread.access$1500(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1270)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5028)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.just.library.AgentWebFileProvider" on path: DexPathList[[zip file "/data/app/com.aries.ui.widget.demo-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.aries.ui.widget.demo-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.ActivityThread.installProvider(ActivityThread.java:4789)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4396) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4336) 
at android.app.ActivityThread.access$1500(ActivityThread.java:139) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1270) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5028) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607) 
at dalvik.system.NativeStart.main(Native Method) 

dialog控件

感谢作者的提供的控件,本身已经很不错了,如果支持列表以及列表条目选择(包括单选、多选)就更好了。还有就是如果是基于DialogFragment的话,就更完美了,毕竟谷歌官方都是推荐使用DialogFragment来创建对话框,这样能更好管理其生命周期,尤其是屏幕翻转时的处理。

关于自定义action的问题

action自定义了,中间和右边,布局会显示不全
下面是自定义action布局
image
代码设置
image
显示效果
IMG_20190409_170705

这个是什么原因造成的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.