ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

每周总结八

2022-06-14 18:32:38  阅读:145  来源: 互联网

标签:总结 layout 每周 height width android id match


每周总结之第八周

  开始开发我们的软件搭建整体框架

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="timeline.lizimumu.com.t.ui.AboutActivity">

<ImageView
android:id="@+id/imageView"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="140dp"
android:contentDescription="@null"
android:src="@mipmap/ic_launcher" />

<TextView
android:id="@+id/version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_below="@+id/imageView"
android:gravity="center" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="36dp"
android:gravity="center"
android:text="@string/feedback" />

</RelativeLayout>

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="timeline.lizimumu.com.t.ui.DetailActivity">

<RelativeLayout
android:id="@+id/rr_header"
android:layout_width="match_parent"
android:layout_height="140dp"
android:background="@drawable/bg_detail_header"
android:padding="16dp">

<ImageView
android:id="@+id/icon"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_centerVertical="true"
android:contentDescription="@null"
android:transitionName="profile" />

<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/icon"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:layout_toEndOf="@+id/icon"
android:layout_toStartOf="@+id/open"
android:singleLine="true"
android:textSize="16sp" />

<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignStart="@+id/name"
android:layout_below="@+id/name"
android:layout_marginTop="4dp" />

<TextView
android:id="@+id/data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignStart="@+id/time"
android:layout_below="@+id/open"
android:textSize="13sp" />

<Button
android:id="@+id/open"
android:layout_width="wrap_content"
android:layout_height="32dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="@drawable/bg_button"
android:minHeight="0dp"
android:text="@string/open"
android:textColor="@android:color/white" />
</RelativeLayout>

<TextView
android:id="@+id/pkg_name"
android:layout_below="@+id/rr_header"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:background="@drawable/bg_detail_header"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<ProgressBar
android:id="@+id/progressBar"
android:visibility="gone"
android:layout_below="@+id/pkg_name"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
android:layout_margin="0dp"
android:padding="0dp"
android:indeterminateTint="@android:color/white"
android:minHeight="4dp"/>

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/progressBar"
android:layout_marginBottom="60dp" />

<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-4824796006151671/7160226729">
</com.google.android.gms.ads.AdView>

</RelativeLayout>

搜索

复制

标签:总结,layout,每周,height,width,android,id,match
来源: https://www.cnblogs.com/stdxxd/p/16375859.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有