一.App的功能包括:
上传照片;
DIY专属祝福语;
一键分享到票圈~
二.准备工作
分析xml的样式布局,采用绝对布局RelativeLayout,我们可以容易处理各个组件之间的位置关系,包括两个ImageView存放图片,一个Button作为分享,还有一个EditText输入新年心愿
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg"
tools:context="demo.linhao.com.springcart.MainActivity">
android:id="@+id/photo"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerHorizontal="true"
android:background="#e10d0d"
android:class="lazyload" src="https://img-blog.csdnimg.cn/2022010619010413899.png" data-original="@drawable/ic_launcher"
android:padding="3dp"
android:layout_marginTop="80dp"/>
android:id="@+id/words"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/photo"
android:background="@drawable/send_btn_pressed"
android:layout_centerHorizontal="true"
android:hint="写下您的新年愿望"
android:gravity="cent