mirror of
https://gitlab.com/SoftwareTalent/FrasesDeAnime.git
synced 2026-02-14 17:21:33 +01:00
Changes to code and images
This commit is contained in:
@@ -39,12 +39,11 @@ class AnimesSelActivity : AppCompatActivity(){
|
||||
/** Layout in DSL */
|
||||
verticalLayout {
|
||||
linearLayout {
|
||||
btn_exit = button("Volver");
|
||||
btn_sel = button("Seleccionar todos").lparams(width = matchParent);
|
||||
btn_exit = button("Volver")
|
||||
btn_sel = button("Seleccionar todos").lparams(width = matchParent)
|
||||
}
|
||||
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() {
|
||||
//toast("Anterior")
|
||||
if (dayS == 1){
|
||||
if (monthS == 1){
|
||||
monthS=12
|
||||
@@ -160,8 +160,17 @@ class MainActivity : AppCompatActivity(), RewardedVideoAdListener {
|
||||
}
|
||||
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 */
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
|
||||
@@ -266,7 +266,6 @@ class SQLiteHelper(ctx: Context) : ManagedSQLiteOpenHelper(ctx, "otaku.sqlite",
|
||||
/** It returns to program that this sentence can't be seen */
|
||||
fun getSentenceCanBeSeen(year: Int,month: Int, day: Int): Boolean {
|
||||
//TODO, return 0 when if check this sentence will be "nothing", for disable button
|
||||
|
||||
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
|
||||
android:id="@+id/btn_fav"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/star_off"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@drawable/star_on"
|
||||
android:scaleType="centerInside" />
|
||||
|
||||
<ImageButton
|
||||
@@ -113,6 +113,13 @@
|
||||
android:layout_weight="1"
|
||||
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
|
||||
android:id="@+id/btn_next"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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_height="match_parent"
|
||||
android:layout_margin="4dp"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/opts">
|
||||
android:orientation="vertical">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/chk_alarm"
|
||||
@@ -31,7 +31,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="12dp"
|
||||
android:text="Cuando mostrar:"
|
||||
@@ -72,4 +71,11 @@
|
||||
android:layout_height="48dp"
|
||||
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>
|
||||
@@ -1,2 +1,2 @@
|
||||
#Sat Dec 23 13:50:02 CET 2017
|
||||
VERSION_CODE=1086
|
||||
#Sat Dec 23 16:16:57 CET 2017
|
||||
VERSION_CODE=1093
|
||||
|
||||
Reference in New Issue
Block a user