mirror of
https://gitlab.com/SoftwareTalent/FrasesDeAnime.git
synced 2026-02-14 09:11:32 +01:00
xml to Anko in AboutActivity
This commit is contained in:
@@ -19,7 +19,7 @@ android {
|
||||
versionProps.store(versionPropsFile.newWriter(), null)
|
||||
// Fin de subir automáticamente la build en cada compilación
|
||||
versionCode code
|
||||
versionName "1.2.0"
|
||||
versionName "1.2.1"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
|
||||
@@ -3,6 +3,12 @@ package com.jkanetwork.st.frasesdeanime
|
||||
import android.os.Bundle
|
||||
import android.support.v7.app.AppCompatActivity
|
||||
import android.content.Context
|
||||
import android.widget.TextView
|
||||
import android.widget.ImageView
|
||||
import android.view.View
|
||||
import android.graphics.Color
|
||||
import android.graphics.drawable.ColorDrawable
|
||||
import org.jetbrains.anko.*
|
||||
|
||||
/**
|
||||
* Created by kprkpr on 30/08/17.
|
||||
@@ -11,10 +17,20 @@ class AboutActivity : AppCompatActivity(){
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_about)
|
||||
|
||||
//Anko DSL Layout
|
||||
verticalLayout {
|
||||
textView{
|
||||
text = "¡Gracias por usar Frases de Anime! \nIdea por Alba García y desarrollada por JKANetwork!"
|
||||
textSize = 22f
|
||||
textColor = Color.BLACK
|
||||
textAlignment = View.TEXT_ALIGNMENT_CENTER
|
||||
}.lparams(width=wrapContent, height=wrapContent){padding= dip(12)}
|
||||
imageView{
|
||||
setImageResource(R.drawable.cerebro)
|
||||
}.lparams(width=matchParent, height=matchParent){}
|
||||
background = ColorDrawable(Color.parseColor("#F8F2F2"))
|
||||
}
|
||||
}
|
||||
|
||||
/*override fun onBackPressed() {
|
||||
startActivity<MainActivity>()
|
||||
}*/
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/** DISABLED
|
||||
package com.jkanetwork.st.frasesdeanime
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Bundle
|
||||
import android.support.v7.app.AppCompatActivity
|
||||
import android.view.View
|
||||
import org.jetbrains.anko.*
|
||||
import android.widget.Toast
|
||||
import android.support.v4.content.ContextCompat.startActivity
|
||||
import android.content.Intent
|
||||
import android.widget.AdapterView
|
||||
|
||||
import kotlinx.android.synthetic.main.activity_pager.*
|
||||
|
||||
/**
|
||||
* Created by kprkpr on 25/07/17.
|
||||
* Help: https://www.youtube.com/watch?v=x-M1L6tcsLo
|
||||
*/
|
||||
|
||||
class PagerActivity : AppCompatActivity(){
|
||||
|
||||
val act = this
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_pager)
|
||||
|
||||
img.setImageResource(R.drawable.drawable);
|
||||
|
||||
/* Button listeners */
|
||||
btn_next.setOnClickListener() {
|
||||
startActivity<AnimesSelActivity>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** On back go to main */
|
||||
override fun onBackPressed() {
|
||||
startActivity<MainActivity>()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
*/
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 163 KiB |
@@ -1,15 +0,0 @@
|
||||
<?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="@drawable/cerebro">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="12dp"
|
||||
android:text="¡Gracias por usar Frases de Anime! \nIdea por Alba García y desarrollada por JKANetwork! \nCreditos: \nImage Credit: 5 Star Rating System from Vector.me (by jhnri4)"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="18sp" />
|
||||
</LinearLayout>
|
||||
@@ -1,24 +0,0 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="12dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_next"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="36dp"
|
||||
android:elevation="0dp"
|
||||
android:text="Siguiente"
|
||||
android:textAlignment="textStart" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:srcCompat="@mipmap/ic_launcher_round" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,2 +1,2 @@
|
||||
#Sat Dec 23 16:16:57 CET 2017
|
||||
VERSION_CODE=1093
|
||||
#Sat Dec 23 21:11:54 CET 2017
|
||||
VERSION_CODE=1134
|
||||
|
||||
Reference in New Issue
Block a user