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>
  • 相关阅读:
    Ace
    微信公众平台模版消息
    微信智能开放平台
    微信公众平台运营规范
    微信公众平台开发(80) 上传下载多媒体文件
    .net上传文件夹的解决方案
    php上传文件夹的解决方案
    jsp上传文件夹的解决方案
    浏览器上传文件夹的解决方案
    网页上传文件夹的解决方案
  • 原文地址:https://www.cnblogs.com/123-sxs/p/13330042.html
Copyright © 2011-2022 走看看