Add Adrian to the about page

This commit is contained in:
Karim Abou Zeid 2018-04-28 16:11:26 +02:00
commit aedf19c08d
4 changed files with 75 additions and 0 deletions

View file

@ -56,6 +56,9 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
private static String EUGENE_CHEUNG_GITHUB = "https://github.com/arkon";
private static String EUGENE_CHEUNG_WEBSITE = "https://echeung.me/";
private static String ADRIAN_TWITTER = "https://twitter.com/froschgames";
private static String ADRIAN_WEBSITE = "https://froschgames.com/";
@BindView(R.id.toolbar)
Toolbar toolbar;
@BindView(R.id.app_version)
@ -102,6 +105,10 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
AppCompatButton eugeneCheungGitHub;
@BindView(R.id.eugene_cheung_website)
AppCompatButton eugeneCheungWebsite;
@BindView(R.id.adrian_twitter)
AppCompatButton adrianTwitter;
@BindView(R.id.adrian_website)
AppCompatButton adrianWebsite;
@Override
protected void onCreate(Bundle savedInstanceState) {
@ -156,6 +163,8 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
aleksandarTesicGooglePlus.setOnClickListener(this);
eugeneCheungGitHub.setOnClickListener(this);
eugeneCheungWebsite.setOnClickListener(this);
adrianTwitter.setOnClickListener(this);
adrianWebsite.setOnClickListener(this);
}
@Override
@ -228,6 +237,10 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
openUrl(EUGENE_CHEUNG_GITHUB);
} else if (v == eugeneCheungWebsite) {
openUrl(EUGENE_CHEUNG_WEBSITE);
} else if (v == adrianTwitter) {
openUrl(ADRIAN_TWITTER);
} else if (v == adrianWebsite) {
openUrl(ADRIAN_WEBSITE);
}
}

View file

@ -299,6 +299,65 @@
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dividerColor" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="8dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/adrian"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/adrian_summary"
android:textAppearance="@style/TextAppearance.AppCompat.Caption" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="8dp">
<android.support.v7.widget.AppCompatButton
android:id="@+id/adrian_website"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/website"
android:textColor="#4183c4" />
<android.support.v7.widget.AppCompatButton
android:id="@+id/adrian_twitter"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/twitter"
android:textColor="#00aced" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>

View file

@ -8,11 +8,13 @@
<string name="michael_cook_cookicons" translatable="false">Michael Cook (Cookicons)</string>
<string name="aleksandar_tesic" translatable="false">Aleksandar Tešić</string>
<string name="eugene_cheung">Eugene Cheung</string>
<string name="adrian">Adrian</string>
<string name="aachen_germany" translatable="false">Aachen, Germany</string>
<string name="google_plus" translatable="false">Google Plus</string>
<string name="git_hub" translatable="false">GitHub</string>
<string name="twitter" translatable="false">Twitter</string>
<string name="card">Card</string>
<string name="flat">Flat</string>

View file

@ -282,6 +282,7 @@
<string name="restore">Restore</string>
<string name="no_purchase_found">No purchase found.</string>
<string name="eugene_cheung_summary">For his contributions to the source code.</string>
<string name="adrian_summary">For creating the album page design.</string>
<string name="add_action">Add</string>
<string name="blacklist">Blacklist</string>
<string name="remove_from_blacklist">Remove from blacklist</string>