Android TV 键盘样式开发
2024-09-07 09:07:11
布局:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:orientation="horizontal"> <com.example.appdome.view.CircleImageView
android:id="@+id/v_item_head_img"
android:layout_width="0dp"
android:layout_marginLeft="10dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/v_head_style"
/> <TextView
android:id="@+id/v_item_head_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2" /> <TextView
android:id="@+id/v_item_head_date"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1.5"
android:gravity="center_vertical" android:text="aaa"/> </LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="10"
android:orientation="vertical"> <ImageView android:id="@+id/v_item_body_img" android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="9" /> <TextView
android:id="@+id/v_item_body_txt"
android:layout_width="match_parent"
android:layout_height="0dp"
android:gravity="center_vertical"
android:text="123455"
android:paddingLeft="10dp"
android:textColor="#000000"
android:layout_weight="1" /> </LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:orientation="horizontal"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingTop="15dp"
android:paddingBottom="20dp"
android:orientation="horizontal"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> <ImageView
android:id="@+id/v_item_footer_g_img" android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
/> <TextView
android:id="@+id/v_item_footer_g_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="111"
android:layout_weight="1.5" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> </LinearLayout> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:paddingTop="15dp"
android:paddingBottom="20dp"
android:layout_weight="1"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> <com.example.appdome.view.RoundImageView
android:id="@+id/v_item_footer_c_img"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" /> <TextView
android:id="@+id/v_item_footer_c_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="111"
android:layout_weight="1.5" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> </LinearLayout> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:paddingTop="15dp"
android:paddingBottom="20dp"
android:layout_weight="1"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> <ImageView
android:id="@+id/v_item_footer_s_img" android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" /> <TextView
android:id="@+id/v_item_footer_s_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="111"
android:layout_weight="1.5" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" />
</LinearLayout> </LinearLayout> </LinearLayout>
最新文章
- 协同js库,代码编辑器
- HTML Table导出为Excel的方法
- javascript_04 数据类型
- fmri降噪,利用spatial+temporal信息
- Button 自定义(一)-shape
- JS将搜索的关键字高亮显示实现代码
- Win7 下安装RabbitMQ
- 解读sample3
- 基于session 的springMvc 国际化
- 配置PLSQL,提升工作效率
- Android Studio精彩案例(二)《仿微信动态点击底部tab切换Fragment》
- localStorage和sessionStorage区别(包括同源的定义)
- 【比赛】NOIP2018 铺设道路
- win10 同步批处理禁用和启用网卡
- java io系列25之 PrintWriter (字符打印输出流)
- C# web IIS服务器 DateTime 带中文解决
- 微信小程序-用户拒绝授权使用 wx.openSetting({}) 重新调起授权用户信息
- CSS初始化示例代码
- [No0000150]VSVisualStudio提示图标,信号图标的含义
- 计算概论(A)/基础编程练习(数据成分)/2:奥运奖牌计数