<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anuj Sharma on Medium]]></title>
        <description><![CDATA[Stories by Anuj Sharma on Medium]]></description>
        <link>https://medium.com/@anuj7sharma?source=rss-b4b6304f74b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DcARzUbDjzktBdtqDXB_Tg.jpeg</url>
            <title>Stories by Anuj Sharma on Medium</title>
            <link>https://medium.com/@anuj7sharma?source=rss-b4b6304f74b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:18:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anuj7sharma/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Create Interactive Login Screen]]></title>
            <link>https://medium.com/@anuj7sharma/create-interactive-login-screen-beeecc7bb8fb?source=rss-b4b6304f74b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/beeecc7bb8fb</guid>
            <category><![CDATA[log-in-screen]]></category>
            <category><![CDATA[drawables]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-xml]]></category>
            <category><![CDATA[layout]]></category>
            <dc:creator><![CDATA[Anuj Sharma]]></dc:creator>
            <pubDate>Wed, 22 Aug 2018 10:23:49 GMT</pubDate>
            <atom:updated>2018-08-22T10:23:49.896Z</atom:updated>
            <content:encoded><![CDATA[<p>This story is all about designing tweaks we use in mobile development. Its obvious to see Email, Password field on login screen but what if we surprise user with some unique designs.</p><p>This magic can be spread easily with the help of drawable xml in Android development.</p><blockquote>create <strong>bg_login.</strong>xml file.</blockquote><pre><em>&lt;?</em><strong>xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;</strong><em>?&gt;<br></em>&lt;<strong>layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;</strong>&gt;<br>    &lt;<strong>item<br><br>        android:drawable=&quot;#dc4c39&quot; </strong>/&gt;<br>    &lt;<strong>item android:bottom=&quot;220dp&quot;</strong>&gt;<br>        &lt;<strong>rotate<br>            android:fromDegrees=&quot;45&quot;<br>            android:pivotX=&quot;-5%&quot;<br>            android:pivotY=&quot;25%&quot;</strong>&gt;<br>            &lt;<strong>shape android:shape=&quot;rectangle&quot;</strong>&gt;<br>                &lt;<strong>corners android:radius=&quot;32dp&quot; </strong>/&gt;<br>                &lt;<strong>solid android:color=&quot;#FFFFFF&quot; </strong>/&gt;<br>            &lt;/<strong>shape</strong>&gt;<br>        &lt;/<strong>rotate</strong>&gt;<br>    &lt;/<strong>item</strong>&gt;<br><br>    &lt;<strong>item<br>        android:bottom=&quot;60dp&quot;<br>        android:right=&quot;25dp&quot;</strong>&gt;<br>        &lt;<strong>rotate<br>            android:fromDegrees=&quot;135&quot;<br>            android:pivotX=&quot;59%&quot;<br>            android:pivotY=&quot;95%&quot;</strong>&gt;<br>            &lt;<strong>shape android:shape=&quot;rectangle&quot;</strong>&gt;<br>                &lt;<strong>corners android:radius=&quot;32dp&quot; </strong>/&gt;<br>                &lt;<strong>solid android:color=&quot;#FFFFFF&quot; </strong>/&gt;<br>            &lt;/<strong>shape</strong>&gt;<br>        &lt;/<strong>rotate</strong>&gt;<br>    &lt;/<strong>item</strong>&gt;<br><br>&lt;/<strong>layer-list</strong>&gt;</pre><p>Now its time to design your login screen.</p><blockquote>Create fragment_login.xml</blockquote><pre><em>&lt;?</em><strong>xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;</strong><em>?&gt;<br></em>&lt;<strong>layout xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>    xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;</strong>&gt;<br>    &lt;<strong>android.support.v4.widget.NestedScrollView<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;match_parent&quot;<br>        android:fillViewport=&quot;true&quot;<br>        android:background=&quot;@drawable/bg_login&quot;</strong>&gt;<br>        &lt;<strong>RelativeLayout<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;match_parent&quot;</strong>&gt;<br>            &lt;<strong>ImageView<br>                android:layout_width=&quot;100dp&quot;<br>                android:layout_height=&quot;100dp&quot;<br>                android:layout_above=&quot;@+id/ll_login_container&quot;<br>                android:src=&quot;@drawable/ic_launcher&quot;<br>                android:layout_marginTop=&quot;@dimen/dimen_32dp&quot;<br>                android:layout_marginEnd=&quot;@dimen/dimen_32dp&quot;<br>                android:layout_marginRight=&quot;@dimen/dimen_32dp&quot;<br>                android:layout_alignParentEnd=&quot;true&quot;<br>                android:layout_alignParentRight=&quot;true&quot;<br>                tools:ignore=&quot;ContentDescription&quot; </strong>/&gt;<br>            &lt;<strong>LinearLayout<br>                android:id=&quot;@+id/ll_login_container&quot;<br>                android:layout_width=&quot;match_parent&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                android:layout_marginEnd=&quot;74dp&quot;<br>                android:padding=&quot;@dimen/dimen_32dp&quot;<br>                android:layout_centerVertical=&quot;true&quot;<br>                android:orientation=&quot;vertical&quot;<br>                android:layout_marginRight=&quot;74dp&quot;</strong>&gt;<br>                &lt;<strong>TextView<br>                    android:layout_width=&quot;wrap_content&quot;<br>                    android:layout_height=&quot;wrap_content&quot;<br>                    style=&quot;@style/txtview_standard_widget&quot;<br>                    android:text=&quot;Welcome to&quot;</strong>/&gt;<br><br>                &lt;<strong>TextView<br>                    style=&quot;@style/txtview_title_widget&quot;<br>                    android:layout_width=&quot;wrap_content&quot;<br>                    android:layout_height=&quot;wrap_content&quot;<br>                    android:text=&quot;Snowey&quot;<br>                    android:textSize=&quot;25dp&quot;<br>                    android:textStyle=&quot;bold&quot;<br>                    app:fontFamily=&quot;casual&quot; </strong>/&gt;<br>                &lt;<strong>TextView<br>                    android:layout_width=&quot;wrap_content&quot;<br>                    android:layout_height=&quot;wrap_content&quot;<br>                    style=&quot;@style/txtview_standard_widget&quot;<br>                    android:text=&quot;Please sign in to continue&quot;</strong>/&gt;<br><br>                &lt;<strong>EditText<br>                    android:layout_width=&quot;match_parent&quot;<br>                    android:layout_height=&quot;wrap_content&quot;<br>                    style=&quot;@style/txtview_standard_widget&quot;<br>                    android:hint=&quot;Enter your Email&quot;<br>                    android:drawableTint=&quot;@color/orange&quot;<br>                    android:drawablePadding=&quot;@dimen/dimen_8dp&quot;<br>                    android:drawableStart=&quot;@drawable/ic_email&quot;<br>                    android:drawableLeft=&quot;@drawable/ic_email&quot; </strong>/&gt;<br>                &lt;<strong>EditText<br>                    android:layout_width=&quot;match_parent&quot;<br>                    android:layout_height=&quot;wrap_content&quot;<br>                    style=&quot;@style/txtview_standard_widget&quot;<br>                    android:hint=&quot;Password&quot;<br>                    android:drawableTint=&quot;@color/orange&quot;<br>                    android:drawablePadding=&quot;@dimen/dimen_8dp&quot;<br>                    android:drawableStart=&quot;@drawable/ic_lock_outline&quot;<br>                    android:drawableLeft=&quot;@drawable/ic_lock_outline&quot; </strong>/&gt;<br>                &lt;<strong>Button<br>                    android:layout_width=&quot;wrap_content&quot;<br>                    android:layout_height=&quot;wrap_content&quot;<br>                    android:text=&quot;Sign In&quot;<br>                    android:paddingRight=&quot;@dimen/dimen_16dp&quot;<br>                    android:paddingLeft=&quot;@dimen/dimen_16dp&quot;<br>                    android:layout_marginTop=&quot;@dimen/dimen_12dp&quot;<br>                    android:textColor=&quot;@color/white&quot;<br>                    android:background=&quot;@drawable/bg_btn_dark_circular&quot;</strong>/&gt;<br>                &lt;<strong>TextView<br>                    android:layout_width=&quot;wrap_content&quot;<br>                    android:layout_height=&quot;wrap_content&quot;<br>                    style=&quot;@style/txtview_standard_widget&quot;<br>                    android:layout_marginTop=&quot;@dimen/dimen_12dp&quot;<br>                    android:text=&quot;Forgot Password?&quot;<br>                    android:textColor=&quot;@color/app_redcolor&quot;</strong>/&gt;<br>            &lt;/<strong>LinearLayout</strong>&gt;<br><br>            &lt;<strong>TextView<br>                android:layout_width=&quot;wrap_content&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                android:layout_above=&quot;@+id/btn_facebook&quot;<br>                android:layout_alignParentEnd=&quot;true&quot;<br>                android:layout_marginBottom=&quot;@dimen/dimen_8dp&quot;<br>                android:layout_marginRight=&quot;@dimen/dimen_16dp&quot;<br>                style=&quot;@style/txtview_standard_widget&quot;<br>                android:layout_marginTop=&quot;@dimen/dimen_12dp&quot;<br>                android:text=&quot;Login Via&quot;<br>                android:textStyle=&quot;bold&quot;<br>                android:layout_alignParentRight=&quot;true&quot;<br>                android:layout_marginEnd=&quot;@dimen/dimen_16dp&quot; </strong>/&gt;<br>            &lt;<strong>ImageButton<br>                android:id=&quot;@+id/btn_facebook&quot;<br>                android:layout_width=&quot;wrap_content&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                app:elevation=&quot;@dimen/dimen_5dp&quot;<br>                android:layout_above=&quot;@+id/tv_signup&quot;<br>                android:background=&quot;@drawable/shape_circle_fb&quot;<br>                android:layout_marginRight=&quot;@dimen/dimen_4dp&quot;<br>                android:layout_toLeftOf=&quot;@+id/btn_google&quot;<br>                android:src=&quot;@drawable/ic_facebook&quot;<br>                android:layout_marginEnd=&quot;@dimen/dimen_4dp&quot;<br>                android:layout_toStartOf=&quot;@+id/btn_google&quot; </strong>/&gt;<br>            &lt;<strong>ImageButton<br>                android:id=&quot;@+id/btn_google&quot;<br>                android:layout_width=&quot;wrap_content&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                app:elevation=&quot;@dimen/dimen_5dp&quot;<br>                android:background=&quot;@drawable/shape_circle_google&quot;<br>                android:layout_above=&quot;@+id/tv_signup&quot;<br>                android:layout_alignParentEnd=&quot;true&quot;<br>                android:layout_marginRight=&quot;@dimen/dimen_16dp&quot;<br>                android:src=&quot;@drawable/ic_google_plus&quot;<br>                android:layout_alignParentRight=&quot;true&quot;<br>                android:layout_marginEnd=&quot;@dimen/dimen_16dp&quot; </strong>/&gt;<br>            &lt;<strong>TextView<br>                android:id=&quot;@+id/tv_signup&quot;<br>                android:layout_width=&quot;wrap_content&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                style=&quot;@style/txtview_standard_widget&quot;<br>                android:layout_marginBottom=&quot;@dimen/dimen_10dp&quot;<br>                android:layout_marginRight=&quot;@dimen/dimen_16dp&quot;<br>                android:layout_alignParentBottom=&quot;true&quot;<br>                android:layout_alignParentRight=&quot;true&quot;<br>                android:layout_marginTop=&quot;@dimen/dimen_12dp&quot;<br>                android:text=&quot;Dont&#39;t have an account? Sign Up&quot;<br>                android:layout_marginEnd=&quot;@dimen/dimen_16dp&quot;<br>                android:layout_alignParentEnd=&quot;true&quot; </strong>/&gt;<br>        &lt;/<strong>RelativeLayout</strong>&gt;<br><br>    &lt;/<strong>android.support.v4.widget.NestedScrollView</strong>&gt;<br>&lt;/<strong>layout</strong>&gt;</pre><p><strong>Now its time to see the output of your efforts.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-YXYA3VlDkytwFWkMlod7g.png" /><figcaption>Login Screen Design</figcaption></figure><h4>You can <a href="https://github.com/anuj7sharma/InteractiveLoginDesign">download the code.</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=beeecc7bb8fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>