zoukankan      html  css  js  c++  java
  • 2021 4 11

    云相册ui设计:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:layout_gravity="bottom">
            <RadioGroup
                android:id="@+id/home_tb"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentBottom="true"
                android:background="@color/colorTab"
                android:orientation="horizontal">
                <RadioButton
                    android:id="@+id/photo_album"
                    style="@style/Custom.TabRadioButton"
                    android:layout_width="100dp"
                    android:checked="true"
                    android:text="相册" />
                 <ImageView
                    android:id="@+id/take_a_picture"
                    style="@style/Custom.TabRadioButton"
                    android:background="@drawable/background_camera"
                    android:src="@drawable/ic_menu_camera" />
                <RadioButton
                    android:id="@+id/photo_editing"
                    style="@style/Custom.TabRadioButton"
                    android:layout_width="100dp"
                    android:text="剪辑" />
            </RadioGroup>
    </LinearLayout>
    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/nav_header_main"
        android:layout_width="match_parent"
        android:layout_height="@dimen/nav_header_height"
        android:background="@drawable/side_nav_bar"
        android:gravity="bottom"
        android:orientation="vertical"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:theme="@style/ThemeOverlay.AppCompat.Dark">
    
        <!-- 头像 -->
        <ImageView
            android:id="@+id/Head_portrait"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:layout_marginBottom="27dp"
            android:contentDescription="@string/nav_header_desc"
            android:paddingTop="@dimen/nav_header_vertical_spacing"
            app:srcCompat="@mipmap/ic_cream_round" />
    
        <!-- 用户名 -->
        <TextView
            android:id="@+id/User_Name"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:layout_toRightOf="@+id/Head_portrait"
            android:layout_marginLeft="25dp"
            android:layout_marginTop="35dp"
            android:textSize="20dp"
            android:text="用户名:"/>
    
    </RelativeLayout>
  • 相关阅读:
    Linux内核分析第七周学习笔记——Linux内核如何装载和启动一个可执行程序
    <深入理解计算机系统>第七章读书笔记
    Linux内核分析第六周学习笔记——分析Linux内核创建一个新进程的过程
    linux内核分析第3章&第18章读书笔记
    Linux内核分析第五周学习总结——分析system_call中断处理过程
    课本第五章读书笔记
    Linux内核分析第四周学习总结——系统调用的工作机制
    课本第一二章读书笔记
    20162328蔡文琛 实验二 树
    20162328蔡文琛 大二week07
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14910352.html
Copyright © 2011-2022 走看看