zoukankan      html  css  js  c++  java
  • Android TV 键盘样式开发

    布局:

    <?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>
  • 相关阅读:
    POI简单初识 Demo (资源来自网络本人属于收藏总结)
    spring学习笔记(6)装配Bean 的种类和区别 【资源来自网络 版权非本人】
    springboot相关
    前沿技术Hyperledger
    MAC版的IDEA快捷键
    JSONObject put,accumulate,element的区别
    1027
    position窗口居中
    http 请求详解大全
    关于Spring注解
  • 原文地址:https://www.cnblogs.com/123-sxs/p/13330042.html
Copyright © 2011-2022 走看看