mirror of
https://gitlab.com/SoftwareTalent/FrasesDeAnime.git
synced 2026-02-16 18:21:33 +01:00
Changes to code and images
This commit is contained in:
@@ -39,12 +39,11 @@ class AnimesSelActivity : AppCompatActivity(){
|
|||||||
/** Layout in DSL */
|
/** Layout in DSL */
|
||||||
verticalLayout {
|
verticalLayout {
|
||||||
linearLayout {
|
linearLayout {
|
||||||
btn_exit = button("Volver");
|
btn_exit = button("Volver")
|
||||||
btn_sel = button("Seleccionar todos").lparams(width = matchParent);
|
btn_sel = button("Seleccionar todos").lparams(width = matchParent)
|
||||||
}
|
}
|
||||||
view_list = listView {
|
view_list = listView {
|
||||||
}.lparams(width = matchParent, height = matchParent) {
|
}.lparams(width = matchParent, height = matchParent) { }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -125,8 +125,8 @@ class MainActivity : AppCompatActivity(), RewardedVideoAdListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//Button for previous day
|
||||||
btn_prev.setOnClickListener() {
|
btn_prev.setOnClickListener() {
|
||||||
//toast("Anterior")
|
|
||||||
if (dayS == 1){
|
if (dayS == 1){
|
||||||
if (monthS == 1){
|
if (monthS == 1){
|
||||||
monthS=12
|
monthS=12
|
||||||
@@ -160,7 +160,16 @@ class MainActivity : AppCompatActivity(), RewardedVideoAdListener {
|
|||||||
}
|
}
|
||||||
changeData()
|
changeData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btn_today.setOnClickListener(){
|
||||||
|
//Go back to today
|
||||||
|
dayS = cal.get(Calendar.DAY_OF_MONTH)
|
||||||
|
monthS = cal.get(Calendar.MONTH)+1
|
||||||
|
yearS = cal.get(Calendar.YEAR)
|
||||||
|
changeData()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/** At onResume, called after onCreate and in resume, load ad things and refresh calendar data */
|
/** At onResume, called after onCreate and in resume, load ad things and refresh calendar data */
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
|
|||||||
@@ -266,7 +266,6 @@ class SQLiteHelper(ctx: Context) : ManagedSQLiteOpenHelper(ctx, "otaku.sqlite",
|
|||||||
/** It returns to program that this sentence can't be seen */
|
/** It returns to program that this sentence can't be seen */
|
||||||
fun getSentenceCanBeSeen(year: Int,month: Int, day: Int): Boolean {
|
fun getSentenceCanBeSeen(year: Int,month: Int, day: Int): Boolean {
|
||||||
//TODO, return 0 when if check this sentence will be "nothing", for disable button
|
//TODO, return 0 when if check this sentence will be "nothing", for disable button
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 121 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -71,11 +71,11 @@
|
|||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/btn_fav"
|
android:id="@+id/btn_fav"
|
||||||
android:layout_width="48dp"
|
android:layout_width="36dp"
|
||||||
android:layout_height="44dp"
|
android:layout_height="36dp"
|
||||||
android:layout_marginLeft="12dp"
|
android:layout_marginLeft="12dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="12dp"
|
||||||
android:background="@drawable/star_off"
|
android:background="@drawable/star_on"
|
||||||
android:scaleType="centerInside" />
|
android:scaleType="centerInside" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
@@ -113,6 +113,13 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
app:srcCompat="@android:drawable/ic_media_previous" />
|
app:srcCompat="@android:drawable/ic_media_previous" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/btn_today"
|
||||||
|
android:layout_width="28dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
app:srcCompat="@android:drawable/ic_dialog_dialer" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/btn_next"
|
android:id="@+id/btn_next"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="4dp"
|
android:layout_margin="4dp"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical">
|
||||||
android:background="@drawable/opts">
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/chk_alarm"
|
android:id="@+id/chk_alarm"
|
||||||
@@ -31,7 +31,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="12dp"
|
||||||
android:text="Cuando mostrar:"
|
android:text="Cuando mostrar:"
|
||||||
@@ -72,4 +71,11 @@
|
|||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:text="Guardar cambios" />
|
android:text="Guardar cambios" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imgBackground"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="background"
|
||||||
|
app:srcCompat="@drawable/opts" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
#Sat Dec 23 13:50:02 CET 2017
|
#Sat Dec 23 16:16:57 CET 2017
|
||||||
VERSION_CODE=1086
|
VERSION_CODE=1093
|
||||||
|
|||||||
Reference in New Issue
Block a user