mirror of
https://github.com/gsantner/dandelion
synced 2025-12-08 21:31:10 +01:00
Activity transitions, usability MainActivity, green accent color
This commit is contained in:
parent
a0d81da63d
commit
ff39986715
22 changed files with 255 additions and 226 deletions
4
app/src/main/res/anim/fadein.xml
Normal file
4
app/src/main/res/anim/fadein.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/accelerate_interpolator"
|
||||
android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="@integer/fade_time" />
|
||||
4
app/src/main/res/anim/fadeout.xml
Normal file
4
app/src/main/res/anim/fadeout.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/accelerate_interpolator"
|
||||
android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="@integer/fade_time" />
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:fitsSystemWindows="true"
|
||||
app:headerLayout="@layout/nav_header_main"
|
||||
app:headerLayout="@layout/main_nav_header"
|
||||
app:menu="@menu/navdrawer_main" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:context="com.github.dfa.myapplication.MainActivity"
|
||||
tools:context=".activity.MainActivity"
|
||||
tools:showIn="@layout/app_bar_main">
|
||||
|
||||
<android.support.v4.widget.SwipeRefreshLayout
|
||||
|
|
|
|||
67
app/src/main/res/layout/main_nav_header.xml
Normal file
67
app/src/main/res/layout/main_nav_header.xml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="bottom"
|
||||
android:orientation="vertical"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/navheader_background_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/header" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginTop="32dp"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/navheader_user_image"
|
||||
android:layout_gravity="center"
|
||||
android:scaleType="fitCenter"
|
||||
android:layout_width="@android:dimen/notification_large_icon_width"
|
||||
android:layout_height="@android:dimen/notification_large_icon_height"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:src="@drawable/ic_launcher" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navheader_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="@dimen/activity_horizontal_margin"
|
||||
android:paddingStart="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
||||
android:text="@string/app_name"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/podselection__podupti_notice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/activity_horizontal_margin"
|
||||
android:paddingEnd="@dimen/activity_horizontal_margin"
|
||||
android:paddingStart="@dimen/activity_horizontal_margin"
|
||||
android:text="@string/app_copyright"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="190dp"
|
||||
android:gravity="bottom"
|
||||
android:orientation="vertical"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/navheader_background_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/header" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/navheader_user_image"
|
||||
android:layout_width="@android:dimen/notification_large_icon_width"
|
||||
android:layout_height="@android:dimen/notification_large_icon_height"
|
||||
android:layout_above="@+id/navheader_title"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/nav_header_vertical_spacing"
|
||||
android:src="@drawable/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navheader_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/navheader_description"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:paddingEnd="@dimen/activity_horizontal_margin"
|
||||
android:paddingStart="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
||||
android:text="@string/app_name"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navheader_description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:paddingBottom="@dimen/activity_horizontal_margin"
|
||||
android:paddingEnd="@dimen/activity_horizontal_margin"
|
||||
android:paddingStart="@dimen/activity_horizontal_margin"
|
||||
android:text="@string/app_copyright"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
@ -7,48 +7,50 @@
|
|||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context="com.github.dfa.diaspora_android.activity.PodsActivity">
|
||||
tools:context=".activity.PodSelectionActivity">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lstPods"
|
||||
android:id="@+id/podselection__listpods"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/navheader_description"
|
||||
android:layout_below="@+id/edtFilter"
|
||||
android:layout_above="@+id/podselection__podupti_notice"
|
||||
android:layout_below="@+id/podselection__edit_filter"
|
||||
android:choiceMode="singleChoice" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edtFilter"
|
||||
android:id="@+id/podselection__edit_filter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toLeftOf="@+id/imgSelectPod"
|
||||
android:layout_toStartOf="@+id/imgSelectPod"
|
||||
android:layout_toLeftOf="@+id/podselection__button_select_pod"
|
||||
android:layout_toStartOf="@+id/podselection__button_select_pod"
|
||||
android:hint="@string/filter_hint"
|
||||
android:inputType="textUri|textWebEditText" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imgSelectPod"
|
||||
android:id="@+id/podselection__button_select_pod"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/lstPods"
|
||||
android:layout_alignEnd="@+id/lstPods"
|
||||
android:layout_alignRight="@+id/lstPods"
|
||||
android:layout_alignTop="@+id/edtFilter"
|
||||
android:layout_above="@+id/podselection__listpods"
|
||||
android:layout_alignEnd="@+id/podselection__listpods"
|
||||
android:layout_alignRight="@+id/podselection__listpods"
|
||||
android:layout_alignTop="@+id/podselection__edit_filter"
|
||||
android:contentDescription="@string/confirm_url"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
android:src="@mipmap/ic_arrow_right_grey600_24dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navheader_description"
|
||||
android:id="@+id/podselection__podupti_notice"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
|
||||
android:layout_alignParentStart="true"
|
||||
android:text="@string/podlist_source_note"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:autoLink="web" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.github.dfa.diaspora_android.activity.SplashActivity">
|
||||
tools:context=".activity.SplashActivity">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imgSplash"
|
||||
android:id="@+id/splash__splashimage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.github.dfa.diaspora_android.activity.PodsActivity">
|
||||
tools:context=".activity.PodSelectionActivity">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_reload"
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
<item android:title="@string/jb_menu_1">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/nav_settings_view"
|
||||
android:id="@+id/nav_settings_app"
|
||||
android:icon="@drawable/jb_settings"
|
||||
android:title="@string/jb_settings_view" />
|
||||
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
<string name="filter_hint">Pod-Domain eingeben</string>
|
||||
<string name="exit_app">App beenden</string>
|
||||
<string name="confirm_url">Pod-Adresse bestätigen</string>
|
||||
<string name="podlist_source_note">Anmerkung: Auf dieser Liste finden sich nur Einträge von podupti.me</string>
|
||||
<string name="podlist_source_note">Anmerkung: Die Podliste wird aus den sicheren Pods, die bei https://podupti.me gelistet sind generiert.</string>
|
||||
<string name="valid_pod">Bitte einen gültigen Domain-Namen (URL) eingeben</string>
|
||||
<string name="podlist_error">Fehler: Konnte die Podliste nicht abfragen!</string>
|
||||
<string name="loading_podlist">Podliste wird geladen…</string>
|
||||
<string name="no_internet">Entschuldigung, du musst mit dem Internet verbunden sein um fortzufahren.</string>
|
||||
<string name="confirmation">Bestätigung</string>
|
||||
<string name="confirm_pod">Willst du folgenden Pod benutzen: </string>
|
||||
<string name="confirm_pod">Möchtest du wirklich \nhttps://%1$s\nals deinen Diaspora Pod auswählen?</string>
|
||||
<string name="confirm_exit">Möchtest du die App verlassen?</string>
|
||||
<string name="yes">OK</string>
|
||||
<string name="no">NEIN</string>
|
||||
|
|
@ -78,8 +78,8 @@
|
|||
<string name="share_screenshot">Bildschirmfoto teilen</string>
|
||||
<string name="take_screenshot">Bildschirmfoto speichern</string>
|
||||
<string name="toast_screenshot">Bildschirmfoto wird gespeichert unter:</string>
|
||||
<string name="jb_settings_diaspora">Diaspora Einstellungen</string>
|
||||
<string name="jb_settings_view">Ansichtseinstellungen</string>
|
||||
<string name="jb_settings_diaspora">Pod Einstellungen</string>
|
||||
<string name="jb_settings_view">App Einstellungen</string>
|
||||
<string name="help_help">Markdown Formatierung</string>
|
||||
<string name="help_license">Lizenz</string>
|
||||
<string name="jb_help_license">Über die App | Hilfe</string>
|
||||
|
|
|
|||
|
|
@ -8,15 +8,15 @@
|
|||
<color name="primary">#607d8b</color>
|
||||
<color name="primary_dark">#607d8b</color>
|
||||
<color name="primary_light">#CFD8DC</color>
|
||||
<color name="accent">#ff9800</color>
|
||||
<color name="accent">#4CAF50</color>
|
||||
<color name="primary_text">#212121</color>
|
||||
<color name="secondary_text">#727272</color>
|
||||
<color name="icons">#FFFFFF</color>
|
||||
<color name="divider">#B6B6B6</color>
|
||||
<!-- End colors from Palette -->
|
||||
|
||||
<color name="fab_big">#ff9800</color>
|
||||
<color name="fab_big_pressed">#ffb74d</color>
|
||||
<color name="fab_big">@color/accent</color>
|
||||
<color name="fab_big_pressed">#388E3C</color>
|
||||
|
||||
<color name="fab_small">#607d8b</color>
|
||||
<color name="fab_small_pressed">#90a4ae</color>
|
||||
|
|
|
|||
5
app/src/main/res/values/integers.xml
Normal file
5
app/src/main/res/values/integers.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="fade_time">1300</integer>
|
||||
<integer name="splash_delay">1500</integer>
|
||||
</resources>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
<string name="title_activity_pods">Select Pod</string>
|
||||
<string name="filter_hint">Enter pod domain</string>
|
||||
<string name="confirm_url">Confirm pod url</string>
|
||||
<string name="podlist_source_note">Note: This list is populated with only the secure pods from podupti.me</string>
|
||||
<string name="podlist_source_note">Note: The podlist is populated by secure pods listed on https://podupti.me. You can enter in the edit field any pod not listed.</string>
|
||||
<string name="valid_pod">Please enter a valid domain name</string>
|
||||
<string name="podlist_error">Error: Could not retrieve list of pods!</string>
|
||||
<string name="loading_podlist">Loading pod list …</string>
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<string name="no_internet">Sorry, you must be connected to the Internet to proceed</string>
|
||||
<string name="confirmation">Confirmation</string>
|
||||
<string name="confirm_pod">Do you want to use the pod: </string>
|
||||
<string name="confirm_pod">Do you really want to use\nhttps://%1$s\nas your Diaspora Pod?</string>
|
||||
<string name="confirm_exit">Do you want to exit?</string>
|
||||
<string name="yes">YES</string>
|
||||
<string name="no">NO</string>
|
||||
|
|
@ -62,8 +62,8 @@
|
|||
<string name="jb_aspects">Aspects</string>
|
||||
<string name="jb_pod">Change pod</string>
|
||||
<string name="jb_public">Public activities</string>
|
||||
<string name="jb_settings_view">View settings</string>
|
||||
<string name="jb_settings_diaspora">Diaspora settings</string>
|
||||
<string name="jb_settings_view">App settings</string>
|
||||
<string name="jb_settings_diaspora">Pod settings</string>
|
||||
<string name="jb_share">Share content</string>
|
||||
|
||||
<string name="settings_font">Change font size</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue