Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">


<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
tools:context="com.example.marty.encryptdemo.MainActivity">

<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@mipmap/ic_launcher_foreground" />

<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -20,6 +29,8 @@
android:layout_height="wrap_content"
android:hint="Text to be encrypted"
android:id="@+id/t_e_text"/>


</android.support.design.widget.TextInputLayout>

<TextView
Expand All @@ -41,13 +52,16 @@
style="@style/Base.Widget.AppCompat.Button.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:layout_below="@+id/key_layout"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_gravity="center_horizontal"
android:onClick="doHardCrypt"
android:tag="e"
android:text="Encrypt using app instance" />
android:text="Encrypt using app instance"
<item android:state_pressed="true" android:color="#cc7722"/>
<item android:color="#cc7722/>/>

</LinearLayout>
</ScrollView>
Binary file added padlock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.