为了账号安全,请及时绑定邮箱和手机立即绑定

怎么设置title之类的都没有显示

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:tools="http://schemas.android.com/tools"

    xmlns:hyman="http://schemas.android.com/apk/res/com.example.dome"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:background="#fff"

    >


<com.example.dome.view.Topbar

    android:layout_width="match_parent"

    android:layout_height="40dp"

    hyman:mtitle="自定义"

    hyman:mtitleTextColor="#123412"

 >

</com.example.dome.view.Topbar>


</RelativeLayout>


正在回答

3 回答

eclipse 下不会马上显示,在模拟器上看下是不是有了

0 回复 有任何疑惑可以回复我~
xmlns:hyman="http://schemas.android.com/apk/res/com.example.dome"

改为下面的试试。

xmlns:hyman="http://schemas.android.com/apk/res-auto"


0 回复 有任何疑惑可以回复我~

感觉不显示的可能有很多,你还是对比下视频内的代码,看看是不是哪里漏了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android UI模板设计
  • 参与学习       76061    人
  • 解答问题       223    个

快来学习如何在Android中自定义View,本次课程一定会让你获益匪浅

进入课程

怎么设置title之类的都没有显示

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信