mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 21:29:00 +00:00
start adding yesterdailies
This commit is contained in:
parent
0dc55af208
commit
b2543f96c9
3 changed files with 58 additions and 0 deletions
34
Habitica/res/layout/dialog_yesterdaily.xml
Normal file
34
Habitica/res/layout/dialog_yesterdaily.xml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/titleTextView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/welcome_back"
|
||||
android:gravity="center"
|
||||
android:padding="12dp"
|
||||
style="@style/Title1"
|
||||
android:background="@color/gray_700"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="14dp"
|
||||
android:padding="8dp"
|
||||
android:background="@color/gray_700"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/yesterdaililes_prompt" />
|
||||
<LinearLayout
|
||||
android:id="@+id/yesterdailies_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="8dp"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
@ -610,4 +610,6 @@
|
|||
<string name="abort_confirmation">Are you sure you want to abort this mission? It will abort it for everyone in your party and all progress will be lost. The quest scroll will be returned to the quest owner.</string>
|
||||
<string name="leave_quest_confirmation">Are you sure you want to leave the active quest? All your quest progress will be lost.</string>
|
||||
<string name="number_participants">%1$d Participants</string>
|
||||
<string name="welcome_back">Welcome Back</string>
|
||||
<string name="yesterdaililes_prompt">Did you do any of these Dailies yesterday?</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
package com.habitrpg.android.habitica.ui.views.yesterdailies;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
import com.habitrpg.android.habitica.data.UserRepository;
|
||||
|
||||
public class YesterdailyDialog extends AlertDialog {
|
||||
|
||||
private UserRepository userRepository;
|
||||
|
||||
|
||||
private YesterdailyDialog(@NonNull Context context, UserRepository userRepository) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public static void showDialog(Activity activity, UserRepository userRepository) {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue