大数据中仿照qq界面接收短信的界面效果图的示例代码怎么写
这篇文章跟大家分析一下"仿照qq界面接收短信的界面效果图的示例代码怎么写"。内容详细易懂,对"仿照qq界面接收短信的界面效果图的示例代码怎么写"感兴趣的朋友可以跟着小编的思路慢慢深入来阅读一下,希望阅读后能够对大家有所帮助。下面跟着小编一起深入学习"仿照qq界面接收短信的界面效果图的示例代码怎么写"的知识吧。
我这个布局主要采用Relativelayout实现的,因为RelativeLayou是一个用于设计用户界面的强大工具,因为它能消除嵌套视图组和保持我们布局为扁平结构,这可以提高运行时性能。如果我们采用了多个嵌套的LinearLayout组,我们应该采用一个单独的RelativeLayout来替代。
android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/color_white" android:orientation="vertical" > android:id="@+id/img_head_portrait" android:layout_width="60dp" android:layout_height="60dp" android:layout_margin="@dimen/ten" android:src="@drawable/pic_avatar_tom3" /> android:id="@+id/txt_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/ten" android:layout_toRightOf="@+id/img_head_portrait" android:text="@string/liuqiangdong" android:textColor="@color/color_dark_black" android:textSize="@dimen/fifteen" /> android:id="@+id/txt_talk_content" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/txt_name" android:layout_marginTop="@dimen/fifteen" android:layout_toRightOf="@+id/img_head_portrait" android:text="刘强东投资人约谈" android:textColor="@color/color_search" /> android:id="@+id/txt_talk_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_marginRight="@dimen/ten" android:layout_marginTop="@dimen/ten" android:text="11:10" android:textColor="@color/color_search" /> android:id="@+id/txt_talk_num" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_below="@+id/txt_talk_time" android:layout_marginRight="@dimen/ten" android:layout_marginTop="@dimen/ten" android:background="@drawable/ico_remind" android:text="1" android:gravity="center" android:textColor="@color/color_white" />
关于仿照qq界面接收短信的界面效果图的示例代码怎么写就分享到这里啦,希望上述内容能够让大家有所提升。如果想要学习更多知识,请大家多多留意小编的更新。谢谢大家关注一下网站!