学习Android的第一天,仿QQ登录界面、微信发现界面
仿制微信发现界面
你好!这是我的第一篇博客,同时也是我学习Android的一篇网上笔记。记录和分享每个人与众不同的经历与经验,想来也是博客诞生的原因吧。 好了话不多说,直接进入主题!
仿微信发现界面源码与效果图
<?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:background="#ebebeb"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/wxTitle"
android:layout_width="match_parent"
android:layout_height="79dp"
android:background="#303030">
<LinearLayout
android:id="@+id/wxLogo"
android:layout_width="120dp"
android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:gravity="center_vertical"
android:text="微信"
android:textColor="#f0f0f0"
android:textSize="25sp" />
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="210dp"
android:layout_toRightOf="@+id/wxLogo"
android:background="@drawable/logo1_1" />
</RelativeLayout>
<TextView
android:id="@+id/oneText"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_below="@+id/wxTitle"
android:layout_marginTop="25dp"
android:background="#ffffff"
android:drawableLeft="@drawable/logo1"
android:text="朋友圈"
android:textSize="24dp"
android:textColor="#3c3c3c"
android:gravity="center_vertical"/>
<TextView
android:id="@+id/twoText"
android:layout_width