xiaohaibin / customtitlebar Goto Github PK
View Code? Open in Web Editor NEW:boom:【通用标题栏】通用Android标题栏控件 A Common Titlebar For Android
:boom:【通用标题栏】通用Android标题栏控件 A Common Titlebar For Android
怎么在java中修改自定义属性值 如标题
FATAL EXCEPTION: main
Process: com.taikang.weneed.app.mine, PID: 16865
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.taikang.weneed.app.mine/com.taikang.weneed.app.mine.activity.LoginActivity}: android.view.InflateException: Binary XML file line #11: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x7f01004a a=-1}
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1511)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6244)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:797)
Caused by: android.view.InflateException: Binary XML file line #11: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x7f01004a a=-1}
Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x7f01004a a=-1}
at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:761)
at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:7040)
at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:7221)
at android.widget.LinearLayout$LayoutParams.(LinearLayout.java:1926)
at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1824)
at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1823)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:860)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at com.taikang.weneed.app.mine.activity.LoginActivity.onCreate(LoginActivity.java:40)
at android.app.Activity.performCreate(Activity.java:6731)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2670)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1511)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6244)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:797)
怎么增加返回点击效果
建议中间标题支持类似微博效果:中间标题可设置文字&&图片,点击事件暴露回调方法
CustomTitileBar --> CustomTitleBar
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.