ym6745476 / andbase Goto Github PK
View Code? Open in Web Editor NEWandbase快速开发框架@Deprecated
andbase快速开发框架@Deprecated
使用轮子UI控件时,选项和单位会错位,不知道是什么问题
不完美解决方法
使用RelativeLayout套嵌
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--为了解决滑动事件冲突而添加的RL-->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:descendantFocusability="blocksDescendants">
<android.support.v7.widget.RecyclerView
android:id="@+id/mListView" />
</RelativeLayout>
</ScrollView>
但是还是有bug 会显示不了最后一条数据
由于AndBaseDemo不包含Gradle,故AndroidStudio无法识别
如果在黑屏的情况下, 弹窗.回报异常,大神遇到过这种情况没?
Slidingmenu在全屏的界面中,隐藏的虚拟按键会变成一块灰色色块,怎么让虚拟按键完全隐藏
1手机黑屏时,弹窗,报错.
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
在onload中直接写loadfinish(),回报空指针异常.
发现原因先执行onLoad(),之后才mIndeterminateView 赋值, loadfinish()时停止动画,mIndeterminateView 为null,
// 显示进度框
mDialogFragment = AbDialogUtil.showLoadDialog(ARoutInfoActivity.this,
R.drawable.ic_load, "查询中,请稍等...");
mDialogFragment.setAbDialogOnLoadListener(new AbDialogOnLoadListener() {
@Override
public void onLoad() {
mDialogFragment.loadFinish();
}
});
//源码
public void load(View v){
if(mAbDialogOnLoadListener!=null){
mAbDialogOnLoadListener.onLoad();
}
mIndeterminateView = v;
AbAnimationUtil.playRotateAnimation(mIndeterminateView, 300, Animation.INFINITE,
Animation.RESTART);
}
public void setContentView(int layoutResID) {
super.setContentView(layoutResID);
initIocView();
}
和
public void setAbContentView(View contentView) {
contentLayout.removeAllViews();
contentLayout.addView(contentView,new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
//ioc
initIocView();
}
中都有initIocView();在实践开发中如果这样:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);//父类方法中会调用setContentView
setAbContentView(R.layout.activity_main);
}
就会调用两次initIocView();如果界面定义的iocview比较多的话,性能会有较大影响
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.