Skip to content

Commit

Permalink
Logo edit of AnkiWeb, logo Updates in myAccount and myAccountLoggedIn…
Browse files Browse the repository at this point in the history
… page
  • Loading branch information
tamojitdas committed Jun 26, 2024
1 parent b5387a5 commit 3803e29
Showing 1 changed file with 56 additions and 42 deletions.
98 changes: 56 additions & 42 deletions AnkiDroid/src/main/res/layout/my_account_logged_in.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,100 +7,114 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">

<!-- opens a WebView for 'remove account', replaces the layout above -->

<RelativeLayout
android:id="@+id/logged_in_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foregroundGravity="center">

<include layout="@layout/toolbar" />

<LinearLayout
android:id="@+id/logged_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginBottom="10dp"
android:layout_marginEnd="0dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="15dp"
android:layout_centerInParent="true"
>
android:padding="15dp">


<ImageView
android:id="@+id/ankidroid_logo"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_marginBottom="0dp"
android:layout_marginStart="-90dp"
android:translationX="30dp"
android:translationY="60dp"
app:srcCompat="@drawable/ankiweb" />

<ImageView
android:id="@+id/ankidroid_logo"
android:layout_width="69dp"
android:layout_height="64dp"
<androidx.cardview.widget.CardView
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginEnd="-100dp"
android:scaleX="1.5"
android:scaleY="1.5"
app:srcCompat="@drawable/ankiweb_logo" />
android:translationX="0dp"
android:translationY="0dp"
app:cardCornerRadius="0dp"
app:cardElevation="0dp">

<ImageView
android:id="@+id/ankiwebText_logo"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_marginBottom="50dp"
android:layout_marginStart="-90dp"
android:translationX="30dp"
android:translationY="60dp"
app:srcCompat="@drawable/ankiweb" />

<ImageView
android:id="@+id/ankiweb_logo"
android:layout_width="69dp"
android:layout_height="64dp"
android:layout_gravity="center"
android:layout_marginEnd="-100dp"
android:scaleX="1.5"
android:scaleY="1.5"
android:translationX="10dp"
android:translationY="0dp"
app:srcCompat="@drawable/ankiweb_logo" />
</androidx.cardview.widget.CardView>

<com.ichi2.ui.FixedTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/content_vertical_padding"
android:text="@string/logged_as"
android:textSize="@dimen/title_textsize"
android:layout_margin="@dimen/content_vertical_padding"/>
android:textSize="@dimen/title_textsize" />

<com.ichi2.ui.FixedTextView
android:id="@+id/username_logged_in"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/content_vertical_padding"
android:textSize="@dimen/title_textsize"
android:textStyle="bold"
android:layout_margin="@dimen/content_vertical_padding"
tools:text="[email protected]"
/>
tools:text="[email protected]" />

<com.google.android.material.button.MaterialButton
android:id="@+id/logout_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="200dp"
android:layout_gravity="center"
android:text="@string/log_out"
android:layout_margin="@dimen/content_vertical_padding"
/>
android:minWidth="200dp"
android:text="@string/log_out" />

<com.google.android.material.button.MaterialButton
android:id="@+id/remove_account_button"
app:backgroundTint="@color/material_red_500"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="200dp"
android:layout_gravity="center"
android:text="@string/remove_account"
android:layout_margin="@dimen/content_vertical_padding"
/>
android:minWidth="200dp"
android:text="@string/remove_account"
app:backgroundTint="@color/material_red_500" />

<com.google.android.material.button.MaterialButton
android:id="@+id/privacy_policy_button"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@null"
android:textSize="@dimen/abc_text_size_button_material"
style="@style/Widget.Material3.Button.TextButton"
android:padding="3dp"
android:layout_gravity="center"
android:singleLine="true"
android:text="@string/help_title_privacy" />
android:text="@string/help_title_privacy"
android:textSize="@dimen/abc_text_size_button_material" />

</LinearLayout>

<include layout="@layout/toolbar" />
</RelativeLayout>
<!-- opens a WebView for 'remove account', replaces the layout above -->

<FrameLayout
android:id="@+id/remove_account_frame"
android:layout_width="match_parent"
Expand Down

0 comments on commit 3803e29

Please sign in to comment.